HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Arduino Nokia 5110 LCD Tutorial #1 - Connecting and Initial Programming

234,308 views October 26, 2014 15:03

Watch on YouTube
ChannelJulian Ilett

Description from the creator

Detailed tutorial on connecting and programming the Nokia 5110 LCD. In this first part I'm only concerned with sending the bare minimum of commands so that something appears on the screen (all pixels on in this case).
Code is written from scratch, no libraries are used in this tutorial. Code is listed below.

#define RST 12
#define CE 11
#define DC 10
#define DIN 9
#define CLK 8

void LcdWriteCmd(byte cmd)
{
digitalWrite(DC, LOW); //DC pin is low for commands
digitalWrite(CE, LOW);
shiftOut(DIN, CLK, MSBFIRST, cmd); //transmit serial data
digitalWrite(CE, HIGH);
}

void setup()
{
pinMode(RST, OUTPUT);
pinMode(CE, OUTPUT);
pinMode(DC, OUTPUT);
pinMode(DIN, OUTPUT);
pinMode(CLK, OUTPUT);
digitalWrite(RST, LOW);
digitalWrite(RST, HIGH);

LcdWriteCmd(0x21); // LCD extended commands
LcdWriteCmd(0xB8); // set LCD Vop (contrast)
LcdWriteCmd(0x04); // set temp coefficent
LcdWriteCmd(0x14); // LCD bias mode 1:40
LcdWriteCmd(0x20); // LCD basic commands
LcdWriteCmd(0x09); // LCD all segments on
}

void loop()
{
}

About this tutorial

Julian Ilett published this 15:03 video tutorial on October 26, 2014. It has been watched 234,308 times on YouTube.

Duration
15:03
Published
October 26, 2014
Views
234,308
Likes
1,313

Tags

Share

Further reading

  • Nokia 5110 LCD and Arduino – Ultimate Tutorial and Guide duino4projects.com

    Interfacing Nokia 5110 LCD Display To Arduino. In this article, we are publishing a project tutorial which explains different aspects of interfacing a Graphical LCD (GLCD ) Nokia 5110 with Arduino. Nokia 5110 is a 48 x…

  • In-Depth: Interface Nokia 5110 Graphic LCD Display with Arduino lastminuteengineers.com

    GND should be connected to the ground of Arduino. Wiring Nokia 5110 LCD display module to Arduino Uno. Before we get to uploading code and sending data to the display, let’s hook the display up to the Arduino. Connectio…

  • Complete Guide for Nokia 5110 LCD with Arduino | Random Nerd ... randomnerdtutorials.com

    Great job on the tutorial on the Nokia 5110 LCD with Arduino. I have been working with the 5110 for the past year and your tutorial was exactly what was needed for those new to the Nokia 5110 LCD with Arduino set up. I…

This tutorial in other languages