Here PN2222 Transistor BJT is working as a switch.

Connection :
Use NPN PN2222 Transistor.
- Connect Base of the transistor with 1K resistor to digital output of the micro controller.
- whenever you provide an output to the Base HC-SR04 will get power. if base has no input supply, HC-SR04 will be on off condition which here referred as a power saving mode.
- Connect Collector of the transistor to ultrasonic sensor GND
- Connect Emitter to GND of the battery or Controller GND
Any Doubts comments below…..
No comments:
Post a Comment