I got an Arduino UNO and a 16×2 alphanumerical LCD on hand, the LCD looks like this:
I just have no clue about how to connect these two together. I got some Dupont Line, just want to know how to wire it up.
arduinolcd
I got an Arduino UNO and a 16×2 alphanumerical LCD on hand, the LCD looks like this:
I just have no clue about how to connect these two together. I got some Dupont Line, just want to know how to wire it up.
Best Answer
I have this exact same board and you can simply plug it onto your Arduino. The only catch is that the pinning is a little different from the default pinning in the example sketches, hence the changed
LiquidCrystal
command. Some sketches use LCD4bit, but this library is old, you want to use the LiquidCrystal library.The manual for LiquidCrystal library can be found here.
This is the sketch I used to test it:
The keyboard can be read through
analogRead( A0 );
. This returns an value 0-1023 depending on which key is pressed. Here is a function I used before:To dim the backlighting:
Where 10 is output pin 10 and must not be changed and 60 is the brightness of the backlighting ( 0 .. 100 ). You want to place this line in the
setup
function.