--> Project II - 2. 4 Channel Temperature Monitoring with Delphi Apps (Arduino Based) | basic arduino tutorial

Monday, August 7, 2017

Project II - 2. 4 Channel Temperature Monitoring with Delphi Apps (Arduino Based)

| Monday, August 7, 2017
4 Channel Temperature Monitoring with Delphi Apps




Arduino Uno reads the ADC fata of 4 temperature sensors and 2x16 LCD. The result will displayed on PC that has been installed a delphi program . Type of sensor used is LM35 with temperature readings range 0°C - 100°C. That delphi program is used to display the results of sensor readings. The program on the computer created with Delphi (Delphi 7) and the  data is sent serially using the Arduino USB connector. LCD is used to display the process between arduino and PC,  so it is easier to monitor there is work or not.

Hardware Requirement
  • 4 Temperature Sensor LM35
  • Arduino UNO
  • LCD 2x16 Module
  • PC / Laptop with Delphi Program Installed
  • Power supply +5 Volt


LM35 Temperature Sensor | Source

Block Diagram



Schematic



Arduino - LCD Wiring



Arduino - LM35 Temperature Sensor Wiring


Source Code/Sketch

#include <LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
int adc;
int suhu1, suhu2, suhu3, suhu4;
void setup(){
lcd.begin(16, 2);
lcd.print(" Thermometer");
lcd.setCursor(0, 1);
lcd.print("Digital 4CH LM35");
delay(2000);
lcd.clear();
lcd.print("T1: T2: ");
lcd.setCursor(0, 1);
lcd.print("T3: T4: ");
}
void loop(){
adc = analogRead(0);
suhu1 = (adc*5)/10;
delay(200);
adc = analogRead(1);
suhu2 = (adc*5)/10;
delay(200);
adc = analogRead(2);

suhu3 = (adc*5)/10;
delay(200);
adc = analogRead(3);
suhu4 = (adc*5)/10;
delay(200);
//-----------tampilkan ke LCD
lcd.setCursor(3,0);
lcd.print(suhu1);
lcd.print("C ");
lcd.setCursor(12,0);
lcd.print(suhu2);
lcd.print("C ");
lcd.setCursor(3,1);
lcd.print(suhu3);
lcd.print("C ");
lcd.setCursor(12,1);
lcd.print(suhu4);
lcd.print("C ");
delay(200);
}

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. The first display on the LCD



5. Open the delphi program --> Project1.exe (Included in Download link- end of this page)


6. Toolbar



7. Set your port number depend by your Arduino serial Port, and set Baud rate to 9600, like this an
    image below




8. Press OK button on the toolbar
9. Press Start button to begin monitoring all four temperature sensor


10. It's also displayed on the LCD with the same data


11. Finih up :)


Video for Project II - 2. 4 Channel Temperature Monitoring with Delphi Apps (Arduino Based)





Download the required file.

Related Posts

No comments:

Post a Comment