Arduino KEYPAD LCD SHIELD RELAY CONTROL.

Arduino KEYPAD LCD SHIELD RELAY CONTROL.

Hello world! today i wrote a simple code to control 4 relays with a keypad LCD shield for arduino. You can add any device and the code is easy to modify. I used 1 lamp as a example device. The video displays dutch text on the lcd screen but the code i uploaded is english, “apparaat” means device.

Schematic:
arduino keypad shield code, Arduino KEYPAD LCD SHIELD

Just wire it up like the schematic, upload the code and it should work.
If things don’t work you probably don’t have the library LiquidCrystal.h installed.

Parts list:
Arduino mega 2560, I used the RobotDyn Mega 2560
4 x 1 channel relay KY-019
LCD shield with keypad. <- i bought a bunch of those. shipping fast Jumper wires set MM/FF/MF Power cables + lamp sockets.(optional)

Code:

facebook-profile-picture
Danny van den Brande

http://www.arduinosensors.nl

Programmer, Game Designer, 3D Designer, Web Designer, Graphic Designer. Jup this website looks crappy.. :) But enjoy the projects! Everything you need is here.

2 thoughts on “Arduino KEYPAD LCD SHIELD RELAY CONTROL.”

  1. Having trouble with this. Can’t choose relay 4. When choosen, lcd prints “Device 1” So i get D1,D2,D3,D1 when i go trough the buttons. This is on a UNO board however.
    Help appriciated

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.