Silícios LabPCBWay
Published © GPL3+

Atto: World's Smallest Arduino Controlling Nokia 5110 Screen

In this article, you will learn how to use the world's smallest Arduino to communicate with the Nokia 5110 LCD.

BeginnerFull instructions provided1 hour7,214
Atto: World's Smallest Arduino Controlling Nokia 5110 Screen

Things used in this project

Hardware components

PCBWay Custom PCB
PCBWay Custom PCB
×1
ATTO: The World's Smallest Arduino
×1
Nokia 5110 Screen - UTSOURCE
×1
Arduino UNO - UTSOURCE
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

Code to Show the Messages

Arduino
  
//Programa : Teste display Nokia 5110 usando biblioteca Adafruit
//Autor : Arduino e Cia

#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>

// pin 8 - Serial clock out (SCLK)
// pin 9 - Serial data out (DIN)
// pin 10 - Data/Command select (D/C)
// pin 11 - LCD chip select (CS/CE)
// pin 12 - LCD reset (RST)

Adafruit_PCD8544 display = Adafruit_PCD8544(3, 9, 6, 12, 4);

void setup()   
{
  Serial.begin(9600);
  display.begin();
  display.setContrast(50); //Ajusta o contraste do display

  pinMode(5, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(13, OUTPUT);

  digitalWrite(5, HIGH);
  digitalWrite(10, HIGH);
  digitalWrite(13, HIGH);
}

void loop()
{
  
  display.clearDisplay();   //Apaga o buffer e o display
  display.setTextSize(1);  //Seta o tamanho do texto
 
  display.setCursor(0,0);  //Seta a posição do cursor
  display.setTextColor(WHITE, BLACK);
  display.println(" ATTO  BOARD ");  

  display.setTextColor(BLACK); //Seta a cor do texto
  display.println("   Smallest  ");

  display.setTextColor(BLACK); //Seta a cor do texto
  display.print("             ");
  
  display.setTextSize(1); 
  display.setTextColor(WHITE, BLACK);
  display.print("   ARDUINO   ");
  
  display.setTextColor(BLACK); //Seta a cor do texto
  display.print("    BOARD    ");
  display.display();
  delay(5000);

  display.clearDisplay();   //Apaga o buffer e o display
  display.setTextSize(1);  //Seta o tamanho do texto
 
  display.setCursor(0,0);  //Seta a posição do cursor
  display.setTextColor(BLACK); //Seta a cor do texto
  display.println("SUBSCRIBE IN");  

  display.setTextColor(WHITE, BLACK);
  display.println("SILICIOS LAB");

  display.setTextColor(BLACK); //Seta a cor do texto
  display.print("             ");

  display.setTextColor(BLACK); //Seta a cor do texto
  display.print("   YOUTUBE   ");

  display.setTextSize(1); 
  display.setTextColor(WHITE, BLACK);
  display.print("   CHANNEL   ");
  display.display(); 
  
  delay(5000);
  
}

Credits

Silícios Lab

Silícios Lab

73 projects • 176 followers
Hello, I love program microcontrollers and works with electronic projects.
PCBWay

PCBWay

94 projects • 149 followers
We are a PCB and assembly manufacturer, As low as $5/10pcs and 24 hours delivery time. We are committed to helping creators build project.

Comments