This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

low power ultrasonic and g2553

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

  • The ESD protection diodes can make any pin with a high voltage a Vcc connection, and with low voltage, a GND connection.

    Unless the device actually is designed to allow voltage at its pins even when powered off, you have to disable all connections (i.e., make them high impedance = inputs) when powering off.
  • >I had a 2n3904 NPN transistor setup which switched to ground
    You shall switch +5V, not ground of sensor. Use your npn transistor as driver for P-MOS, not as power switch.

**Attention** This is a public forum