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.

2n3906 with msp430 using ultasonic us-100

Hi,

Ive got the us-100 ultrasonic sensor which works off 2.4-5v, im switching it on using a 2n3906, the problem is that i cant get it to switch off and stop using current. I take a reading every ~30 seconds, on reset it uses no power between vcc and the 2n3906. the first time it takes a reading and onwards it uses current non stop.

how do i get it to stop after im done with a measurement?

Im using p2.1 to turn on and off the base,

So the code goes:

//wake up after 30sec

//turn on base on p2.1

{

take distance reading

}

turn off p2.1

any ideas?

**Attention** This is a public forum