Using Arduino Nano and a relay to fire a solenoid

In my previous post I talked about using a motor, a cam, and a switch to fire a solenoid. That just wasn’t going to work because it was too hard to get the right pace of the solenoid firing. The motor voltage changed its speed, and it was too difficult to adjust the cam shape and to fire the solenoid properly.

In this post I’m showing how I used the Arduino Nano to control the firing rate of the solenoid instead of a rotating cam. With the Arduino, it’s a 30-second program change to adjust the rate of the solenoid firing as opposed to the ridiculously difficult process with motor and cams.

The video below shows the solenoid firing once per second by using the default settings in the sample ‘Blink’ program that is included with the Arduino. Then I made a simple program change in the Arduino to speed up the solenoid. This is soooo much easier than cams and motors!