I’m new to programming and electrical components, so please forgive any errors in the description:
I have a Photon attached to a Powershield. A 3.7v lipo battery powers the Powershield. I’m using a modified You’ve-Got-Mail hackster code from https://www.hackster.io/macsboost/you-ve-got-mail. (It is modified to remove the thingspeak and Lipo chargeboard references because I’m using a Powershield.)
I’ve wired it according to the schematic on hackster.
When using just the Photon, it alerts when the magnet moves away from the reed switch alerts (Good!).
But with a photon + Powershield, the magnet only alerts when the magnet nears the reed switch (Not good!).
Also FWIW I had switch-related power problems with the Powershield when connected to the 3v3, probably because of how the Photon gets power when connected to the Powershield. So, I wired the switch and resistor up to the 5v power pin.
I’d like the change my wiring or code so that when I withdraw the magnet, I get the alert. What can I do to make this happen?
Edit to include that my purpose in this project is to monitor beehives; to give me some warning when an apiary is getting knocked over, stolen, etc. (Bears or mischief-makers).