loading
This instructable will show you how to use a SainSmart LCD keypad shield.


You will need:

- An Arduino Uno

- SainSmart Keypad shield

Get one here: Here
- USB cable

Step 1: Setting Up

Place the Shield onto the Uno, and plug it in.

Step 2: The Code

Make sure you have the LiquidCrystal library installed.

// LiquidCrystal Print
// by Parzivail
#include
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);

void setup()
{
lcd.clear();
lcd.begin(16, 2);

}

void loop()
{
lcd.setCursor(0, 0);
lcd.print("Hello, World!");

}

Step 3: Done!

Congrats, you have a working LCD shield.
<p>hmmm no button control ?</p>
<p>Not sure if you're still looking for button control on this, Bob, but the link below will give you pretty much everything you need. You'll probably have to tweak the values of readkey a little bit, but it worked just fine for me once I figured out the right values there.</p><p>(mine, incidentally, were left, 504; right, 0; up, 143; down, 328; select, 741; and null (no key pressed) was 1023. I haven't checked the other board that I got yet to see if it's the same values, but I suspect that each board will be slightly different based on tolerances in the values of the resistors used.)</p><p><a href="https://codegists.com/code/arduino-lcd-keypad-shield-example-code-wiki/" rel="nofollow">https://codegists.com/code/arduino-lcd-keypad-shie...</a></p>
<p>Found the button control thanks.</p><p>Turns out I use similar routines quite a lot on other projects now after looking at the schem. sometimes simple as they use can have lots more uses.</p>
<p>No sketch works for me...</p><p>My shield just shows blocks in the first row, in the second nothing.</p><p>I`ve adjusted the gama also, any other recomandations?</p>
<p>it works ;)</p><p>I had to push it really deep in</p>
<p>Thanks I had troubles right away. This is the EXACT code that worked for me.<br><br>#include &lt;LiquidCrystal.h&gt;</p><p>// LiquidCrystal Print</p><p>// by Parzivail</p><p>LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);</p><p>void setup()</p><p>{</p><p>lcd.clear();</p><p>lcd.begin(16, 2);</p><p>}</p><p>void loop() </p><p>{</p><p>lcd.setCursor(0, 0);</p><p>lcd.print(&quot;&lt;3 You Angela&quot;);</p><p>}</p>
<p>Kyle, the code looks like it worked, but the screen doesn't show any words, just blocks. Any recommendations? Thanks</p>
Try adjusting your gamma with the little potentiometer thing
<p>Thanks, so much I tried everything to try to get it to work, and nothing but yours worked!</p>

About This Instructable

23,441views

29favorites

License:

Bio: Indie game developer that loves arduino and LEDs and gaming and stuff.
More by Parzivail:[UPDATED] Create a Minecraft Mod Nuts for Knots: Paracord Paraphernalia- The "Fob" Dancing LED's 
Add instructable to: