2015-03-31 01:06 GitHub164 has joined #qi-hardware 2015-03-31 01:06 [13j1soc] 15kristianpaul pushed 1 new commit to 06master: 02https://github.com/kristianpaul/j1soc/commit/7633b712734d149c6719c227edd0d709a23e3f15 2015-03-31 01:06 13j1soc/06master 147633b71 15Cristian Paul Penaranda Rojas: Update to 14.6 ISE 2015-03-31 01:06 GitHub164 has left #qi-hardware [#qi-hardware] 2015-03-31 01:08 eww 2015-03-31 01:08 that stills works :p 2015-03-31 01:21 sb0 has joined #qi-hardware 2015-03-31 01:43 fengling has joined #qi-hardware 2015-03-31 02:00 atommann has joined #qi-hardware 2015-03-31 02:27 xiangfu has joined #qi-hardware 2015-03-31 02:29 kristianpaul: great, eh ? :) 2015-03-31 02:32 xiangfu: heya ! how's life ? in the last days, i made a bit of progress with anelok. after the boost converter rework, it can run on battery power. at least the basic system (MCU and OLED). so i'd recommend applying the rework to the devices you have as well. 2015-03-31 02:33 wpwrak: great. I am slow on anelok. I will try that. 2015-03-31 02:34 xiangfu: we may see problems with the memory card, though. the worst-case power demand of these cards can go up to 300 mW, while the CR2032 can at best deliver a bit more than 100 mW. 2015-03-31 02:35 what i don't know yet is how bad they are in real life. presumably a lot nicer than that, but only measurements will tell. 2015-03-31 02:35 if they need more power than the battery can supply, then the current design won't work and we'll have to switch to AAA or such :-( 2015-03-31 02:37 (current design) that is, mainly the mechanical design. the electrical side would almost be identical. to if one doesn't mind an ugly case, the same PCB could be used. at least in theory :) 2015-03-31 02:41 for experimenting with the memory card, i'd like to integrate some things from your code. i think it may be easiest if i just cherry-pick, so you don't have to generate pull requests. does that sound okay for you ? 2015-03-31 02:45 sure. 2015-03-31 02:45 Yes. free feel to cherry-pick 2015-03-31 02:50 great. i'll do this during the long easter weekend. 2015-03-31 02:50 fengling has quit [Ping timeout: 272 seconds] 2015-03-31 03:13 fengling has joined #qi-hardware 2015-03-31 03:38 atommann has quit [Ping timeout: 250 seconds] 2015-03-31 04:21 archang has quit [Ping timeout: 246 seconds] 2015-03-31 04:21 archang has joined #qi-hardware 2015-03-31 04:55 xiangfu has quit [Ping timeout: 272 seconds] 2015-03-31 04:55 archang has quit [Ping timeout: 264 seconds] 2015-03-31 04:55 xiangfu has joined #qi-hardware 2015-03-31 05:01 atommann has joined #qi-hardware 2015-03-31 05:09 xiangfu has quit [Ping timeout: 264 seconds] 2015-03-31 05:11 xiangfu has joined #qi-hardware 2015-03-31 06:06 wolfspraul has joined #qi-hardware 2015-03-31 06:07 wolfspraul has quit [Client Quit] 2015-03-31 06:07 wolfspraul has joined #qi-hardware 2015-03-31 06:22 jekhor__ has joined #qi-hardware 2015-03-31 06:52 xiangfu has quit [Ping timeout: 250 seconds] 2015-03-31 06:57 xiangfu has joined #qi-hardware 2015-03-31 07:06 xiangfu has quit [Ping timeout: 255 seconds] 2015-03-31 07:06 xiangfu has joined #qi-hardware 2015-03-31 07:52 xiangfu has quit [Remote host closed the connection] 2015-03-31 07:56 pcercuei has joined #qi-hardware 2015-03-31 08:12 wpwrak: ((presumably a lot nicer than that)) uSD? don't bet on that, constant writes on uSD heat them up to temperatures where you start to worry 2015-03-31 08:13 then otoh *reads* are prolly way nicer, due to operation principles 2015-03-31 08:15 how about CR2045? 2015-03-31 08:16 wouldn't change THAT jmuch on your design, only 1 1.3mm higher case, right? 2015-03-31 08:16 s/ 1 / a / 2015-03-31 08:16 DocScrutinizer05 meant: "wouldn't change THAT jmuch on your design, only a 1.3mm higher case, right?" 2015-03-31 08:30 jwhitmore_ has joined #qi-hardware 2015-03-31 08:39 jwhitmore_ has quit [Ping timeout: 252 seconds] 2015-03-31 08:49 jekhor__ has quit [Ping timeout: 264 seconds] 2015-03-31 09:44 jekhor has joined #qi-hardware 2015-03-31 09:53 wolfspraul has quit [Quit: leaving] 2015-03-31 09:53 wolfspraul has joined #qi-hardware 2015-03-31 10:24 wolfspraul has quit [Quit: leaving] 2015-03-31 10:24 wolfspraul has joined #qi-hardware 2015-03-31 10:43 jwhitmore_ has joined #qi-hardware 2015-03-31 10:52 atommann has quit [Quit: Leaving] 2015-03-31 11:09 fengling has quit [Quit: WeeChat 1.0] 2015-03-31 11:18 (much nicer) well, the idea is to use the memory card only very infrequently, especially writes. and we can go slowly - do a sector, take a break for a few dozen milliseconds, etc. 2015-03-31 11:19 cr2045 seems a bit on the exotic side, isn't it ? digi-key don't even have that type 2015-03-31 11:25 2450 seems to be somewhat common. internal resistance is still pretty high, though 2015-03-31 11:26 about 12-15 ohm for cr2450 vs. 20 ohm for cr2032 2015-03-31 11:33 if we assume an ideal cell voltage of 2.8 V, then max power of 2032 is ~100 mW and of 2450 ~160 mW 2015-03-31 11:34 but yes, it could be a possibility luckily, anelok's battery holder is on a separate board, so it's very easy to accommodate other cells :) 2015-03-31 11:34 i hadn't even thought of other coins. thanks ! 2015-03-31 11:36 yw 2015-03-31 11:36 ((much nicer)) the suspected problem case is page erase 2015-03-31 11:36 you hardly can mitigate that 2015-03-31 11:37 only way: provide buffer energy ("Hasso! Schlafende!") sufficient for one page erase 2015-03-31 11:41 for the first round of devices, i could just buffer writes in internal flash, then commit them to the memory card when there's plenty of power. not ideal, but one would hardly notice 2015-03-31 11:42 and i did the calculations for buffering worst-case power. it should actually be possible, but you need a fat supercap for it. 2015-03-31 11:44 http://www.zubrod-net.de/Orion/Episode-2.pdf p.7 2015-03-31 11:45 not the usual coin type or other small ones (internal resistance way too high) but there are some larger blocks that have a low resistance. not cheap, though, some USD 5+ apiece @ 1000 at digi-key 2015-03-31 11:45 e.g., this critter: http://www.digikey.com/product-detail/en/BZ055B153ZSB/478-3645-ND/1045919 2015-03-31 11:46 or you siply go for two cr2015 in series 2015-03-31 11:47 wouldn't even need major rework in battery holder, I guess 2015-03-31 11:48 double voltage, half the current 2015-03-31 11:48 needs buck converter then 2015-03-31 11:48 well, they're 'cheap' 2015-03-31 11:49 2016 ? would need to change the converter, yes. the current one is only step-up 2015-03-31 11:50 go for buck/boost type, should be "compatible" 2015-03-31 11:50 kyak has quit [Ping timeout: 252 seconds] 2015-03-31 11:51 resistance is the same as 2032, so one could indeed draw more juice 2015-03-31 11:51 evidently, since you only need half the current at twice the voltage for same energy 2015-03-31 11:54 of course, if the cr2016 had tiwce the ESR than CR2032, it would be a zero-sum equation 2015-03-31 11:55 yup 2015-03-31 11:56 kyak has joined #qi-hardware 2015-03-31 11:56 kyak has joined #qi-hardware 2015-03-31 11:56 but if i make major changes, i'd probably go to AAA then. ESR drops by some two orders of magnitude 2015-03-31 11:59 i actually tried to feed my current boost critter with a low voltage, but it didn't like that for some reason. may be a lab effect, though - they specifically warn about the inductance of long feed lines from the lab power supply 2015-03-31 12:02 the chop should be good down to 0.85 V to start, 0.5 V when running. idle current is too high, though, 0.5 mA, but there's a close cousin from TI that's much better 2015-03-31 12:04 (lab effect) also, they're weasling in their reference circuit: the caps they specify are 4.7 uF, so they look all nice and efficient, but then they mention that this is effective capacitance, so you really need a bigger cap because real-life caps usually don't have their nominal capacitance when you actually make them do something 2015-03-31 12:06 that's another pending rework item. and the we'll see if the critter can handle an alcaline from the next supermarket. i mean, even logitech can do it in their mice, so how hard can it be ? ;-) 2015-03-31 12:11 should work 2015-03-31 12:32 paul_boddie has joined #qi-hardware 2015-03-31 12:38 kyak has quit [Ping timeout: 264 seconds] 2015-03-31 12:41 well, even AAAA are too weak it seems: http://data.energizer.com/PDFs/E96.pdf 2015-03-31 12:42 AAA prolly should work 2015-03-31 12:43 yeah, easily http://data.energizer.com/PDFs/XR91.pdf 2015-03-31 12:48 http://data.energizer.com/ is quite convenient site 2015-03-31 12:48 kyak has joined #qi-hardware 2015-03-31 12:48 kyak has quit [Changing host] 2015-03-31 12:48 kyak has joined #qi-hardware 2015-03-31 12:54 AAAA ... heh, another exotic type :) 2015-03-31 12:55 i want to stay mainstream. the sort of batteries you can find in a village you visit for the first time and where you don't speak the local language :) 2015-03-31 12:58 i.e., AA >> AA > CR2032. but then AA would be rather big. 2015-03-31 12:59 go for AAA then 2015-03-31 12:59 even CR2032 are sort of tricky 2015-03-31 13:00 and friggin expensive 2015-03-31 13:01 around here they're about 50 us-cents apiece if you buy a bunch. else, about 80 us-cents. so they must be single-digit cents in the rest of the world :) 2015-03-31 13:20 Argentina provides the "distressed economy" test, I guess. ;-) 2015-03-31 13:25 guess that's happens when beavis and butthead grow up and become ministers 2015-03-31 13:26 jekhor has quit [Ping timeout: 252 seconds] 2015-03-31 13:28 Wonder how much they are here... 29 NOK! 2015-03-31 13:29 I was reading about Argentine political history not that long ago. Enlightening and rather sad. 2015-03-31 13:29 elections are in october. there will be a reckoning. 2015-03-31 13:30 NOK 29 = USD 3.6. that's for how many CR2032 ? 2015-03-31 13:31 Just one at expensive retailer: http://www.clasohlson.com/no/Varta-litium-batterier/32-2236 2015-03-31 13:33 Their UK shop is as expensive. Will look closer when next in the supermarket. 2015-03-31 13:33 wow, nice margin ;-) 2015-03-31 13:34 first hit on ebay: http://www.ebay.com/itm/5-Energizer-2032-Battery-CR2032-Lithium-3v-Batteries-/280639218596 2015-03-31 13:35 for really good prices, you may want to get 100 or so. like this: http://articulo.mercadolibre.com.ar/MLA-545118517-100-pilas-cr2032-sony-litio-boton-20blister-x5und-en-caja-_JM 2015-03-31 13:36 that's ARS 500, so about 50-60 US-cents 2015-03-31 13:36 apiece 2015-03-31 13:37 The amusing thing about Clas Ohlson's "own brand" cells is that there's a review by some Swedish person... 2015-03-31 13:38 ...complaining that they used one in their banking code generator and it immediately complained about a low battery. Caveat emptor! 2015-03-31 13:38 well, if someone is gullible enough to pay at that price, ... 2015-03-31 13:39 hmm. s/pay/buy/ || s/ at// 2015-03-31 13:40 The cheap ones seem to work in kitchen scales and such things OK, in my experience. 2015-03-31 13:40 if you want cheap and don't mind if it's alkalines and not button cells, how about this lovely deal ? http://www.ebay.com/itm/100-AAA-ALKALINE-LOOSE-BATTERIES-/121560854139?pt=LH_DefaultDomain_3&hash=item1c4d976e7b 2015-03-31 13:41 somebody must have been robbing the trash bins 2015-03-31 13:42 'these have been in our warehouse for a few years and the boxes got water damaged' 2015-03-31 13:43 Of course, corroding coin cells are a real peril with old computers. 2015-03-31 13:47 jwhitmore_ has quit [Ping timeout: 244 seconds] 2015-03-31 13:47 never saw a coin cell corrode. alkaline, though, armies of them ... 2015-03-31 13:56 larsc: Looking at the jz4740 PWM driver, it appears usable for the jz4730 at a glance, but I think the pin assignments differ. 2015-03-31 13:57 yea, that's kind of expected 2015-03-31 13:58 let me have a quick look at the datasheet 2015-03-31 13:59 wpwrak: http://www.retro-kit.co.uk/page.cfm/content/Acorn-BBC-A3000-Battery-Maintenance/ 2015-03-31 13:59 that's not a problem 2015-03-31 13:59 wpwrak: Although that's technically not a coin cell. 2015-03-31 13:59 the PWM driver doesn't know anything about the pin assignment 2015-03-31 14:00 jz4740_pwm_gpio_list mentions JZ_GPIO_PWM0 through JZ_GPIO_PWM7 2015-03-31 14:00 JZ_GPIO_PORTD(23) through JZ_GPIO_PORTD(31), apparently. 2015-03-31 14:01 because that's old code 2015-03-31 14:01 we have an updated one: https://github.com/gcwnow/linux/blob/jz-3.19/drivers/pwm/pwm-jz4740.c 2015-03-31 14:01 Is that going to be merged upstream at some point? 2015-03-31 14:02 that's the plan 2015-03-31 14:02 but I need larsc to finish the pinctrl driver first :) 2015-03-31 14:02 (since this updated driver requires that you have a pinctrl driver) 2015-03-31 14:03 Linux dependency hell! ;-) 2015-03-31 14:16 valhalla has quit [Ping timeout: 256 seconds] 2015-03-31 14:17 valhalla has joined #qi-hardware 2015-03-31 14:22 dandon_ has joined #qi-hardware 2015-03-31 14:24 dandon has quit [Ping timeout: 244 seconds] 2015-03-31 14:24 dandon_ is now known as dandon 2015-03-31 14:27 wej has quit [Ping timeout: 250 seconds] 2015-03-31 14:33 wej has joined #qi-hardware 2015-03-31 14:58 jwhitmore_ has joined #qi-hardware 2015-03-31 15:04 wej has quit [Ping timeout: 245 seconds] 2015-03-31 15:09 jekhor has joined #qi-hardware 2015-03-31 15:10 wej has joined #qi-hardware 2015-03-31 15:17 jekhor has quit [Ping timeout: 272 seconds] 2015-03-31 15:29 Is it worth following device tree work for jz47xx? If so, where should I be following? 2015-03-31 15:29 yes 2015-03-31 15:30 non-devicetree is not going to be supported in the future 2015-03-31 15:34 I see that there's some jz4770 DT stuff, and maybe the MIPS people did some jz4780 DT stuff as well. 2015-03-31 15:36 wpwrak: that's because coin cells use methanol for electrolyte 2015-03-31 15:36 they're not really "battery" cells 2015-03-31 15:36 they're more like fuel cells with a semipermeable membrane 2015-03-31 15:36 and metallic li 2015-03-31 15:45 jwhitmore_ has quit [Remote host closed the connection] 2015-03-31 15:47 there's some jz4740 stuff as well 2015-03-31 15:53 sb0 has quit [Read error: Connection reset by peer] 2015-03-31 15:54 I found a 3.18 branch in gcwnow for DT, but is that the "most upstream" place? 2015-03-31 15:55 qi-hardware is the "most upstream" for jz4740, gcwnow is the "most upstream" for jz4770, MIPS/CI20_Linux is the "most upstream" for jz4780 :) 2015-03-31 15:56 I meant for DT. I didn't think the qi-kernel repo was being updated any more. 2015-03-31 15:57 ah, then it's the jz4780 tree from the MIPS guys 2015-03-31 15:57 we started moving our jz4770 tree to DT some months ago, but some parts (e.g. clocks driver) aren't easy 2015-03-31 15:58 OK. I'll have a look at what the MIPS people have for DT. 2015-03-31 15:58 Short of that, I'm tempted to do some dirty hacks to see if the "old" jz4740 PWM driver can be tweaked to work with jz4730 pin assignments. 2015-03-31 15:59 I think the timer/counter registers are the same between the jz4730 and jz4740. 2015-03-31 15:59 if you want to do it cleanly, bump larsc - IIRC he has a pinctrl driver ready for jz4740 2015-03-31 16:00 the pin assignments are done in DT so it would probably work on jz4730 as well 2015-03-31 16:00 (e.g. we use the exact same pinctrl driver for jz4770 and jz4780 now) 2015-03-31 16:00 if the subsystem didn't change too much it may even be used for older versions 2015-03-31 16:04 I think the confusing thing when looking at the old (2.6) code is, apart from kernel coding changes, the way some things like PWM are done. 2015-03-31 16:05 It's hard to tell from vendor code, though, as they dump their internal knowledge to C. 2015-03-31 16:06 But since the timer/counter unit looks the same, we can probably ignore weird vendor stuff and go the tried and tested route. 2015-03-31 16:07 pcercuei has quit [Ping timeout: 252 seconds] 2015-03-31 16:16 Haswell has joined #qi-hardware 2015-03-31 17:14 https://www.amazon.com/oc/dash-button 2015-03-31 17:15 wpwrak: that's like the shaver which buys blades when they are empty 2015-03-31 17:20 sb0 has joined #qi-hardware 2015-03-31 17:30 wej has quit [Ping timeout: 250 seconds] 2015-03-31 17:35 wej has joined #qi-hardware 2015-03-31 17:41 FDCX has quit [Ping timeout: 252 seconds] 2015-03-31 17:49 eintopf: Hope it has built-in "surge protection" for when someone's child presses the button for chocolate a hundred times. :-) 2015-03-31 17:55 FDCX has joined #qi-hardware 2015-03-31 18:08 viric has quit [Read error: Connection reset by peer] 2015-03-31 18:08 viric has joined #qi-hardware 2015-03-31 18:10 Luke-Jr has quit [Ping timeout: 252 seconds] 2015-03-31 18:11 Luke-Jr has joined #qi-hardware 2015-03-31 18:23 Luke-Jr has quit [Ping timeout: 265 seconds] 2015-03-31 18:30 what is the resistor value to put across a usb socket to that connects to a usb charger to get max current? 2015-03-31 18:31 i'm making up a micro usb socket pwr input adaptor for my zipit. 2015-03-31 18:31 so i can use a standard microusb socket to charge/pwr my device 2015-03-31 18:32 where would i find this info, in the usb doc? isn't such info hard to find in the doc? 2015-03-31 18:40 Luke-Jr has joined #qi-hardware 2015-03-31 18:53 Luke-Jr has quit [Remote host closed the connection] 2015-03-31 18:53 jekhor has joined #qi-hardware 2015-03-31 18:55 Luke-Jr has joined #qi-hardware 2015-03-31 18:56 pcercuei has joined #qi-hardware 2015-03-31 18:59 wej has quit [Ping timeout: 245 seconds] 2015-03-31 19:02 Luke-Jr has quit [Read error: Connection reset by peer] 2015-03-31 19:02 Luke-Jr has joined #qi-hardware 2015-03-31 19:04 wej has joined #qi-hardware 2015-03-31 19:20 wej has quit [Ping timeout: 250 seconds] 2015-03-31 19:22 FDCX has quit [Ping timeout: 244 seconds] 2015-03-31 19:24 jekhor has quit [Ping timeout: 256 seconds] 2015-03-31 19:27 wej has joined #qi-hardware 2015-03-31 20:01 FDCX has joined #qi-hardware 2015-03-31 20:06 wolfspraul has quit [Quit: leaving] 2015-03-31 20:20 jekhor has joined #qi-hardware 2015-03-31 20:50 pcercuei has quit [Ping timeout: 265 seconds] 2015-03-31 20:52 wej has quit [Ping timeout: 245 seconds] 2015-03-31 20:57 wej has joined #qi-hardware 2015-03-31 21:21 paul_boddie has quit [] 2015-03-31 21:41 Haswell has quit [Quit: Saliendo] 2015-03-31 21:44 jekhor has quit [Ping timeout: 250 seconds] 2015-03-31 21:45 wej has quit [Ping timeout: 250 seconds] 2015-03-31 21:51 wej has joined #qi-hardware 2015-03-31 23:16 wej has quit [Ping timeout: 245 seconds] 2015-03-31 23:21 wej has joined #qi-hardware