The modules with this display come in two versions: on the blue (manufactured by Adafruit) or red (Sparkfun) color boards.
Both options have 8 pins:
|CE||permission to enter data|
|DC||selection of data entry mode|
|DIN||SPI interface data|
|CLK||SPI interface clocking|
|VCC||power. Voltage range from 2.7 to 3.3 volts|
It is worth paying attention to the fact that on the blue module, the backlight is turned on by a logical unit, and the red backlight is turned on by zero. When you connect the display, you need to remember that it works with logic levels of 3.3 V, and the use of five-volt logic can damage it.
So, for the implementation of the project from this article, we need the following components:
- Arduino Uno R3
- Display Nokia 5110
- Jumper wires kit
Without problems, the module can be connected to such cards as the Arduino Pro Mini, Arduino Due, ESP8266 and some others. For the rest, alignment is required. Bi-Directional Logic Level Converter or TXS0108E can help. To power from 5 volts, you can apply a voltage divider.
Let's go directly to work with the display.
CONNECTING A DISPLAY TO ARDUINO UNO
The backlight is not used yet. Let's load a Sparkfun demo sketch from the Arduino board that works without additional libraries.
You can download it by reference.
After drawing all the data, the controller will go to standby data on the serial port at 9600 baud. Everything printed in the port monitor will be displayed.