So I have a small solenoid from Adafruit and I hooked it up as in the diagram here and it works:
http://www.arduino.cc/playground/upload ... driver.pdf
However, I first had it hooked up with the solenoid and the transistor order reversed so inline from power it was:
power-->transistor-->solenoid-->ground
|
Arduino
and it did not work. So my question is why would this NOT work? I'm happy it works now of course, but would appreciate any insight since I can't come up with a reason why it didn't work in this configuration. Thanks!
Solenoid circuit question
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Solenoid circuit question
a NPN transistor is on when the the base is about .7V above the emitter. if you connect the emitter to ground, then you can pull the base up to 0.7v. if the emitter is 'floating' or connected to an inductor (which, when turning on, is an instant short but then turns into an open) then the base wont be steady. thats the short answer, for more details, check horowitz & hill, chapter 1 & 2
Please be positive and constructive with your questions and comments.