Monitoring temperature ruangan dengan display lcd dan recording
1. MONITORING TEMPERATURE RUANGAN
DENGAN DISPLAY LCD
DAN RECORDING
Dosen Pembimbing Drs. Ismail Wellid, MT
GROUP : 7
KETUA : Moch. Rezki Selamet (131611047)
ANGGOTA : Mukhammad Imam Nugroho (131411049)
Siti Haryani (131611056)
Yuda Wardiana (131611061)
KELAS : 2B
PROGRAM STUDI TEKNIK PENDINGIN DAN TATA UDARA
JURUSAN TEKNIK REFRIGERASI DAN TATA UDARA
POLITEKNIK NEGERI BANDUNG
2. 2
LATAR BELAKANG
Dalam suatu pengukuran temperature kita biasanya menunggu guna memperoleh data tiap menit.
Tetapi kadang kala kita selalu meniggalkan pengukuran karena ada kegiatan lain yang sama penting.
Karna itu alat ini dibuat untuk menyimpan data temperature supaya data pengukuran tersimpan walaupun
kita tinggalkan. Data temperature tersebut tidak akan hilang karena tersimpan oleh micro sd.
Pengukuran temperature menggunakan lm35, lm35 berfungsi sebagai sensor yang akan
mengkonversi suhu menjadi tegangan dan dikirim ke arduino. Arduino tidak begitu saja bias menerima
tegangan yang di hasilkan oleh lm35 tetapi harus dikonversi ADC,supaya bias di konversi dan data yang
di hasilkan tepat atau sesuaidengan suhu ruangan. Arduino adalah akat yang penting di projeck ini karena
arduino memprogram seluruh sensor yang ada.
TUJUAN
īĩ Dapat mengetahui suhu ruangan yang terukur
īĩ Dapat menyimpan data temperature
īĩ Dapat mengetahui perubahan suhu ruangan
īĩ Dapat menganalisis data yang tersimpan guna keperluaan akademik
DESKRIPSI ALAT
Alat ini mempunyai 4 buah sensor LM35 yang ditempatkan pada tiap sudut ruangan ditampilkan
pada display LCD dan di record oleh arduino uno. Penyimpanan data dengan micro sd module shield dan
di simpan oleh memori micro sd menit permenit temperaturenya dengan mencamyumkan tanggal bulan
dan tahun pengukuran. Data yang disimpan oleh micro sd module berbentuk .txt(notepad).
Alat ini hanya memonitoring tidak bisa mengkontrol kerja alat lain. Walaupun hanya
memonitoring tetapi alat ini bisa digunakan untuk keperluan analisis system kerja dari kompresi uap atau
mesin pendingin lainnya, atau juga bisa melihat perubahan tiap menit dari ruangan yang dikondisikan.
3. 3
ALAT DAN BAHAN
ARDUINO
Arduino UNO adalah sebuah board
mikrokontroler yang didasarkan pada
ATmega328 (datasheet). Arduino UNO
mempunyai 14 pin digital input/output (6 di
antaranya dapat digunakan sebagai output
PWM), 6 input analog, sebuah osilator Kristal
16 MHz, sebuah koneksi USB, sebuah power
jack, sebuah ICSP header, dan sebuat tombol reset.
Arduino UNO merupakan salah satu contoh dari Arduino USB. Arduino USB
menggunakan USB sebagai interface pemrograman atau komunikasi komputer. Arduino UNO
memuat semua yang dibutuhkan untuk menunjang mikrokontroler, mudah menghubungkannya ke
sebuah computer dengan sebuah kabel USB atau mensuplainya dengan sebuah adaptor AC ke DC
atau menggunakan baterai untuk memulainya. Arduino tidak hanya sekedar sebuah alat
pengembangan, tetapi ia adalah kombinasi dari hardware, bahasa pemrograman dan Integrated
Development Environment (IDE) yang canggih.
IDE adalah sebuah software yang sangat berperan untuk menulis program, meng-compile
menjadi kode biner dan meng-upload ke dalam memory microcontroller. Ada banyak projek dan
alat-alat dikembangkan oleh akademisi dan profesional dengan menggunakan Arduino, selain itu
juga ada banyak modul-modul pendukung (sensor, tampilan, penggerak dan sebagainya) yang
dibuat oleh pihak lain untuk bisa disambungkan dengan Arduino. Arduino berevolusi menjadi
sebuah platform karena ia menjadi pilihan dan acuan bagi banyak praktisi.
4. 4
LM35
LM35 Temperature Sensor is one type of sensor that converts
electrical quantities to the temperature scale in the form of voltage. LM35 has 3 pieces pin legs, pin to
INPUT positive voltage (+), pin OUTPUT,INPUT pin negative voltage / GND (-).
HOW the LM 35 measure???
Can operate at a voltage of 4 volts to 30 volts. Each temperature of 1 degree Celsius will show a voltage
of 10 mV.
equation:
Vout = 10 mV / 1ÂēC
That is, if the read voltage Vout = 500 mV, then the temperature = 500mv / 10mV = 50ÂēC.
5. 5
MICRO SD SHIELD
The module (MicroSD Card Adapter) is a Micro SD card reader module, and the SPI interface via the file
system driver, microcontroller system to complete the Micro SD card read and write files. Users can
directly use the Arduino IDE comes with an SD card to complete the library card initialization and read-
write
Features:
īˇ Support Micro SD Card, Micro SDHC card (high-speed card)
īˇ The level conversion circuit board that can interface level is 5V or 3.3V
īˇ Power supply is 4.5V ~ 5.5V, 3.3V voltage regulator circuit board
īˇ Communication interface is a standard SPI interface
īˇ 4 M2 screw positioning holes for easy installation
īˇ Control Interface:A total of six pins (GND, VCC,MISO, MOSI, SCK, CS), GND to
ground, VCC is the power supply, MISO, MOSI, SCK is the SPI bus, CS is the chip select
signal pin;
īˇ 3.3V regulator circuit: LDO regulator output 3.3V as level converter chip, Micro SD card
supply
īˇ Level conversion circuit: Micro SD card into the direction of signals into 3.3V, MicroSD
card toward the direction of the control interface MISO signal is also converted to 3.3V,
general AVR microcontroller system can read the signal
īˇ Micro SD card connector: yes since the bomb deck for easy card insertion and removal
īˇ Positioning holes: 4 M2 screws positioning hole diameter of 2.2mm, the module is easy to
install positioning, to achieve inter-module combination
Mirco SD Card Interface Module :(the last picture show)
6. 6
īˇ -Control Interface : A total of six pins (GND, VCC, MISO, MOSI, SCK, CS), GND to
ground , VCC is the power supply , MISO, MOSI, SCK is SPI bus , CS is the chip select
signal pin
īˇ 3.3V voltage regulator circuit : LDO regulator output is 3.3V level converter chip , Micro SD
card supply
īˇ Level conversion circuit : Micro SD card into the direction of the signal is converted to 3.3V,
MicroSD card interfaces to control the direction of the MISO signal is also converted into
3.3V, general AVR microcontroller system can read the signal ;
īˇ Micro SD card connector : a self- bomb deck , easy card insertion .
īˇ Positioning holes : 4 M2 screws positioning hole diameter is 2.2mm, the positioning of the
module is easy to install , to achieve inter- module combination ;
LCD AND BACKPACK
This is another great LCD display compatible with I2C bus and Gadgeteer modules. With limited pin
resources,your project will quicly run out of resources using normal LCDs. With this I2C interface LCD
module, you only need 2 lines (I2C)to display the information.If you already have I2C devices in your
project, this LCD module actually cost no more resources at all. The adress can be set from 0x20-
0x27.Fantastic for Arduino or gadgeteer based projects.
7. 7
RTC DS1302
A Real Time Clock Module with battery backup using the easy to use DS1302 chip. The DS1302 chip
uses a simple serial interface (see datasheet) and example code is available for Arduino, Raspberry Pi and
many others.
10. 10
LANGKAH MERANGKAI
1. Siapkan alat dan bahan termasuk wadah misting
2. Wadah misting lubangi untuk keperluan shield micro sd dan arduino
3. Buat jalur rangkaian pcb untuk pembagian tegangan dan konektor pin arduino
4. Rangkai sepertigambar diatas.
5. Setelah selesai membuat mekanikal langkah selanjutnya membuat program
6. Cari program LM35,Shield sd card,RTC,dan LCD
7. Setelah menemukan gabungkan program tersebut dalam satu program.
8. Compile program bila berhasil upload ke arduino
LANGKAH PENGUJIAN DAN DATA PENGUJIAN
1. Hubungkan arduino pada pc
2. Upload program
3. Setelah itu kita bias melihat temperature sekarang dan setelah berapa jam kita juga bias melihat
temperature dibelakangnya karena telah di simpan di micro sd card
Script program arduino
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SD.h>
#include <DS1302.h>
File myFile;
LiquidCrystal_I2C lcd(0x27, 16,2);
float tempc;
float tempc1;
float tempc2;
float tempc3;
11. 11
int tempin = 0;
int tempin1 = 1;
int tempin2= 2;
int tempin3 = 3;
int a=1;
int b;
DS1302 rtc(2, 3, 5);
void setup()
{
lcd.begin();
Serial.begin(9600);
while (!Serial) {
}
Serial.print("Initializing SD card...");
pinMode(10,OUTPUT);
if (!SD.begin(4)) {
Serial.println("initialization failed!");
return;
}
rtc.halt(false);
rtc.writeProtect(false);
}
void loop()
{
tempc= analogRead(tempin);
tempc= (5*tempc*100)/1024;
tempc1= analogRead(tempin1);
tempc1= (5*tempc1*100)/1024;
tempc2= analogRead(tempin2);
tempc2= (5*tempc2*100)/1024;
tempc3= analogRead(tempin3);
tempc3= (5*tempc3*100)/1024;
13. 13
myFile.println(rtc.getTimeStr());
myFile.println("T('C)= ");
myFile.println(tempc);
myFile.print("T1 ('C)= ");
myFile.println(tempc1);
myFile.print("T2 ('C)= ");
myFile.println(tempc2);
myFile.print("T3 ('C)= ");
myFile.println(tempc3);
myFile.println("---------------------------------------------------");
myFile.close();
Serial.println("done.");
}
else
{
Serial.println("erroropening T1A1.txt");
}
myFile = SD.open("T1A1.txt");
if (myFile) {
Serial.println("T1A1.txt:");
while (myFile.available()) {
Serial.write(myFile.read());
}
myFile.close();
} else {
Serial.println("erroropening T1A1.txt");
}
delay(6000);
}
Data pengujian yang telah kami lakukan bisa dilihat di lampiran
14. 14
PENUTUP KESIMPULAN DAN SARAN
1. Data temperature lm35 yang terbaca oleh arduino harus di ubah ke ADC supaya bisa terukur
tegangan oleh arduino.
2. Data yang tersimpan oleh shield micro sd berupa txt(notepad)
3. Backpack yang terpasang pada lcd berguna untuk memperkecil pin pada lcd
4. Module RTC berguna untuk mengatur waktu pada penyimpanan data
Untuk mempermudah sambungan pin dan untuk menempel dengan benar seharusnya dipasang
terminal untuk memperkuat sambungan
15. 15
LAMPIRAN
Arduino
īˇ Catu daya : 7VDC - 12VVDC
īˇ Berbasismikrokontroler/mikroprosesor:ATmega328
īˇ JumlahportI/O : 14 pinI/O (6 pinuntukoutputPWM)
īˇ Port antarmuka: UART TTL, I2C, SPIdan USB (Virtual Com)
īˇ Bootloader:Internal
īˇ Port pemograman:USB
Shield Micro SD
īˇ Support Micro SD Card, Micro SDHC card (high-speed card)
īˇ The level conversion circuit board that can interface level is 5V or 3.3V
īˇ Power supply is 4.5V ~ 5.5V, 3.3V voltage regulator circuit board
īˇ Communication interface is a standard SPI interface
īˇ 4 M2 screw positioning holes for easy installation
īˇ Control Interface: A total of six pins (GND, VCC, MISO, MOSI, SCK, CS), GND to
ground, VCC is the power supply, MISO, MOSI, SCK is the SPI bus, CS is the chip
select signal pin;
īˇ 3.3V regulator circuit: LDO regulator output 3.3V as level converter chip, Micro SD
card supply
īˇ Level conversion circuit: Micro SD card into the direction of signals into 3.3V,
MicroSD card toward the direction of the control interface MISO signal is also
converted to 3.3V, general AVR microcontroller system can read the signal
īˇ Micro SD card connector: yes since the bomb deck for easy card insertion and
removal
īˇ Positioning holes: 4 M2 screws positioning hole diameter of 2.2mm, the module is
easy to install positioning, to achieve inter-module combination
Mirco SD Card Interface Module :(the last picture show)
īˇ -Control Interface : A total of six pins (GND, VCC, MISO, MOSI, SCK, CS), GND
to ground , VCC is the power supply , MISO, MOSI, SCK is SPI bus , CS is the chip
select signal pin
īˇ 3.3V voltage regulator circuit : LDO regulator output is 3.3V level converter chip ,
Micro SD card supply
īˇ Level conversion circuit : Micro SD card into the direction of the signal is converted
to 3.3V, MicroSD card interfaces to control the direction of the MISO signal is also
converted into 3.3V, general AVR microcontroller system can read the signal ;
īˇ Micro SD card connector : a self- bomb deck , easy card insertion .
16. 16
īˇ Positioning holes : 4 M2 screws positioning hole diameter is 2.2mm, the positioning
of the module is easy to install , to achieve inter- module combination ;
LCD +BACKPACK
Specifications LCD
īˇ Supply voltage: 5V
īˇ I2C Address:0x20-0x27(0x20 default)
īˇ Back lit (Blue with white char color)
īˇ Interface:I2C/TWI x1,Gadgeteer interface x2
īˇ Adjustable contrast
īˇ Size:82x35x18 mm
Specifications Bacpack PCF8574
īˇ Compatible With Most Microcontrollers
īˇ Low Standby-Current Consumption10 mA Max
īˇ Latched Outputs With High-Current Drive
īˇ I2C to Parallel-Port Expander Capability for Directly Driving LEDs
īˇ Open-Drain Interrupt Output
īˇ Latch-Up Performance Exceeds 100 mA Per
īˇ JESD 78, Class II
RTC
īˇ Real-Time Clock Counts Seconds, Minutes, Hours, Date of the Month, Month, Day
of the Week, and Year with Leap-Year Compensation Valid Up to 2100
īˇ Serial I/O for Minimum Pin Count
īˇ 2.0V to 5.5V Full Operation
īˇ Uses Less than 300nA at 2.0V
īˇ Single-Byte or Multiple-Byte (Burst Mode) Data Transfer for Read or Write of Clock
or RAM Data
īˇ Board Size: 44mm x 24mm
17. 17
Gambar Rangkaian
Rincian Biaya
No
Alat dan Bahan Harga
1
ShieldmicroSD 85000
2
LM35 (4 buah) 60000
2
RTC 25000
3
LCD + Backpack 75000
4
kabel male-female 20000
5
headerpin 20000
6
timah+lotfet 20000
7
Pilok 18500
Total
323500