Hi TA, One way is to use a pull-up (internal or external) on the PICO' input. The switch would connect this signal to ground providing an OFF state. The signal would always be OFF until the switch opens at which point the pull up resistor pulls the signal ON. Hope that helps! Cheers! Chris
I noticed that when you stop Thony the data on the screen remains visible. I have been very frustrated by the behavior of my setup which clears the screen when the program is stopped. How can I get mine to work like yours?
Your tutorials are always useful and explained well. Is it possible to awaken a pico from deep sleep mode (to prolong battery life) with an interrupt to resume the software program? Example: a trail cam controlled by a pico is in sleep state until an animal trips a switch. Thanks!
Hi quaternion-pi Thank you for the kind words!!! I looked into this when I started the PICO series and recall that to use the "deep sleep and awaken" functionality you could not program that with MicroPython. SO MUCH has changed since then but I never had the time to revisit the topic. Being that the Zoomie (used in the ZoomTown Experiment) is battery powered, I may need to look into that topic again. It will likely be several months before I can visit that topic though. Cheers and good to hear from you again! Chris
Did you measure the current sir? Is it ok for the GPIO ? because what I've read Pi has really low current limit per GPIO pin, it's 16mA max If I'm not wrong
Hello, Not sure where your concern is regarding too much current, however, if it is for the LEDs in the example circuit, those would be drawing about 7 mA with the resistors used. Cheers! Chris
How would you wire a normally closed limit switch?
Hi TA,
One way is to use a pull-up (internal or external) on the PICO' input. The switch would connect this signal to ground providing an OFF state. The signal would always be OFF until the switch opens at which point the pull up resistor pulls the signal ON.
Hope that helps!
Cheers!
Chris
@@MakingStuffwithChrisDeHut
Sure does, thank you!
I noticed that when you stop Thony the data on the screen remains visible. I have been very frustrated by the behavior of my setup which clears the screen when the program is stopped. How can I get mine to work like yours?
Your tutorials are always useful and explained well. Is it possible to awaken a pico from deep sleep mode (to prolong battery life) with an interrupt to resume the software program? Example: a trail cam controlled by a pico is in sleep state until an animal trips a switch. Thanks!
Hi quaternion-pi
Thank you for the kind words!!!
I looked into this when I started the PICO series and recall that to use the "deep sleep and awaken" functionality you could not program that with MicroPython. SO MUCH has changed since then but I never had the time to revisit the topic.
Being that the Zoomie (used in the ZoomTown Experiment) is battery powered, I may need to look into that topic again. It will likely be several months before I can visit that topic though.
Cheers and good to hear from you again!
Chris
Did you measure the current sir? Is it ok for the GPIO ? because what I've read Pi has really low current limit per GPIO pin, it's 16mA max If I'm not wrong
Hello, Not sure where your concern is regarding too much current, however, if it is for the LEDs in the example circuit, those would be drawing about 7 mA with the resistors used.
Cheers!
Chris