Displays are very important parts of the device if you need to get feedback without using a computer. The arduino board can connect both specially designed displays and similar ones in technical characteristics.
Displays can display information on sensors or create a certain visual effect.
Consider the connection process for display 1602. It has sixteen pins. Let's consider the option of connecting via a four-bit parallel interface.
Connection designation table
Output |
Designation |
Pin to arduino |
one |
GND |
GND |
2 |
Vcc |
5V |
3 |
Vo |
GND |
four |
Rs |
12 |
five |
R / W |
GND |
6 |
E |
10 |
7 |
DB0 |
- |
eight |
DB1 |
- |
nine |
DB2 |
- |
10 |
DB3 |
- |
eleven |
DB4 |
five |
12 |
DB5 |
four |
13 |
DB6 |
3 |
fourteen |
DB7 |
2 |
fifteen |
Vcc |
5V |
sixteen |
GND |
GND |
Before assembling this circuit, you need to solder the wires to the display pins. For convenience, I suggest using MGTF wires of the smallest diameter. Their advantages are flexibility and strength. It is easy to remove the insulation from them. Speaker wires can also be used, but they are thicker and less flexible. The length of the wire is no more than 15 cm. For each pin.
For the test, let's take an example from the LiquidCrystal.h library - "Hello World".
Let's power on the arduino and load the program.
Below is a video overview of connecting the display.
The best schemes are created fritzing.