Have some examples of devices that use long press to turn on and off? Only things I can think of is phones or tablets really but in the case of shutdown it’s a long press to activate the shutdown confirmation screen. On startup they will use a short press to show battery charging or life and long press to turn on but in that case they must be using some power to run a timer and then I imagine they are using a FET to actually open or close power to the main cpu/mcu (I’m speculating here).
Only thing I can find that would do this without keeping the arduino itself powered up to monitor the button press seems pretty big: http://www.ebay.com/bhp/time-delay-switch
Doing the going to sleep part based on a delayed button press from the arduino itself wouldn’t be too hard but actually shutting off and then doing the startup without some clock running won’t really work as far as I can tell.
The switch turns the transistor, which powers the arduino, the arduino sets A01 high, which overrides the switch and keeps power flowing.
For shutdown just need to set A01 low, which can be done by connecting the switch to one of the arduino inputs and reading its value.
^^ Think this is similar to what @chinzw sketched up above but doesn’t include the arduino part but pretty sure that would just be controlling one of the “switches” using a BJT maybe… really in any case I think this is a fair amount of extra complexity if you aren’t baking all the stuff onto a single PCB. Would be interested to see pictures of the guts of the controller that does this though.
Actually pics of the guts might be slightly different to current model. Mine doesn’t have side switch like on above pic here ( which I think originally was to switch remote on and off). I might take mine apart to see how it looks now.
Hmm yeah hard to see what that momentary button is hooked to but I don’t see any NE555 timer ICs on there either so I would guess they’re using something akin to the circuit in the previous post. I haven’t really used surface mount FETs or BJTs only the through hole kinds but they have 3 legs so think some of those small black packages on the board with 3 pins could be one or the other (could also be voltage regulators or other things)… some details on identifying components here:
Can usually zoom in with a phone or better camera and take a picture to be able to actually read the labels, sometimes need to get the angle to get light bouncing off it or wipe off the components to get rid of any grime.
I will undress my remote and get some pics. You’re right, if there is no custom pcb then it will be too complicated. @solidgeek was looking into making one but I think it would be for later Versions if anything
If im not mistaken, that circuit you posted wont stay on tough. It looks like its just a capacitor bleeding timer, but it wont stay on indefinitely or off indefinitely.
Sorry for the late answers guys, I have been sick for the last four days
@Maxid Looks good! Great idea with the lip thing, I will definitely try to add that to the 3D model. Regarding the nuts, I don’t think it is necessary. I have been assembling and dissembling my remote (with threads in the plastic) +20 times, and it still works great. Sure it takes a little time to reopen the remote, however no more than a minute (about 10 seconds per bolt?). Maybe adding the lip I could remove 2-3 bolts from the design, making it much easier to reopen.
@chinzw Great! I am looking forward to seeing the result However sampling from a 0-2v output from an Arduino running on 5V (or even 3.3V) would mean a much lower resolution, does the m0 has a higher resolution ADC?
@MontPierre Regarding the soft switch, I think it’s a nice idea, however, I think it takes up to much space in the current version. Maybe it could be added in the future. I am planning on making a custom PCB for all the electronics, some time in the far future
Update regarding the beta version: I am beginning to receive all the parts, however, some (many) things probably got stuck in customs (or bad weather) so I expect at least a week more before everything arrives . Meanwhile, I will make my 3D-printer do some work
@solidgeek i didn’t have time this weekend, but ill get to it this week. The proto m0 has a 12bit ADC, on 3.3v thats 0.81mv resolution, it should be plenty
Hi all, sorry for the missing updates! I just started my third semester at the university, so I have been very busy. I have been updating my GitHub wiki with some schematics and information regarding the remote. It’s not finished yet, but I think I will be able to finish everything this weekend.