0

Driving 5v solenoid with motorshield v2.3
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Driving 5v solenoid with motorshield v2.3

by DataLadyLydia on Mon Feb 04, 2019 2:03 pm

Hello,

I'm looking to run the Adafruit 5v, 1 amp solenoid for 2-3 hours held in a steady position. I'd like to use the motor shield v2.3 as others did similarly in previous posts. It is overkill, but quick and easy. After reading this post viewtopic.php?f=31&t=60298 I want to make sure that the the shield is compatible with the solenoid.
Is it? Last, do you have any advice on adjusting the PWM to prevent overheating?

DataLadyLydia
 
Posts: 1
Joined: Mon Feb 04, 2019 1:43 pm

Re: Driving 5v solenoid with motorshield v2.3

by adafruit_support_bill on Mon Feb 04, 2019 2:15 pm

The shield should be able to handle that solenoid if supplied with 5v. You can treat it like you would a DC motor. Set the 'speed' to 255 to actuate the servo. Then, after a few hundred milliseconds, you can reduce the 'speed' to limit the current to the solenoid to reduce the heating. You'll need to experiment a bit to find the minimum speed setting that keeps the solenoid actuated.

adafruit_support_bill
 
Posts: 71779
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.