Skip to main content

While this project may be pretty specific to me, I think the general idea could be easily applied to anything that you would like to automate! It’s really pretty simple, and the Arduino is a great platform for quickly prototyping.

In general, the code is much easier than you might expect too. The majority of it was copied in from examples sketches (the Arduino term for script) for the servos and keypad.  I just combined that code, and added a small amount of my own.

As far as power, I tried several different power supplies and ended up with a 9 volt 1.5 amp supply. The servos use enough power that the onboard 5 volt supply on the Arduino was not enough to power them.

Generally, it’s best to have a separate power supply for the servos, that has a common ground with the Arduino. This will eliminate the potential to overload the Arduino.

Several people have asked about the gates not being fully opened. This is mostly a condition of the gates themselves. The gate has a little dimple in it that stops it from being opened any further, so the “full” open is really about 3/4.

In case you want to make your own keypad -> servo system, you can download my Arduino sketch as a place to get started. You’ll also need to download and install the KeyPad library.