We'll assume you want to use this in a breadboard, take a piece of 0.1" header 8 pins long and insert it into a breadboard.
- Connect pin 1 of the 4050, the LCD VCC pin and the LCD backlight pin to 3.3V.
- Connect pin 8 of the 4050 and the GND pin of the LCD to ground.
Dimmable Backlight Option:
Newer versions of these boards have a sightly different backlight circuit that is brighter than the older boards. You can add a pot to the backlight so that you can control the brightness. (This works with the older boards too, but the range of brightness will be lower).
The optional pot can be wired as in the photo below:
- Connect the RST (reset) pin of the LCD (orange wire) to pin 2 of the 4050
- Connect the CS (chip select) pin (yellow wire) to pin 4 of the 4050.
- Connect the D/C (data/command) pin (green wire) to pin 6 of the 4050.
- DIN (data in) pin (blue wire) to pin 15 of the 4050
- CLK(clock) pin (purple wire) to pin 12 of the 4050.
- Arduino pin 3 (orange) goes to pin 3 of the 4050.
- Arduino pin 4 (yellow) goes to pin 5 of the 4050.
- Arduino pin 5 (green) goes to pin 7 of the 4050.
- Arduino pin 6 (blue) goes to pin 14 of the 4050.
- Arduino pin 7 (violet) goes to pin 11 of the 4050.