Does anyone know how to connect Solenoids to a Arduino?

Hi All,

I'm working on a project and I was wondering if any of you could help me hook up a solenoid to an arduino so that I can control it using a button?

The solenoid I'm working with is 24v dc with 6 watts


Like L. says, why do you need to use an Arduino ;-)

BUT, if you do, use an Instructable like this one
amantux (author)  steveastrouk6 years ago
Thanks Stevastrouk,

That was a great and informative write up :)

Best Wishes
Make sure you mark it as the best answer then !

lemonie6 years ago
Why not just use a button?