paul- wrote: > Hmm, anyway to replace the mechanical button mechanism with standard > push buttons? For this project, I really want to preserve the outside and interface of the old radio. While this means in principle keeping the non-momentary original switches (buttons), you make we wonder if there is an indirect way to have the non-momentary switches activate a second set of momentary switches on their way to the GPIO pins, maybe through a time delay circuit or relay? Ill have to do some reading.
On the software side, I wonder if I could modify the code that monitors the pins to register a button push if a connection is made via my non-momentary button. It could fire after a fixed time delay if the signal is maintained on specified pin. After a longer delay, if there was no further activity, the pin could be reset so its not left floating. Any thoughts on which portion of the source code I would need to look at? Alternatively, maybe I could take the idea of a delay / second button and execute it in software. Maybe a script that reacts to a change on pin 1, triggered by my mechanical non-momentary switch, and then momentarily flips a second pin on and off on the Pi, which sbpd could interpret as a button push? Ill try and work through a few possibilities and share any results. ------------------------------------------------------------------------ Turner1200's Profile: http://forums.slimdevices.com/member.php?userid=72084 View this thread: http://forums.slimdevices.com/showthread.php?t=107001
_______________________________________________ diy mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/diy
