--> Project II - 29. Monitoring A Temperature using Nokia 5110 LCD (Arduino Based) | basic arduino tutorial

Tuesday, August 8, 2017

Project II - 29. Monitoring A Temperature using Nokia 5110 LCD (Arduino Based)

| Tuesday, August 8, 2017
Monitoring A Temperature  using Nokia 5110 LCD




This sensor can detect temperature 0-100 degrees Celsius with characteristics of 10mV at the output represents 1 degree Celsius. If the ouput voltage of 300mV means the temperature is 30 degrees Celsius, if the ouput voltage of 230mV means the temperature is 23 degrees Celsius. Output of this sensor is an analog data, so it will be processed by Arduino using ADC. The final result from that process will be shown on the LCD which type Nokia 5110 LCD.


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

Hardware Requirement
  • Nokia 5110 LCD
  • LM35 Temperature Sensor
  • Arduino UNO
  • Power supply +5 Volt
  • Jumper



           Modul LCD Nokia 5110 (Source)                                 Sensor Suhu LM35 (Source)


Schematic




Arduino - Nokia 5110 Wiring


Arduino - LM35 Temperature Sensor Wiring



Source Code/Sketch
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
#include "max6675.h"
unsigned int adc, tempLM;
// 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);

int thermoDO = 8;
int thermoCS = 9;
int thermoCLK = 10;

float celsius;
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);

void setup()   {
  display.begin();
  display.setContrast(50);
  delay(100);

}

void loop() {
  display.clearDisplay();
  display.setTextSize(1);
  display.println("LM35 Sensor:");
  adc = analogRead(0);
  tempLM=(adc*5)/10;
  display.setTextSize(2);
  display.setCursor(15,15);
  display.print(tempLM);
  display.setTextSize(1);
  display.setCursor(20,35);
  display.print("Celcius");
  display.display();
  delay(2000);
}


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 show temperature data depend by your room temperature



Video for Project II - 29. Monitoring A Temperature  using Nokia 5110 LCD (Arduino Based)



Download required file

Related Posts

No comments:

Post a Comment