loading
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!

<p>Eight, huh?<br>Well, you just got a 57 year old up and running.<br>I was looking for a quick heads up on the use of the module, and, that's what you did.<br>Ta, muchly.</p>
<p>Please consider this version to add button Select : </p><p>&quot;</p><p>//The code:</p><p>#include &lt;LiquidCrystal.h&gt;</p><p>LiquidCrystal lcd(8, 9, 4, 5, 6, 7);</p><p>int readkey;</p><p>void setup() {</p><p> lcd.begin(16, 2);</p><p> lcd.print(&quot;Fathers day&quot;);</p><p>}</p><p>void loop() {</p><p> lcd.setCursor(0, 1);</p><p> lcd.print(&quot;It doesn't?&quot;);</p><p> readkey=analogRead(0);</p><p> if (readkey&lt;50) {</p><p> lcd.clear();</p><p> lcd.print(&quot;Button Right&quot;);</p><p> }</p><p> else if(readkey&lt;195) {</p><p> lcd.clear();</p><p> lcd.print(&quot;Button Up&quot;);</p><p> }</p><p> else if(readkey&lt;380) {</p><p> lcd.clear();</p><p> lcd.print(&quot;Button Down&quot;);</p><p> }</p><p> else if(readkey&lt;555) {</p><p> lcd.clear();</p><p> lcd.print(&quot;Button Left&quot;);</p><p> }</p><p> else if(readkey&lt;790) {</p><p> lcd.clear();</p><p> lcd.print(&quot;Button Select&quot;);</p><p> }</p><p>}&quot;</p>
<p>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.)</p>
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. <br><br>Thanks
can you change button function with this?
<p>Great start buddy, I'm 47 and just starting so your way ahead of me!!</p><p>Keep up the examples so us oldies can learn from you.</p>
<p>Congratulations !</p><p>What I like the most is that you did it by yourself. Way to go kid.</p>
Good work and well done you.<br>I found this very useful when starting out with a new lcd_keypad.<br>My own youngling is 12 and I am trying to get him interested in Arduino too.
<p>Thanks for the reply! I hope your son is also interested in Arduino !</p>
Great work kid
Thanks!
<p>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 &quot;select&quot;</p>
<p>Hey. I can help you with a tutorial at this website: ladyada.com</p><p>Make sure you switch your dfrobot pins or you might break your arduino.</p><p>Peace Out!</p>
your welcome.
Nice work.
<p>Thanks for replying to my instructable. Sorry for the very late comment :(</p>
<p>WELL DONE, PAL! CONGRAT'S!</p><p>KEEP GOING!</p>
Thanks for the comment! I see you like arduino, right? :)<br><br>Thanks for viewing my instructable. Peace out:)
<p>Very nice, congratulations boy!</p>
<p>Thanks.</p>

About This Instructable

47,576views

87favorites

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: