Electronic – How to cutoff power to ultrasonic HC-SR06 when it is not been used, to save power

hc-sr04low-powermosfetpower

I want to read an ultrasonic sensor data every 10 minutes and expect that the module should be turned off in order to save power.

How do I do this?

I tried with a BC547 and PN2222 transistor but I end up with failure.

Can you please suggest a better method to cutoff power from the module? It has 4 pins (VCC,GND, ECHO,TRIG.)

Best Answer

Use a P-channel MOSFET eg. AO3401A to cut Vcc. Low to the gate = ON.

schematic

simulate this circuit – Schematic created using CircuitLab

Add a 1K resistor series with the TRIG input and make sure that you drive TRIG low before shutting off the Vcc and do not drive it high until after Vcc has been turned on. Also do not drive ECHO high as an output (it should never be an output). Adding another 1K on the ECHO line would not hurt.


Related Topic