2016-04-03 00:28 Luke-Jr has quit [Remote host closed the connection] 2016-04-03 00:28 Luke-Jr has joined #qi-hardware 2016-04-03 00:35 Luke-Jr has quit [Ping timeout: 248 seconds] 2016-04-03 00:35 Luke-Jr has joined #qi-hardware 2016-04-03 01:41 wildlander has quit [Quit: Saliendo] 2016-04-03 02:27 Luke-Jr has quit [Excess Flood] 2016-04-03 02:27 Luke-Jr has joined #qi-hardware 2016-04-03 03:02 Luke-Jr has quit [Excess Flood] 2016-04-03 03:08 Luke-Jr has joined #qi-hardware 2016-04-03 03:32 DocScrutinizer05 has quit [Disconnected by services] 2016-04-03 03:32 DocScrutinizer05 has joined #qi-hardware 2016-04-03 04:12 Luke-Jr has quit [Remote host closed the connection] 2016-04-03 04:17 enyc has quit [Ping timeout: 250 seconds] 2016-04-03 04:37 Luke-Jr has joined #qi-hardware 2016-04-03 04:39 enyc has joined #qi-hardware 2016-04-03 05:09 sandeepkr has quit [Ping timeout: 268 seconds] 2016-04-03 06:27 (writing to SD-card during system shutdown) you mean to save the time / cap state ? that would go to internal flash. SD would be way too slow and power-hungry 2016-04-03 06:32 (expensive components) please bear in mind that the BOM cost is something < USD 20 2016-04-03 06:39 (xtal sharing) i wish :) long ago i had just one xtal. alas, rfkill means that rf and MCUs each need their own set. maybe 32 kHz could be shared from MCU to RF. 2016-04-03 06:40 from sMCU that is 2016-04-03 06:44 (no alarm needed) true, for now there's nothing that actually needs to wake up after some time. but i'd rather keep that option, at least for a while. the idea is that anelok's functionality can evolve. 2016-04-03 06:45 an example: a common defense-in-depth feature would be to erase keys from memory as soon as they time out. so that would require a wakeup. 2016-04-03 06:46 sandeepkr has joined #qi-hardware 2016-04-03 10:25 sandeepkr has quit [Ping timeout: 244 seconds] 2016-04-03 11:21 sandeepkr has joined #qi-hardware 2016-04-03 14:13 wildlander has joined #qi-hardware 2016-04-03 15:35 pcercuei has joined #qi-hardware 2016-04-03 15:47 sandeepkr_ has joined #qi-hardware 2016-04-03 15:50 sandeepkr has quit [Ping timeout: 240 seconds] 2016-04-03 15:55 sandeepkr__ has joined #qi-hardware 2016-04-03 15:58 sandeepkr_ has quit [Ping timeout: 246 seconds] 2016-04-03 15:58 yet to be seen if IRQ doesn't work at 1.3V 2016-04-03 15:59 INT actually 2016-04-03 16:13 sandeepkr_ has joined #qi-hardware 2016-04-03 16:17 sandeepkr__ has quit [Ping timeout: 276 seconds] 2016-04-03 16:32 I admit I didn't read the friggin datasheet too thoroughly - it was too fuzzy to be any fun to read 2016-04-03 16:33 a typical case of "get an evaluation board!" 2016-04-03 16:35 I don't see any special undervoltage circuit being mentioned anywhere in the datasheet, just a pretty clear "if Vbat >Vcc then Vbat will get directly switched to all the internal power rails of the chip" 2016-04-03 16:36 so the 1.8V is just a limit for the waranted electrical properties to be in specs 2016-04-03 16:37 IOW the chips are not tested&binned for any operation conditions outside those specs, but that doesn't mean the chip instantly stops working 2016-04-03 16:38 undervoltage anyway is inside ABSMAX still ;-) 2016-04-03 16:59 >> The device is fully accessible through the I2C interface whenever VCC is between 3.6V and 1.8V. I2C operation is not guaranteed when VCC is below 1.8V. The AS1801 maintains the time and date when VCC is as low as 0.9V.<< 2016-04-03 17:01 anyway watch out! >> The startup time is usually less than 1 second when using a crystal with the specified characteristics.<< 2016-04-03 17:31 pcercuei has quit [Quit: beach time] 2016-04-03 17:40 relevant for cold startup 2016-04-03 17:53 ((BOM cost is something < USD 20)) yeah, I know about that BOM problem. A 1 buck more for a supercap is already quite hefty, but on the credit side of balance there are massively improved product specs 2016-04-03 17:55 anyway you're free to use a dual footprint here for 100uF standard X5R or a 11mF supercap. Possibly your customers will be happy to pay a 5 bucks more for having a decent bat-less grace time 2016-04-03 17:59 there's also another aspect that's also relevant for the original design with RTC in MCU: users regularly notice it's time for a bat swap only when device stops or already stopped working. With MCU RTC you already lost time when that happens. With CMOS RTC the time will stay accurate until battery voltage drops below 0.9V, and even then user has 1h minimum time to remove battery and find a fresh one to insert for one minute to 2016-04-03 17:59 recharge capacitor 2016-04-03 18:00 well, not exactly to the point. Should have rephrased "and even then", anyway you get the picture 2016-04-03 18:23 it's simple enough for hackers to swap the cap at home, DIY 2016-04-03 18:24 product variants seem feasible too 2016-04-03 18:45 MistahDarcy has quit [Ping timeout: 260 seconds] 2016-04-03 19:04 sandeepkr__ has joined #qi-hardware 2016-04-03 19:08 sandeepkr_ has quit [Ping timeout: 252 seconds] 2016-04-03 19:27 sandeepkr_ has joined #qi-hardware 2016-04-03 19:27 (bat swap) anelok can sense the battery voltage. so it can pretend that it needs replacing a little before it actually does :) 2016-04-03 19:28 sandeepkr__ has quit [Read error: No route to host] 2016-04-03 19:29 sandeepkr has joined #qi-hardware 2016-04-03 19:29 yes, that occurred to me too while writing 2016-04-03 19:31 the 1 to 10h bat-out time seem a pretty decent selling point to me though 2016-04-03 19:32 sandeepkr_ has quit [Ping timeout: 244 seconds] 2016-04-03 19:32 also accuracy of the RTC, compared to any "embedded" solution which is commonly known to be inferior 2016-04-03 19:34 and last not least the massively less complex software requirements 2016-04-03 19:41 not even thinking about R&D verification and debugging effort 2016-04-03 19:43 it's almost impossible for me to list the set of test conditions that need to get verified for the embedded MCU clock design 2016-04-03 19:44 while for the RTC design such list comes natural since no housekeeping aka "shop closing" needed at all, as well as no time critical stuff during resume/power-up 2016-04-03 19:48 particularly for the MCU clock design you need to verify the software to be free of any race conditions or deadlocks or other flaws, which most probably can even be proven to be impossible to get done 2016-04-03 19:49 especially when you have other restrictions too, e.g. transactions that can't or must not get aborted by a NMI 2016-04-03 19:51 if it's power out, pretty much everything can get aborted ;-) 2016-04-03 19:54 anyway, the nice and simple RC solution looks quite sufficient for now. if it should turn out to be trouble, there'll always be time later to try something else. even better, the algorithm can be gradually improved, as needed. 2016-04-03 19:59 is it possible to abort NAND writes? communication to display? 2016-04-03 20:00 are NAND writes verified to work during massive Vcc fluctuations? 2016-04-03 20:01 even when a previous series of NAND writes had to get aborted? 2016-04-03 20:01 you mean the internal NOR ? no, not really. but they're fast. the display should be gently shut down, says the data sheet. but it doesn't seem to mind unclean shutdowns. otherwise, i'd probably have noticed by now ;-) 2016-04-03 20:03 what ebout a page erase in progreess? can you abort that and write to flash instead? 2016-04-03 20:04 are all the routines in your OS reentrant? 2016-04-03 20:05 sandeepkr has quit [Quit: Leaving] 2016-04-03 20:05 none blocking IRQs? 2016-04-03 20:05 I prolly could go on ad infinitum 2016-04-03 20:06 sector erase needs high power for some 13 ms 2016-04-03 20:06 sure it *can* get done, the question is how reliable it is and how much effort you need to put in to make it reliable and even prove that it is 2016-04-03 20:07 and i try to do that as little as possible, to not wear out the flash. so this means that the probability of a concurrent flash erase at battery removal is basically zero. even if the battery removal results from a fall or such. 2016-04-03 20:07 when time keeping is of such paramount importance, I'd rather rely on a plain simple hw solution, even when it costs 1.50 more 2016-04-03 20:08 time can get lost. i mean, you can have a stroke while in the midst of battery removal. in fact, that's probably more likely than the scenarios you're dreaming up :) 2016-04-03 20:09 yes, exactly, and it will happen way more often than you are dreaming up, with a bat-out time of max 30s 2016-04-03 20:09 the current thing should be good for something like a minute, probably more 2016-04-03 20:10 I still think such a usage scheme is not feasible without a decent pre-fail signal made from sort of mechanical switch that detects battery removal before it happens 2016-04-03 20:10 and yes, if you don't manage to put in a new battery after all that time (or at least put back the old one), then you'll be greeted by the blinking 00:00 ;-) 2016-04-03 20:14 that's the minimum needed 2016-04-03 20:17 also: 2016-04-03 20:17 >>BATTERY EMPTY! Needs replacement 2016-04-03 20:17 You can't use the device for longer than one minute now, soon you can't use it at all. 2016-04-03 20:17 Please remove the two screws on bottom and open up case, swap battery for a new 1.5V AAA. 2016-04-03 20:17 **Do not leave device without battery (new or old one) for more than 30s!** << 2016-04-03 20:20 also dim or shut down backlight when low battery 2016-04-03 20:24 ((put back old one)) good point I probably hadn't thought about if I was in such situation that the new battery slips away and falls under the desk while swappinng 2016-04-03 20:30 it's an OLED. there is no backlight :) 2016-04-03 20:31 aaah right 2016-04-03 20:31 i can dim it a little, but it's almost imperceptible 2016-04-03 20:37 the question is if it reduces power consumption 2016-04-03 20:37 imperceptable? good! :-) 2016-04-03 20:38 you also want to block all block erases and possibly all "normal" writes during bat-low state 2016-04-03 21:14 naw, a bit of regular nagging should do. most people will ignore it, and have anelok shut down on them, forcing them to get a new battery 2016-04-03 21:15 however, those who care are likely to pay attention, and not risk unplanned shutdowns 2016-04-03 21:17 it all depends on the use case. most people can get new batteries quickly, and have access to accurate time. so none of this troubles them overly. many of them will find having to set the time disproportionally inconvenient, though. that's why i'm making an effort to spare them this experience. 2016-04-03 21:17 but if they still don't cooperate, well, it's their loss :) 2016-04-03 21:19 and then you have the fringe cases. they're important due to their marketing value. if james bond would choose anelok, that gives you a good feeling about it, right ? even if the number of attempts on your life had been fairly low so far 2016-04-03 21:20 so the goal is to maximize that fringe utility without making the thing "expensive" for the rest 2016-04-03 21:25 makes sense 2016-04-03 21:26 but by same rationale you should request that users enter a battery change mode before removing battery 2016-04-03 21:27 btw how is battery change soved mechanically? 2016-04-03 21:27 solved even 2016-04-03 21:28 I guess my "two screws" approach above isn't close to reality? 2016-04-03 21:29 (if it was, it's simple enough to have a pre-fail that fires when case gets opened 2016-04-03 21:29 ) 2016-04-03 21:31 yes, two screws :) if you look really carefully, you can see them: http://downloads.qi-hardware.com/people/werner/anelok/tmp/case-interim/case-20150714.png 2016-04-03 21:31 just a bit above the battery, pointing upwards 2016-04-03 21:32 then how about a button meander on PCB and a patch of cunducting foam on the lid? 2016-04-03 21:32 unproven materials. in any case, i expect power to ramp down slowly in comparison to MCU reaction time 2016-04-03 21:33 or the other way around: a spring lever (wire) soldered over a hole in PCB and when the notch from lid doesn't press that spring up from PCB surface anymore, it touches surface and closes a contact 2016-04-03 21:34 i'll have some 1.3+ V to clean up. even if the initial fall is very quick, the MCU can then shut down stuff and gain time. massively, going from tens of mA (worst case) to tens of uA 2016-04-03 21:35 or simply have a conductive painting or washer on the lid bolt that holds the screw, and a two patches of plain copper trace next to the hole in PCB. Those get shorted when lid is closed and screwed tight 2016-04-03 21:36 naw, let's keep things simple :) we have caps to give us a bit of time. all that needs to happen is to survive the initial drop, then establish control. after that it's smooth sailing 2016-04-03 21:36 how much simpler than two traces and a washer can it possibly get? 2016-04-03 21:37 two patches of trace... that will corrode and become unreliable 2016-04-03 21:37 and chances are the initial drop will be gentle as well 2016-04-03 21:38 like just ambient city air is enough, over a few years, not to mention more humid or more polluted places 2016-04-03 21:38 or god forbid someone use something slightly corrosive nearby 2016-04-03 21:38 whitequark: I've seen washer and screw contacts to traces since ages, they seem to work reliably 2016-04-03 21:38 I'm really doubtful of the idea, I've seen many purposebuilt connectors based on exposed copper fail 2016-04-03 21:38 like cardedge 2016-04-03 21:38 tin coating 2016-04-03 21:39 better but still bad 2016-04-03 21:39 hm 2016-04-03 21:39 if you do ENIG plating then the board side should be fine pretty much forever 2016-04-03 21:39 all sorts of AMP connectors are mounted to PCB exactly that way 2016-04-03 21:40 whitequark: except if there's that washer, scraping off the gold :) 2016-04-03 21:40 I've never seen a cardedge connector with *tin* coating. I've seen ENIG and some crappier plating 2016-04-03 21:40 and some really cheap ones using bare copper, almost always oxidized and/or corroded 2016-04-03 21:40 the tin is sufficiently immune to deep corrosion, and the steel washer pierces the surface oxide and makes decent contact 2016-04-03 21:40 pierces it and exposes it to further corrosion? 2016-04-03 21:40 and also puts force on the PCB? 2016-04-03 21:40 I'm not fond of this idea at all 2016-04-03 21:40 errr 2016-04-03 21:41 well, it's a proven industry standard since ages 2016-04-03 21:41 there's almost no cost difference between gold and tin. so for the PCB i'd go for gold. though i'd definitely avoid mechanical interactions. 2016-04-03 21:41 I would want a reference on that washer being "industry standard" :) 2016-04-03 21:42 cardedge yes, but it doesn't use this sort of uncontrolled force 2016-04-03 21:42 when you go for gold plating, you need a flat washer, not one of those that have teeth 2016-04-03 21:42 and it needs plating on both the contacts and the board 2016-04-03 21:42 how does a flat washer 'pierce' the oxide? 2016-04-03 21:42 (no difference) as far as PCBs are concerned. of course, it you go by ccm, kilo, or such, then yes, there is ;-) 2016-04-03 21:42 uncontrolled force?? 2016-04-03 21:42 seems you have a wrong idea of what I had in mind 2016-04-03 21:43 yes. compared to e.g. the springs in a cardedge receptacle 2016-04-03 21:43 springy contacts, I mean. those have a force that is limited by design 2016-04-03 21:43 whereas if you have a screw, the force is only limited by impatience of whoever's screwing it down 2016-04-03 21:43 you're mixing up three things now, do you? 2016-04-03 21:44 < DocScrutinizer05> or simply have a conductive painting or washer on the lid bolt that holds the screw, and a two patches of plain copper trace next to the hole in PCB. Those get shorted when lid is closed and screwed tight 2016-04-03 21:44 going off just this one suggestion 2016-04-03 21:44 so what? this is pinching the PCB between two solid points, not bending it 2016-04-03 21:45 it can prolly withstand a ton of force like this, per cm^2 2016-04-03 21:45 okay, that's true. but I still don't see how a flat washer would defeat the oxide layer 2016-04-03 21:46 which oxide layer? AuO2? 2016-04-03 21:46 if we're going with ENIG then your idea works, yes 2016-04-03 21:46 the washer should also have a good plating 2016-04-03 21:47 nickel probably works, or even a pure nickel washer 2016-04-03 21:47 nickle will do 2016-04-03 21:47 which basically is all washers you ever seen 2016-04-03 21:47 i'll trust the caps :) i have some 60 uF sitting there. you can't empty that fast enough to make the low voltage interrupt come too late. then, a few us later, lots of things will get shut down and stop drawing power 2016-04-03 21:48 at that time the MCU will still be some ~1 V above minima. it could now calculate the remaining digits of Pi, find a cure for cancer, or whatever MCUs do when they're really bored and in absolutely no hurry :) 2016-04-03 21:57 https://ixquick-proxy.com/do/show_picture.pl?l=english&rais=1&oiu=http%3A%2F%2Fwww.terminalsblocks.com%2FTemplates%2Fpic%2FSHINING-Terminal-Blocks-Terminal-Strips-Quick-Connector-35A.jpg&sp=7f2130c570700001d855a5e38076bb04 2016-04-03 22:08 https://www.ettinger.de/de/product/19.68.330 2016-04-03 22:08 frequently used on PCB with tin coating and tooth washer and screw+nut 2016-04-03 22:09 since literally a century almost 2016-04-03 22:10 often found integrated into standard PCB mounting: http://www.mikrocontroller.net/attachment/281300/zu-wenig-kleber.JPG 2016-04-03 22:12 https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSyd6fj30YOKEDmsTfA4rCQ78J8R_Z5dVP0396Wtg-IX393utcNf-bwCw washer 2016-04-03 22:16 with ENIG you want something like this https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQPyquu2W2XtDJ7ekZrlb-WuKqv7gwppGxz4BKLUbSprj5CYfTsSdDa6Q 2016-04-03 22:17 wildlander has quit [Quit: Saliendo] 2016-04-03 22:18 or this https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS2aNedoP77wt18lquJjbp96Q6eeeGVEoYT8WXKKc72toIjeMJ8avCJng_KCg 2016-04-03 22:20 you could even have two simple contact rings around the two screw holes in PCB, paint a conductive trace from one screw holding bolt to the other on lid, and use two of those https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQVplFjWtXVFZgDeO8QfEs4q-5Pn-jf-B6MzKp4GY9M6FCRFic0uIDuNsdpOA 2016-04-03 22:21 maybe you want to spraypaint the lid resp lower part of case with conductive paint anyway, to improve shielding 2016-04-03 22:21 from inside 2016-04-03 22:22 I heard case is made of acrylic and painted from inside anyway. Graphite paint would come to mind 2016-04-03 22:24 since we're talking several 100s of kOhm here anyway, for a normally-closed sensor, any such graphite paint and plain flexible/spring washers on both mounting holes would do 2016-04-03 22:24 you want one anyway, for grounding the shielding ;-) 2016-04-03 22:24 use the second for sensor instead of yet another grounding point 2016-04-03 22:26 BOM: zilch 2016-04-03 22:26 well, maybe two washers a 0.3ct 2016-04-03 22:27 which you want anyway for grounding the shielding 2016-04-03 22:31 graphite paint, for particles to flake off and introduce faults 2016-04-03 22:31 planned obsolescence at its finest! 2016-04-03 22:39 there's different kinds of grapphite spray, the one without binder to deposit loose graphite, and the one with binder to stay and act as shielding, explicitly mentioned as one of the primary usecases 2016-04-03 22:39 if you don't like black graphite, use silver alu 2016-04-03 22:40 but yes, on *flexible* surfaces like rubber mats, all those sprays perform very poorly 2016-04-03 22:41 particularly when you apply too much of the spray 2016-04-03 22:42 ever wrote with a paint marker on a balloon? it's absolutely water and wipe resistent - until you deflate the balloon 2016-04-03 22:44 ((rubber mats)) I talk from own experience 2016-04-03 22:46 ah, didn't know about the one with binder 2016-04-03 22:46 those seem alright but labor intensive to apply 2016-04-03 22:46 when you're ever going to fix an appliance remote control rubber mat, use a bin or cup to spray the graphite in, then take a fine brush and only gently paint the contact spots on the mat 2016-04-03 22:47 ((labor intensive)) well, very similar to any spray paint 2016-04-03 22:48 OT: #panamapapers LOL 2016-04-03 22:55 infobot has quit [Ping timeout: 244 seconds] 2016-04-03 23:07 infobot has joined #qi-hardware 2016-04-03 23:30 infobot has quit [Quit: cyal8r] 2016-04-03 23:34 infobot has joined #qi-hardware