Arduino Mega LCD + Buttons shield

An ardiuno mega compatible shield. With a 16x2 backlight LCD an 4 push buttons to control it.

Donwnload the frizing project, print booths sides of the pcb, solder parts and enjoy!

By Effixe
Created on September 20, 2011, 13:49

Images

Files

Links

Comments

  1. Effixe # Sept. 20, 2011, 2:11 p.m.

    /* Aruino Mega LCD Shield by Effixe ommentaires, demande d'infos ou envie de participer à mon projet http://diyautolab.blogspot.com/ effixe@gmail.com Le projet Fritizing lié à ce shield peut etre téléchargé sur le site de fritzing dans la section projets. (http://fritzing.org/projects/) Le circuit: LCD : * LCD RS pin to digital pin 48 * LCD Enable pin to digital pin 46 * LCD D4 pin to digital pin 44 * LCD D5 pin to digital pin 42 * LCD D6 pin to digital pin 40 * LCD D7 pin to digital pin 38 * LCD R/W pin to ground 4 push buttons Button 01 (prev) to digital pin 41 Button 02 (next) to digital pin 39 Button 02 (exe) to digital pin 43 Button 02 (cancel) to digital pin 37 */ #include // librairie Ecran LCD // Identification des boutons du shield const int B_Prev = 41; const int B_Next = 39; const int B_Exe = 43; const int B_Cancel = 37; // Initialisation du LCD LiquidCrystal lcd(48, 46, 44, 42, 40, 38); //Arduino Mega Shield void setup () { lcd.begin(16,2); //initialisation affichage LCD 16x2 lignes // Parametres des boutons pinMode(B_Prev, INPUT); pinMode(B_Next, INPUT); pinMode(B_Exe, INPUT); pinMode(B_Cancel, INPUT); } void loop() { if (digitalRead(B_Prev)==HIGH) { // bouton de gauche lcd.clear(); lcd.print(" Hello World "); } if (digitalRead(B_Next)==HIGH) { // bouton de droite lcd.clear(); lcd.print(" Bonjour Monde "); } if (digitalRead(B_Exe)==HIGH) { // bouton du bas lcd.clear(); lcd.print("Buenos dias mundo"); } if (digitalRead(B_Cancel)==HIGH) { // bouton du haut lcd.clear(); lcd.print("Buongiorno Monda"); } }

Login to post a comment...
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam