Arduino Oscilloscope With Nokia 5110 LCD

Introduction: Arduino Oscilloscope With Nokia 5110 LCD

In this instructable I will show you how to make an oscilloscope with the help of an arduino nano and a nokia 5110 LCD display

Step 1: Things Required

1)Arduino board

2)Nokia 5110 LCD

3)2*10k ohm potentiometers

4)Jumper wires


Step 2: Circuit and Connections

Connect the lcd as shown in the 1st image

to connect the potentiometers.

First connect the 2 terminal ends of both the potentiometers to +5V of arduino and ground of arduino.

Now connect the middle pin of both the potentiometers to analog pins A1 and A2 respectively.

The input signal is given between A0 and ground.

Step 3: The Code:You Will Have to Download the Adafruit Pcd8544.h and Adafruit Gfx.h Library




int dial1,dial2; long tim,values[84];

Adafruit_PCD8544 display = Adafruit_PCD8544(13,11,9,10,8);

void setup()





void loop() {

dial1 = analogRead(A1); //fine tuner for time per division

dial2 = analogRead(A2); //range selector for time per division


int n=map(dial2,0,1023,1,30); // range,either from 0-1000,1000-2000,2000-3000 and so on tim=map(dial1,0,1023,(n-1)*1000,n*1000); //

for(int i=0;i<84;i++)


values[i]=map(analogRead(A0),0,1023,0,47); //getting values




display.drawLine(0,24,84,24,BLACK); //x-axis

display.drawLine(42,0,42,48,BLACK); //y-axis

display.drawRect(0,0,84,48, BLACK);

for(int i=4;i<=44;i+=5)


display.drawLine(41,i,43,i,BLACK); //scale


for(int i=0;i<84;i++)


display.drawLine(i,47-values[i],i,47-values[i+1], BLACK); //drawing graph




Step 4: Testing

Be the First to Share


    • Fix It Speed Challenge

      Fix It Speed Challenge
    • One Board Contest

      One Board Contest
    • Anything Goes Contest 2021

      Anything Goes Contest 2021



    Tip 2 years ago

    There will be 3 library header files that need to be included. The names are not shown in the sketch.

    #include "Adafruit_GFX.h"
    #include "PCD8544.h"
    #include "Adafruit_PCD8544.h"