So, I’m using these sensors that we ordered in from china. They supposedly have standby modes, but… I can’t get that to work no matter what I do.
What I really want to do is just turn off the power to the sensor.
My code currently does this
- Wait 3 seconds (for sensor to give reliable result)
- Get value from sensor
- Send value via network
- Wait 10 seconds (network can be slow)
- Deep sleep for 10 minutes.
Right before deep sleep, I want to turn off the sensor’s power. At the start of the code, I want to make sure the sensor has power.
The sensor pulls 5V so is connected to VIN+GND, then the data connections are on RX and TX.
Is there a way for me to do this? If not, does anyone have a suggestion on what circuity I could use to make this happen?
Thanks all!