--> Project II - 32. Digital Thermometer with LED Matrix P10 Module (Arduino Based) | basic arduino tutorial

Wednesday, August 9, 2017

Project II - 32. Digital Thermometer with LED Matrix P10 Module (Arduino Based)

| Wednesday, August 9, 2017
Digital Thermometer with LED Matrix P10 Module



Arduino will process temperature data of LM35 sensor. Data of the sensor output is an analog data,so arduino proecess it to be digital data by using ADC. Then the final result is displayed into LED panel module Matrix P10. Basicly, the display data is static or not moving, if you will make it moving or animation (running text), you can be modified with project "running text with LED Matrix P10 on this blog".


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



Modul LED Matrix P10 | Source | Source




Sensor LM35 | Source


Schematic

 Arduino - LED P10 Module Wiring


Arduino - LM35 Sensor Wiring


Source Code/Sketch
#include <SPI.h>
#include <DMD.h>
#include <TimerOne.h>
#include "SystemFont5x7.h"
#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1
DMD dmd(DISPLAYS_ACROSS, DISPLAYS_DOWN);
float a;
char b[5];
void ScanDMD()
{
dmd.scanDisplayBySPI();
}
void setup(void)
{
Timer1.initialize( 5000 );
Timer1.attachInterrupt( ScanDMD );
dmd.clearScreen( true );
Serial.begin(9600);
}
void loop(void)
{
dmd.clearScreen( true );
a = 0;
a = analogRead(A0);
a = (5.0*a*100.0)/1024.0;
Serial.println(a);
dtostrf(a, 4, 2, b);
dmd.selectFont(SystemFont5x7);
dmd.drawString( 2, 3, b, 5, GRAPHICS_NORMAL );
delay(5000);
}


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. LED Dot Matrix P10 will display the temperature.


Video from Project II - 32. Digital Thermometer with LED Matrix P10 Module (Arduino Based)





Download required file

Related Posts

No comments:

Post a Comment