Professional Documents
Culture Documents
net/publication/320430181
CITATIONS READS
3 3,973
4 authors, including:
7 PUBLICATIONS 15 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Arief Goeritno on 23 November 2017.
Abstract
Implementation of LM35 temperature sensor aided the microcontroller on design room
temperature conditioning system has been done, through the steps of: (1) integration
LM35 temperature sensor to the microcontroller system, (2) programming of the
Arduino Uno R3 microcontroller, and (3) verification of the test program. Integration
into the microcontroller system, such as the provision of four main ports of
microcontroller was connected to: i) 5 volt dc power supply, ii) LM35, iii)
electromechanical relays, and iv) 2x16 LCD. Based on the sensor connection to the
Arduino Uno R3 obtained orders addressing "int tempPin= 0;" for sensor-1 serves to
measure the temperature in the room and "int tempPin = 1;" for sensor-2 is used to
measure the rate of cooling the thermoelectric cooling system. Verification test was
conducted to determine the achievement of the target value. The target temperature of
25 °C for the detection performed by the sensor-1 and 10 °C for the detection performed
by the sensor-2. These conditions are described in the description, namely (a) if the
value of the detected temperature is upper than 25 0C, then the blower fan will operate
("on"), (b) if the value of the detected temperature is less than 25 0C, then the blower
fan will stop operating ("off"), and (c) if the temperature that detected by sensor-1 more
than the value of 25 0C and temperature that detected by sensor-2 in thermoelectric
cooling system is below the value of 10 0C, then the blower fan and thermoelectric
cooling system will operate ("on").
Keywords: Arduino Uno R3, conditioning room temperature, the LM35 temperature
sensor.
147
ISSN 2407-9189 University Research Colloquium 2015
148
University Research Colloquium 2015 ISSN 2407-9189
149
ISSN 2407-9189 University Research Colloquium 2015
150
University Research Colloquium 2015 ISSN 2407-9189
pengujian terhadap pengawatan dan tata letak suhu, penampil (display), rangkaian
komponen pada sistem pengkondisian suhu pengoperasian aktuator, dan sistem Arduino
ruangan, dilakukan penanaman program pada Uno R3, seperti ditunjukkan pada Gambar 3.
aplikasi Proteus. Pengawatan antara sensor
Gambar 3 Pengawatan antara sensor suhu, tampilan, rangkaian pengoperasian actuator, dan
sistem Arduino Uno R3
151
ISSN 2407-9189 University Research Colloquium 2015
152
University Research Colloquium 2015 ISSN 2407-9189
#include "LiquidCrystal.h";
void setup() {
pinMode(10,OUTPUT); // Output Ke Blower
pinMode(13,OUTPUT); // Output Ke Kompresor
// Serial.begin(9600);
153
ISSN 2407-9189 University Research Colloquium 2015
void loop() {
// Set cursor ke kolom 0 dan baris 1
// Catatan: Baris dan kolom diawali dengan 0
lcd.setCursor(9, 0);
// baca data dari sensor
tempC = analogRead(tempPin); // Bagian Sensor Suhu Ruangan
// konversi analog ke suhu
tempC = (5.0 * tempC * 100.0)/1024.0; // Rumus pembacaan sensor LM35
ke Atmega 328
// tampilkan ke LCD
lcd.print(tempC);
lcd.print (" C");
Serial.print(tempC); // Kirim data ke serial
Serial.print(" C Suhu Sensor 1 // ");
// Serial.println(tempC);
if(tempC>=30) //jika temperatur >=30 derajat
digitalWrite(13,HIGH); // output digital high 1
else digitalWrite(13,LOW); // output digital low 0
delay(2000); // berhenti 2 detik untuk menunggu perubahan temperatur
lcd.setCursor(0, 1);
lcd.print("Tmp:STeC=");
lcd.setCursor(9, 6);
// baca data dari sensor
tempC2 = analogRead(tempPin1); // Bagian Sensor Suhu Kompresor
// konversi analog ke suhu
tempC2 = (5.0 * tempC2 * 100.0)/1024.0; // Rumus pembacaan sensor
LM35 ke Atmega 328
// tampilkan ke LCD
lcd.print(tempC2); // float dari sensor 2
lcd.print (" C");
Serial.print(tempC2); // Kirim data Ke serial
Serial.print(" C Suhu Sensor 2");
Serial.println();
// Serial.println(tempC);
if(tempC2>=10) //jika temperatur >=10 derajat
digitalWrite(10,HIGH); // output digital high 1
else digitalWrite(10,LOW); // output digital low
delay(2000); // berhenti 2 detik untuk menunggu perubahan temperatur
}
Uji Verifikasi bentuk heksa-desimal (bahasa mesin) dan di-
Diperlukan uji verifikasi terhadap download-kan ke rangkaian tersebut. Suhu
program yang telah dibuat untuk yang terdeteksi pada simulasi dapat diatur
pengoperasian aktuator. Program yang telah sesuai dengan yang diinginkan untuk
dibuat dilakukan simulasi berbantuan pembuktian apakah program yang telah
program aplikasi Proteus. Rangkaian terlebih dibuat sudah sesuai dengan yang diharapkan
dahulu dirangkai dengan program aplikasi atau tidak. Diagram alir proses
Proteus, kemudian progran yang sudah pengkondisian suhu berbasis mikrokontroler
dibuat dengan bahasa C di-comfile menjadi
154
University Research Colloquium 2015 ISSN 2407-9189
155
ISSN 2407-9189 University Research Colloquium 2015
nilai 25 0C dan suhu sensor-2 di dalam sistem dibawah nilai 10 0C, maka blower fan dan
TeC sudah dibawah nilai 10 0C, maka sistem TeC akan beroperasi (“on”).
blower fan dan sistem TeC akan beroperasi Rekomendasi
(“on”). Untuk melengkapi kesimpulan yang telah
Kesimpulan dan Rekomendasi disampaikan, maka direkomendasikan
Kesimpulan penelitian lanjutan berupa implementasi
Berdasarkan hasil dan bahasan, maka sensor LM35 berbantuan mikrokontroler
ditarik kesimpulan sesuai tujuan penelitian. pada rancang bangun sistem pengkodisian
1) Pengintegrasian sensor ke sistem suhu ruangan dan pelaksanan uji validasi
mikrokontroler ATmega32 ditunjukkan, dengan kondisi suhu realita yang terjadi atau
bahwa: (i) pin pada sensor suhu LM35 dapat juga dilakukan pembuatan kondisi
hanya 3, dimana masing-masing buatan. Hal itu didasarkan, bahwa hasil uji
digunakan untuk untuk keluaran (pin-2), verifikasi terhadap rancangan sistem
Vdc (pin-1), dan ground (pin-3).; (ii) port pengkondisian suhu berbasis program
pada mikrokontroler yang digunakan aplikasi Proteus, telah ditunjukkan kinerja
untuk sensor suhu LM35, yaitu port C yang memenuhi harapan (ekspektasi).
(PC). PC0 dan PC1 digunakan untuk
pembacaan data dari sensor suhu LM35 Daftar Pustaka
berupa pengukuran suhu (temperature). Abandah, G., (no year), “Introducing
Lima port utama pada board Arduino Uno Embedded Systems and the
R3 yang digunakan, adalah untuk: (i) catu Microcontrollers”, pp. 3-23.
daya 5 Vdc untuk Arduino Uno R3, (ii) Burgess, M., (1999), “C Programming
sensor suhu LM35, (iii) LCD 2x16 , dan Tutorial”, Faculty of Engineering, Oslo
(iv) keluaran. Keluaran Arduino Uno R3 College, pp. 1-9.
terhubung ke rangkaian pemberi daya ke E-MU, (2007), “Proteus VX Operation
koil relai elekromekanik. Manual”, E-MU System, Pp. 9-24.
2) Pemrograman mikrokontroler Arduino E-mu Systems, Inc., (no year), “Proteus
Uno R3 untuk sistem pengoperasian Operation Manual”, E-mu Systems
aktuator, dilakukan penanaman program Inc., pp. 27-40.
berbahasa C dalam delapan tahapan, Intel Corporation, (1997), “AP577
yaitu: (i) konfigurasi pin, (ii) deklarasi Application Note: An Introduction to
variabel (peubah), (iii) deklarasi konstanta Plastic Pin Grid Array (PPGA)
(tetapan), (iv) inisialisasi, (v) program Packaging”, Order Number: 243103-
utama, (vi) tampilan: suhu (line-1) dan 004, pp. 5-6.
kelembaban (line-2), (vii) ambil dan kirim Labcenter Electronics, (2007),”Copyright
data, dan (viii) keluaran: aktivasi aktuator Notice”, Labcenter Electronics, pp. 5-
untuk pengoperasian blower fan dan 6.
sistem TeC. Setiap tahapan disertai Microcomputer System Design, (no year),
dengan sintaks masing-masing sesuai “Introduction to Proteus VSM (Part
kebutuhan. I)”, Microcomputer System Design,
3) Uji verifikasi terhadap hasil program, pp. 1-16.
bahwa suhu target pada sensor-1 dengan National Semiconductor, (1995),
nilai 25 0C, dimana (i) jika suhu lebih “LM35/LM35A/LM35C/LM35CA/L
besar dari 25 0C, maka fan blower akan M35D Precision Centigrade
beroperasi (“on”), (ii) jika suhu lebih kecil Temperature Sensors”, National
dari 25 0C, maka blower fan akan berhenti Semiconductor Corporation, pp. 1-12.
beroperasi (“off”), dan (iii) jika suhu pada National Semiconductor, (2000), “LM35
sensor-1 lebih dari nilai 25 0C dan suhu Precision Centigrade Temperature
sensor 2 di dalam kompresor sudah Sensors”, National Semiconductor
Corporation, pp. 1-13.
156
University Research Colloquium 2015 ISSN 2407-9189
157