Pages: [1]   Go Down
Author Topic: 16x2 Lcd screen with UNO, help  (Read 979 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I am pretty new to this, i have played around with led mostly, And now i am trying to learn the LCD part.

i have a 16x2 lcd screen with blue background. But i cant get it to work properly, I have used this guide "http://arduino.cc/en/Tutorial/LiquidCrystal"

Can someone meybe tell me very simple how to connect and what code to use? I have the uno.
/Robin
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are example sketches in the IDE. They contain the pins you need to use.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ive noticed that this post is in the wrong category. sorry

i dont know what pin is what on the lcd.

i have 16 pins.

The 3 pin from left is marked with a "1" and the last marked "14"

Ardunio talks about D4,D5 ground, +5, dont know what is what
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 84
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh those, you need to look for LCD pinout.  Most LCD have 14 or 16 pins. In the LCD tutorial link you posted in your first post, you should have scrolled down to circuit, it shows wiring diagram. However I haven't seen one where the 3rd pin is 1 and last pin is 14, almost sound like the pin numbering is reversed.

Standard LCD (normally found on eBay and other sources) has these pinouts:
1 ground
2 Vsource (usually 5v)
3 contrast for LCD (different function if you used VFD)
4 register select
5 read/write (almost always grounded for arduino use)
6 enable
7-10 are D0 to D3 and can be skipped to save pins on arduino.
11 D4   \
12 D5    all are data pin, it's the instruction LCD gets from host on what to put on display.
13 D6
14 D7   /
15 LED  \
16 LED   These 2 pins can be controlled independently or straight wired to ground and 5v (through current limiting resistor) on LCD pin 1 and 2

I stole this picture long ago:


nearly all character LCD uses this pinout.  Those without backlight do no have the last 2 pins.  If you have a large LCD with 18 pins (4x40), those has extra control line that'd need to be wired in and they have different pinout.

Since your pinout may be different, I'd google for model (check the PCB silkscreen) and see if you can find datasheet or pinout.
« Last Edit: September 07, 2012, 07:20:51 pm by wilykat » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



That how it looks

i inverted the wires and moved them 2 pins, ( becouse the 1 begins att the second? ) atlast it ended upp with all white squares..

i have a potentometer (im not sure how many ohm it is?) and i am not 100% sure if i connect it right.
Logged

Pages: [1]   Go Up
Jump to: