Rancang Bangun Alat Pendeteksi Kualitas Minyak Goreng Berdasarkan Warna RGB Berbasis Mikrokontroler ATMega 8535

v

RANCANG BANGUN ALAT PENDETEKSI KUALITAS MINYAK
GORENG BERDASARKAN WARNA RGB BERBASIS
MIKROKONTROLER ATMEGA 8535

ABSTRAK

Telah dirancang dan direalisasikan suatu prototype yang digunakan untuk
mendeteksi kualitas minyak goreng berdasarkan warna RGB dengan
menampilkan hasil pengujiannya pada LCD. Perangkat keras (hardware) dari alat
ini terdiri dari sensor photodioda, LED, mikrokontroler ATMega 8535 dan LCD.
Sedangkan untuk perangkat lunak (software) yang digunakan adalah bahasa
pemrograman C. Sumber cahaya yang digunakan adalah LED merah, hijau dan
biru. Proses kerja alat ini adalah cahaya LED yang berada dibawah tabung
(wadah) ditangkap oleh sensor photodioda. Dengan memanfaatkan sifat warna
yang memiliki panjang gelombang cahaya yang berbeda-beda, maka keluaran
daripada warna yang terdeteksi akan berbeda-beda pula. Setelah terbaca oleh
sensor photodiode, maka selanjutnya akan diproses oleh mikrokontroller ATMega
8535 yang kemudian ditampilkan ke LCD dalam bentuk nilai bit, persentasi dan
nilai tegangan RGB pada minyak goreng yang diujikan.

Kata Kunci

: Mikrokontroler ATMega853, Minyak goreng, Photodioda

Universitas Sumatera Utara

vi

DESIGN OF DETECTION TOOL COOKING OIL QUALITY BASED ON
RGB COLOR WITH MICROCONTROLLER ATMEGA 8535

ABSTRACT

It has been designed and realized a prototype that is used to detect the quality of
cooking oil based on the RGB color by showing the results done on the LCD.
Hardware of this tool consists of photodiode sensor, LED, microcontroler
ATMega 8535 and LCD. As for the sofware that is used programming languange
C. Light source used is LED Red, Green and Blue. This tool is work process the
LED light under the tube (container) captured by the photodiode sensor. By
utilizing the nature of colors that have a different wavelenght of light, then the

exodus than the color that is detected will vary as well. Once read by the
photodiode sensor, then the next will be processed by mikrokontroller ATMega
8535 which is then shown to the LCD in the form of the value of the bit, RGB
values and percentage of voltage on the cooking oil that is to be tested.
Keywords

: Cooking Oil, Microcontroler ATMega 8535, Photodiode Sensor

Universitas Sumatera Utara