Arduino LCD!

52,634

88

21

Introduction: Arduino LCD!

About: I love electronics and like doing other stuff. RANDOM stuff.......

Have you seen an lcd screen? Well, today, you can use a lcd keypad shield and program it to display things!


Parts:
DFRobot lcd keypad  shield
arduino
computer
usb cable

Step 1: Hooking It Up(code)

//The code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
int readkey;
void setup() {
  lcd.begin(16, 2);
  lcd.print("Fathers day");
}
void loop() {
  lcd.setCursor(0, 1);
  lcd.print("It doesn't?");
  readkey=analogRead(0);
  if (readkey<50) {
  lcd.clear();
  lcd.print("Button Right");
  }
  else if(readkey<195) {
    lcd.clear();
    lcd.print("Button Up");
  }
  else if(readkey<380) {
    lcd.clear();
    lcd.print("Button Down");
  }
  else if(readkey<790) {
    lcd.clear();
    lcd.print("Button Left");
  }
}

Step 2: Finished!

I am a 8-year old boy named Jason and I live in Canton,MI.
I did this by myself and you can see the video clip below.
Thanks for reading this instructable!

Update: I'm now 14 :)

Share

Recommendations

  • Metalworking Contest

    Metalworking Contest
  • Water Contest

    Water Contest
  • Creative Misuse Contest

    Creative Misuse Contest

21 Discussions

This 74 yr old just took this exampleand developed an Azimuth/Elevation Controller for my Ham Radio Antenna.

Nice job young man. Keep at it. Just a tip for others, adjust the contrast. Some of these come with their contrast turned way down. It doesn't?

Eight, huh?
Well, you just got a 57 year old up and running.
I was looking for a quick heads up on the use of the module, and, that's what you did.
Ta, muchly.

Please consider this version to add button Select :

"

//The code:

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

int readkey;

void setup() {

lcd.begin(16, 2);

lcd.print("Fathers day");

}

void loop() {

lcd.setCursor(0, 1);

lcd.print("It doesn't?");

readkey=analogRead(0);

if (readkey<50) {

lcd.clear();

lcd.print("Button Right");

}

else if(readkey<195) {

lcd.clear();

lcd.print("Button Up");

}

else if(readkey<380) {

lcd.clear();

lcd.print("Button Down");

}

else if(readkey<555) {

lcd.clear();

lcd.print("Button Left");

}

else if(readkey<790) {

lcd.clear();

lcd.print("Button Select");

}

}"

Just got mine as well today. Only running into one minor oddity... I have the Exact same, and it seems to be drawing too much on the Uno's power, to the point the ATMega8U2 (It's a Uno R2, not R3) is not recognized by the computer (If I remove the shield, and plug the USb cable into the UNO, it prrecognizes it fine, and receives the program, and THEN I can plug the shield back on. But, if I try to program the UNO with the shield plugged on, the computer will compile, but refuses to load to the UNO.)

can you change button function with this?

Great start buddy, I'm 47 and just starting so your way ahead of me!!

Keep up the examples so us oldies can learn from you.

Good work and well done you.
I found this very useful when starting out with a new lcd_keypad.
My own youngling is 12 and I am trying to get him interested in Arduino too.

Thanks for the reply! I hope your son is also interested in Arduino !

Thank you for sharing this. I just opened my recently bought arduino lcd keypad shield and I needed a simple and fast tutorial on how to use it. Your instructables did that very well. It seems it cannot detect the sixth push button labeled "select"

2 replies

Hey. I can help you with a tutorial at this website: ladyada.com

Make sure you switch your dfrobot pins or you might break your arduino.

Peace Out!

Thanks for replying to my instructable. Sorry for the very late comment :(