Hi,
Ive got an MSP430 that goes into LPM3 and wakes up once every 5 seconds, I added the HC-SR04 ultrasonic sensor which I am powering from the MSP430s USB port 5V supply.
I had a 2n3904 NPN transistor setup which switched to ground, but i noticed that between +5v source and VCC of the sensor that it still draws current around 11mA. Its seems to be the trigger and echo pins, because after disconnecting them the device stops draining current.
It seems to be a port pin issue, I only set the pins up in the routine as input for ECHO and output for trigger. I also have a 2.2K base resistor (calculated was around 2.3K ohm).
Any advice on pin setup etc?
I also have a BC557 and 2n3906 would it be better to source the VCC that way?
thanks guys