Pages: [1]   Go Down
Author Topic: 6vdc solenoid help.  (Read 334 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello

i have the duemilanove board, and just found this 6v DC solenoid at a local workshop.

i read the pdfs on relays and solenoids, but i thought maybe the arduino's internal power supply of 5v might suffice for driving the solenoid to maybe hit a bell or something.

do i need a transistor to do this? or do the digital outputs of the arduino serve as on off switches for the solenoid?

also, code examples would be awesome....!

thanks guys
 smiley-wink

-dataplex
Logged

-------http://ulfurhansson.com/

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 596
Posts: 33271
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but i thought maybe the arduino's internal power supply of 5v might suffice

Sorry no way.

Quote
do i need a transistor to do this?

Yes

Quote
also, code examples would be awesome
digitalWrite(pin, HIGH) for on and
digitalWrite(pin, LOW) for off
Logged

Connecticut, US
Offline Offline
Edison Member
*
Karma: 2
Posts: 1036
Whatduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You won't be able to connect the solenoid directly to an output pin.  You will need at least a transistor, and more likely a transistor and a diode, to deal with controlling the solenoid while protecting the processor from spikes when the solenoid turns off.  You may have to feed it more than 5V, too.

This thread has some similar discussions and schematic ideas.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1233596069/all
Logged

Pages: [1]   Go Up
Jump to: