--> Project II - 26. Interfacing Arduino with Nokia 5110 LCD | basic arduino tutorial

Tuesday, August 8, 2017

Project II - 26. Interfacing Arduino with Nokia 5110 LCD

| Tuesday, August 8, 2017
Interfacing Arduino with Nokia 5110 LCD





LCD Nokia 5110 is like used in the display on HP 5110. Well, on this project we will make interfacing between LCD Nokia with Arduino. The price is relatively cheap. Communications are also not too difficult because it is supported by SPI pin (Serial Peripheral Interface).


Nokia 5110 LCD Specification
  • 48 x 48 Dimension
  • 3.3 V Input Voltage
  • PCD8544 Controller

Hardware Requirement
  • Nokia 5110 LCD
  • Arduino UNO
  • Power supply +5 Volt
  • Jumper
 LCD Nokia 5110 Module | Source


Schematic


Arduino - Nokia 5110 Wiring


Source Code/Sketch

#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
// Koneksi pin SPI Arduino - LCD Nokia 5110 :
// pin 7 - Serial clock out (SCLK)
// pin 6 - Serial data out (DIN)
// pin 5 - Data/Command select (D/C)
// pin 4 - LCD chip select (CS)
// pin 3 - LCD reset (RST)
Adafruit_PCD8544 display = Adafruit_PCD8544(7, 6, 5, 4, 3);
void setup() {
display.begin();
display.setContrast(50);
delay(100);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(BLACK);
display.setCursor(0,0);
display.println("Arduino & LCD");
display.setCursor(0,10);
display.println("NOKIA 5110");
display.setCursor(0,20);
display.println("tokotronik");
display.setTextSize(2);
display.setCursor(0,30);
display.println("JOGJA");
display.display();
}
void loop() {
}


How it Works


1. Connect the Arduino with Peripherals needed
2. Plug in the Power Source on the device
3. Compile and upload the script program above to your arduino
4. Lcd will display

     “Arduino & LCD”
       “NOKIA 5110”
        “Hello World”
           “JOGJA”

Video for Project II - 26. Interfacing Arduino with Nokia 5110 LCD



Download required file

Related Posts

No comments:

Post a Comment