LCM1602C LCD + Arduino Uno R3

Here is the hardware setup for the previously shown code:

Display Pin followed by its connection:
1 GND
2 5 v
3 Pot output (or GND may work).
4 To assigned code Arduino Pin (Pin 10 in sample code).
5 GND
6 To assigned code Arduino Pin (Pin 9 in sample code).
(7-10 are not connected)
11 To assigned code Arduino Pin (Pin 5 in sample code).
12 To assigned code Arduino Pin (Pin 4 in sample code).
13 To assigned code Arduino Pin (Pin 3 in sample code).
14 To assigned code Arduino Pin (Pin 2 in sample code).
15 5 v via 220 Ohm Resistor (directly to 5 v also appears to work)
16 GND

There is also a connection from the pot output to A5 for watching on Serial Monitor. This is critical since if the pot is not functioning the way that is expected, the display will not work well if at all.

Again, I hope this helps you, as it took some time for me to work all this out.

One other note: I decoupled the breadboard from the Arduino board by putting pin 1 of the Display into the breadboard hole 1 (etc.). Then, I ran jumpers from that side of the breadboard to the other with the number for the number for the Arduino pin it was going to be connected (or to ground/ 5v / pot out). Then, I could disconnect this breadboard from the Arduino and use another breadboard for another project, keeping this breadboard for modifications of this project. Reconnecting this breadboard is easy using the breadboard number to Arduino pin numbers (and to A5 for pot monitoring).

Malcolm