Driving a Solenoid with the Adafruit Motor Shield

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
prologic
 
Posts: 23
Joined: Thu Apr 10, 2014 5:45 pm

Driving a Solenoid with the Adafruit Motor Shield

Post by prologic »

Hi Guys,

Just a quick question.

Can the Lock-style Solenoid - 12VDC(http://www.adafruit.com/products/1512) be drive by the Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit(http://www.adafruit.com/products/1438)?
If so, would you basically drive it a bit like a DC motor - energizing it's single coil for a period of time, then turning off the motor port?

cheers
James

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Driving a Solenoid with the Adafruit Motor Shield

Post by adafruit_support_bill »

Yes. You can drive that with the motor shield. You would power the shield with 12v. In your code, set the speed to 255 (full speed) then run (either FORWARD or REVERSE) to energize the coil.

User avatar
prologic
 
Posts: 23
Joined: Thu Apr 10, 2014 5:45 pm

Re: Driving a Solenoid with the Adafruit Motor Shield

Post by prologic »

Great thanks! Couldn't be easier!

cheers
James

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”