Arduino - LCD 1602A KEYPAD LCD SHIELD RELAY CONTROL.

by vandenbrande in Circuits > Arduino

6958 Views, 22 Favorites, 0 Comments

Arduino - LCD 1602A KEYPAD LCD SHIELD RELAY CONTROL.

Arduino LOGO.jpg
Arduino - LCD 1602A 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. Follow the next step for the schematic, Code & Parts list.

Schematic, Code & Parts List.

LCD 1602 - KEYPAD RELAY CONTROL.png

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.

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

Good luck!