medmison690 wrote: ↑
Sun Aug 02, 2020 11:12 pm
Potentiometer pin 1 to GPIO pin 1
Potentiometer pin 2 to GPIO pin 39
Potentiometer pin 3 to LCD pin 3
LCD pin 1 to GPIO pin 6
LCD pin 2 to GPIO pin 2
LCD pin 3 to Potentiometer pin 3
LCD pin 4 to GPIO pin 37
LCD pin 5 to GPIO pin 34
LCD pin 6 to GPIO pin 35
LCD pin 11 to GPIO pin 33
LCD pin 12 to GPIO pin 31
LCD pin 13 to GPIO pin 29
LCD pin 14 to GPIO pin 23
LCD pin 15 to GPIO pin 17
LCD pin 16 to GPIO pin 25
The GND, 3.3V and 5V are NOT GPIO pins - you can't control those.
LCD pin#1 (GND) to RPI pin#6, pin#9, pin#14, pin#20, pin#25, pin#30, pin#34 or pin#39 https://pinout.xyz/pinout/ground
LCD pin#2 (Vcc) to RPI pin#2 or pin#4 https://pinout.xyz/pinout/pin2_5v_power
(most LCDs need 5V to drive the controller)
LCD pin#3 (Contrast) to the wiper of a 10K pot with the ends connected to LCD pin#1 (GND) and pin#2 (5V) respectively
LCD pin#4 (RS) to GPIO26 (pin#37)
LCD pin#5 (R/W) to any GND (all grounds are common)
LCD pin#6 (EN) to GPIO19 (pin#35)
LCD pin#7,8,9,10 no connection
LCD pin#11 (D4) to GPIO13 (pin#33)
LCD pin#12 (D5) to GPIO06 (pin#31)
LCD pin#13 (D6) to GPIO05 (pin#29)
LCD pin#14 (D7) to GPIO11 (pin#23)
LCD pin#15 (backlight A+) to 3.3V (pin#17) - I'd wire it through a 100ohm to 560ohm current limiting resistor (depending how bright you want the LCD). You can connect this to a GPIO pin if you want to be able to turn the backlight on and off with software control.
LCD pin#16 (backlight K-) to any GND
While you're testing, build this on a solderless breadboard it's easier than wiring a rats nest from the RPI header pins. When you're done build it on veroboard (strip board).
Criticising any questions is banned on this forum.
Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.