Introduction: Arduino LCD!

Picture of Arduino LCD!

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)

Picture of 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!

Picture of 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!

Comments

Stealther43 (author)2017-11-29

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

deltaray3 (author)2017-10-17

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?

jmscnny. (author)2016-08-22

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.

hadrien06 (author)2016-08-02

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");

}

}"

Gelfling6 (author)2016-07-08

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.)

danitucek made it! (author)2016-04-30

Nice tutorial, I just ordered the same display shield and I needed some help with the code because the pinouts that came with the sample in the Arduino IDE are different from this. With yours the display is working great and so are the buttons.

Thanks

ajrulradhi (author)2016-01-13

can you change button function with this?

SteveS162 (author)2016-01-12

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.

hjsalom (author)2015-08-06

Congratulations !

What I like the most is that you did it by yourself. Way to go kid.

D6equj5 (author)hjsalom2015-12-10

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.

1232443 (author)D6equj52015-12-15

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

nsalim (author)2015-05-03

Great work kid

1232443 (author)nsalim2015-05-03

Thanks!

roberto.petresco.1 (author)2014-10-20

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"

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!

your welcome.

sceper (author)2013-10-29

Nice work.

1232443 (author)sceper2015-02-17

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

braulio.sakamoto (author)2015-02-16

WELL DONE, PAL! CONGRAT'S!

KEEP GOING!

1232443 (author)braulio.sakamoto2015-02-17

Thanks for the comment! I see you like arduino, right? :)

Thanks for viewing my instructable. Peace out:)

Leonardo Gamba (author)2014-02-01

Very nice, congratulations boy!

1232443 (author)Leonardo Gamba2014-02-05

Thanks.

About This Instructable

50,110views

88favorites

License:

Bio: I love electronics and like doing other stuff. RANDOM stuff.......
More by 1232443:Rainbow Loom "Four-tho Double Bracelet"How to make a easy tic tac led flashlight!Arduino LCD!
Add instructable to: