HDTutorial
IT

La riproduzione carica il player incorporato di YouTube (modalità privacy avanzata).

Tutorial Arduino Nokia 5110 LCD #1 - Collegamento e primo programma

234.308 visualizzazioni 26 ottobre 2014 15:03

Guarda su YouTube
CanaleJulian Ilett

Descrizione dell’autore

Guida dettagliata per collegare e programmare il display Nokia 5110. In questa prima parte ci concentriamo solo sull’invio dei comandi minimi necessari per visualizzare qualcosa sullo schermo (in questo caso, tutti i pixel accesi).
Il codice è scritto da zero, senza usare librerie.
Ecco il codice completo:


void LcdWriteCmd(byte cmd)
{
digitalWrite(DC, LOW); // DC a LOW per i comandi
digitalWrite(CE, LOW);
shiftOut(DIN, CLK, MSBFIRST, cmd); // invio dati seriali
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); // Comandi estesi del LCD
LcdWriteCmd(0xB8); // Imposta il Vop (contrasto)
LcdWriteCmd(0x04); // Imposta il coefficiente di temperatura
LcdWriteCmd(0x14); // Modalità di bias LCD 1:40
LcdWriteCmd(0x20); // Comandi base del LCD
LcdWriteCmd(0x09); // Accende tutti i segmenti
}

void loop()
{

Informazioni su questo tutorial

Julian Ilett ha pubblicato questo video tutorial di 15:03 il 26 ottobre 2014. È stato visto 234.308 volte su YouTube.

Durata
15:03
Pubblicato
26 ottobre 2014
Visualizzazioni
234.308
Mi piace
1.313

Condividi

Approfondimenti

  • 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…

Questo tutorial in altre lingue