Anda di halaman 1dari 88

PENGUKUR SUHU TUBUH SECARA TAK SENTUH

MENGGUNAKAN SENSOR SUHU IR NONCONTACT


MLX90614 BERBASIS ARDUINO NANO

LAPORAN TUGAS AKHIR II

DISUSUN OLEH:

KRISTIN EVALINUS NAIBAHO

172411088

PROGRAM STUDI D3 METROLOGI DAN INSTRUMENTASI


FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM
UNIVERSITAS SUMATERA UTARA
MEDAN
2020

Universitas Sumatera Utara


PENGUKUR SUHU TUBUH SECARA TAK SENTUH
MENGGUNAKAN SENSOR SUHU IR NONCONTACT
MLX90614 BERBASIS ARDUINO NANO

LAPORAN TUGAS AKHIR II

Diajukan untuk melengkapi tugas dan memenuhi syarat memperoleh gelar


Ahli Madya

KRISTIN EVALINUS NAIBAHO

172411088

PROGRAM STUDI D3 METROLOGI DAN INSTRUMENTASI


FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM
UNIVERSITAS SUMATERA UTARA
MEDAN
2020

Universitas Sumatera Utara


PERNYATAAN

PENGUKUR SUHU TUBUH SECARA TAK SENTUH


MENGGUNAKAN SENSOR SUHU IR NON CONTACT
MLX90614 BERBASIS ARDUINO NANO

LAPORAN TUGAS AKHIR II

Saya menyatakan bahwa laporan tugas akhir ini adalah hasil karya sendiri, kecuali
beberapa kutipan dan ringkasan yang masing-masing disebutkan sumbernya.

Medan, 18 Agustus 2020

Kristin Evalinus Naibaho


172411088

Universitas Sumatera Utara


ii

Universitas Sumatera Utara


PENGUKUR SUHU TUBUH SECARA TAK SENTUH
MENGGUNAKAN SENSOR SUHU IR NON CONTACT
MLX90614 BERBASIS ARDUINO NANO

ABSTRAK

Telah dibuat suatu Sistem pengukuran suhu menggunakan Sensor Infrared


untuk mengetahui suhu suatu Objek berbasis Mikrokontroler Arduino Nano.Sistem
ini menggunakan Sensor Infrared, Sensor Jarak, Mikrokontroler, LCD, Ditambah
dengan Laser untuk penunjuk jarak. Sitem ini mempunyai input Sensor Infrared,
sensor ini akan mendeteksi suhu objek dengan jarak 5 – 50 cm, dan mikrokontroler
akan memproses data sehingga Suhu dan jarak akan ditampilkan di LCD. Agar
memperoleh hasil yang akurat, jarak yang tepat untuk mendeteksi suhu objek adalah
5 – 10 cm, karena semakin jauh jarak antara Objek dan Alat maka hasil suhu yang
dideteksi kurang akurat, karena adanya pengaruh suhu lingkungan Objek. Alat ini
mempunyai kelebihan dari alat-alat pengukuran suhu lain, alat ini bisa mengukur
suhu dengan waktu yang relative singkat ( 3 atau 5 detik saja).

Kata Kunci: Sensor Suhu ir non contact, Mikrokontroler Arduino Nano,LCD.

iii

Universitas Sumatera Utara


BODY TEMPERATURE GAUGES ARE NON CONTACTS
USING AN ARDUINO NANO BASED MLX90614 NON
CONTACT IR TEMPERATURE SENSOR

ABSTRACT

A temperature measurement system has been made using an Infrared Sensor to


determine the temperature of an Arduino Nano Microcontroller-based Object. This
system uses Infrared Sensors, Proximity Sensors, Microcontrollers, LCD, Coupled
with Lasers for distance indicators. This system has an Infrared Sensor input, this
sensor will detect the temperature of an object with a distance of 5 - 50 cm, and the
microcontroller will process data so that the Temperature and distance will be
displayed on the LCD. In order to obtain accurate results, the right distance to detect
the temperature of the object is 5-10 cm, because the farther the distance between the
object and the instrument, the detected temperature results are less accurate, due to
the influence of the object's environmental temperature. This tool has advantages
over other temperature measurement devices, this tool can measure temperature with
a relatively short time (3 or 5 seconds only).

Keywords: IR non contact temperature sensor, Arduino Nano microcontroller, LCD.

iv

Universitas Sumatera Utara


PENGHARGAAN

Puji dan syukur dan terimkasih kehadirat Tuhan Yang Maha Esa, karena
dengan limpah rahmat dan karunianya penulis berhasil menyelesaikan tugas akhir 2
yang berjudul “Pengukur Suhu Tubuh Secara Tak Sentuh Menggunakan Sensor
Suhu IR Non Contact MLX90614 Berbasis Arduino Nano” ini pada waktu yang
telah ditetapkan.

Dengan selesainya Laporan Tugas Akhir 2 ini penulis banyak mendapat


bantuan perhatian, bimbingan serta dari berbagai pihak. Pada kesempatan ini dengan
rasa hormat dan hati yang tulus dan ikhlas penulis mengucapkan terimakasih yang
sebesar-besarnya kepada :

1. Bapak Drs. Kerista Sebayang, M.Sc selaku Dekan Fakultas MIPA


Universitas Sumatera Utara.
2. Ibu Dr. Diana Alemin Barus, M.Sc selaku Ketua Program Studi D3
Metrologi dan Instrumentasi FMIPA Universitas Sumatera Utara dan
Dosen Pembimbing.
3. Juneidi Gintig S.Si, M.Si. selaku Sekertaris Program StudiD3
Metrologi dan Instrumentasi FMIPA Universitas Sumatera Utara
4. Seluruh Staf Pengajar Program Studi D-3 Metrologi dan Instrumentasi
Fakultas MIPA Universitas Sumatera Utara yang telah memberikan
ilmu dan pengetahuannya selama.
5. Teristimewa kepada kedua orangtua saya Bapak J. Naibaho dan
Mama tersayang T. Situmorang kepada adik-adik saya Santa Naibaho,
Lamhot Naibaho dan adik saya Cindi Naibaho yang senantiasa selalu
memberikan kasih sayang dan semangat serta doa dan dukungan
dalam penyusunan Tugas Akhir ini, Tuhan memberkati.

Universitas Sumatera Utara


6. Teman sekelas metrologi B stambuk 2017, kakak dan abang senior,
adik-adik junior yang meberikan dukungan dan bantuan kepada saya
dalam pengerjaan Tugas akhir ini.
7. Sahabat-sahabatku Rosari Simbolon, kak Nurafni Damanik, Finny
Manurung, Sakida Siagian, Vera Harianja, Endang Karolin, Beniati
Gea, Fanny Anastasya. Yang senantiasa memberikan doa dan
dukungan dalam penyusunan Tugas Akhir 2 ini.
8. Pihak – pihak lain yang telah banyak membantu penulis, yang tidak
dapat penulis sebutkan namanya sat-persatu.

Selama penulisan Tugas Akhir 2 ini, penulis menyadari akan kesalahan yang
mungkin terjadi, baik itu dari segi teknis, tata penyajian ataupun dari segi tata bahasa
oleh karena itu penulis bersedia mener`ima kritik dan saran yang membangun dai
pembaca dalam upaya perbaikan tugas akhir ini.

Akhir kata, penulis berharap semoga Tugas Akhir ini bermanfaat bagi siapa
pun yang membacanya.Semoga Tuhan Yang Maha Esa senantiasa memberikan
rahmat kepada kita semua.Amin.

Medan, 18 Agustus 2020


Penulis,

Kristin Evalinus Naibaho

vi

Universitas Sumatera Utara


DAFTAR ISI

Halaman

PERNYATAAN ............................................................................................................ i
PENGESAHAN ............................................................................................................ ii
ABSTRAK .................................................................................................................... iii
ABSTRACT .................................................................................................................. iv
PENGHARGAAN ........................................................................................................ v
DAFTAR ISI ................................................................................................................. vii
DAFTAR GAMBAR .................................................................................................... ix
DAFTAR TABEL......................................................................................................... x
BAB I PENDAHULUAN
1.1. Latar Belakang................................................................................. 1
1.2. Rumusan Masalah............................................................................. 2
1.3. Batasan Masalah ............................................................................... 2
1.4. Tujuan Penulisan .............................................................................. 2
1.5. Manfaat Penulisan ............................................................................ 3
1.6. Sistematika Penulisan ....................................................................... 3

BAB II TINJAUAN PUSTAKA


2.1. Arduino-Nano ................................................................................... 4
2.2. Sensor ............................................................................................... 5
2.3. Sensor Suhu IR Contact MLX90614 ............................................... 10
2.4. Liquid Crystal Display (LCD) .......................................................... 12
2.5Buzzer................................................................................................... 15
2.6. IC Regulator 7805 .............................................................................. 16
2.7. Baterai ............................................................................................... 18

vii

Universitas Sumatera Utara


BAB III METODE PENELITIAN
3.1. Diagram Blok Rangkaian .................................................................. 15
3.2. Rangkaian Arduino Nano .................................................................. 16
3.3. Rangkaian Penstabil Tegangan (Regulator) ...................................... 16
3.4. Rangkaian LCD (Liquid Crystal Display) ........................................ 17
3.5. Rangkaian Sensor Suhu IR Non-Kontak ........................................... 18
3.6. Diagram Alir (Flowchart) .................................................................. 18
4.1. Bentuk Fisik alat ............................................................................... 26

4.1.1 Bentuk Fisik Alat Bagian Luar ................................................ 26

4.2 Bentuk Fisik Tampilan Alat ............................................................... 27

4.3. Cara Penggunaan Alat ....................................................................... 28

4.4 Program .............................................................................................. 32

BAB IV HASIL DAN PEMBAHASAN


4.1. Bentuk Fisik alat ............................................................................... 19
4.1.1 Bentuk Fisik Alat Bagian Luar ................................................ 19
4.2. Bentuk Fisik Tampilan Alat .............................................................. 21
4.3. Cara Penggunaan Alat ....................................................................... 22
4.4. Program ............................................................................................. 23

BAB V KESIMPULAN DAN SARAN


5.1. Kesimpulan ....................................................................................... 25
5.2. Saran.................................................................................................. 25

DAFTAR PUSTAKA
LAMPIRAN

viii

Universitas Sumatera Utara


DAFTAR GAMBAR

Nomor Judul Halaman

Gambar 2.1 Arduino Nano Tampak Atas dan Bawah................................................5

Gambar 2.2 Skematik Arduino Nano .........................................................................8

Gambar 2.3 Sensor Suhu MLX90614 ........................................................................11

Gambar 2.4 Deskripsi Alamat Liquid Cristal Display (LCD) ..........................................12

Gambar 2.5LCD (Liquid Cristal Display) .....................................................................14

Gambar 2.6 Benrtuk Fisik Buzzer ...............................................................................16

Gambar 2.7Rangkaian IC 7805 ....................................................................................17

Gambar 2.8 Baterai ....................................................................................................18

Gambar3.1 Diagram Blok ..........................................................................................19

Gambar 3.2 Rangkaian Arduino Nano. .........................................................................20

Gambar 3.3Rangkaian Regulator ..................................................................................21

Gambar 3.4Rangkaian LCD .........................................................................................22

Gambar 3.5Rangkaian Sensor Suhu IR Non-Kontak ......................................................23

Gambar 3.6 Keseluruhan Rangkaian..........................................................................23

Gambar 3.7Flowchart Sistem .......................................................................................24

Gambar 4.1 Hasil Pengukuran Suhu Sensor dan Temperature ..................................30

ix

Universitas Sumatera Utara


DAFTAR TABEL

Nomor Judul Halaman

Tabel 2.1 Spesifikasi Arduino Nano Atmega 328..........................................................6

Gambar 2.2Deskripsi Nama dan Fungsi Pin Sensor MLX90614 .....................................12

Gambar 2.3 Deskripsi Pin pada LCD .........................................................................15

Gambar 4.1 Pengujian Sensor Suhu Tubuh ...............................................................29

Gambar 4.2 Pengujian Waktu Percobaan Pada Suhu Tubuh .....................................30

Gambar 4.3 Pengujian Jarak Percobaan .....................................................................31

Universitas Sumatera Utara


DAFTAR SINGKATAN

IC = Integrated Circuit

I/O = Input/Output

ADC = Analog to Digital Converter

DC = Direct Current

AREF = Refesensi Analog

AVR = ALv and Vegard’s Risc

PWM = Pulse Width Modulation

GND = Ground

SDA = Serial Data

SCK = Silicon Control Rectifier

SPI = Serial Peripheral Interface

SCI = Science Citation Index

LCD = Liquid Crystal Display

xi

Universitas Sumatera Utara


BAB I
PENDAHULUAN

1.1 Latar Belakang


Suhu adalah keadaan panas dan dingin yang diukur dengan menggunakan
termometer. Di dalam tubuh terdapat 2 macam suhu, yaitu suhu inti dan suhu kulit.
Suhu inti adalah suhu dari tubuh bagian dalam dan besarnya selalu dipertahankan
konstan, sekitar ± 1ºF (± 0,6º C) dari hari kehari, kecuali bila seseorang mengalami
demam. Sedangkan suhu kulit berbeda dengan suhu inti, dapat naik dan turun sesuai
dengan suhu lingkungan. Bila dibentuk panas yang berlebihan di dalam tubuh, suhu
kulit akan meningkat. Sebaliknya, apabila tubuh mengalami kehilangan panas yang
besar maka suhu kulit akan menurun. Nilai suhu tubuh juga ditentukan oleh lokasi
pengukuran, pengukuran suhu bertujuan memperoleh nilai suhu jaringan dalam
tubuh. Lokasi pengukuran untuk suhu inti yaitu rektum, membran timpani, arteri
temporalis, arteri pulmonalis, esophagus dan kandung kemih. Lokasi pengukuran
suhu permukaan yaitu kulit, oral dan aksila.
suhu tubuh yang normal adalah 35,8°C – 37,5°C. Pada pagi hari suhuakan
mendekati 35,5°C, sedangkan pada malam hari mendekati 37,7°C.Pengukuran suhu
di rektum juga akan lebih tinggi 0,5°-l°C, dibandingkan suhu mulut dan suhu mulut
0,5°C lebih tinggi dibandingkan suhu aksila.
Pengukuran suhu tubuh yang telah ada saat ini dalam pengaplikasiannya
membutuhkan waktu yang relatif cepat yaitu antara tiga hingga lima menit untuk
dapat mengambil nilai suhu tubuh seseorang. Hal ini tentunya akan sangat
membantu bagi tenaga medis dalam menjalankan profesinya sehari-hari agar pasien
yang ada dapat lebih cepat tertangani dengan baik dan tidak membuang banyak
waktu yang berarti efisiensi waktu. Penangangan yang lambat yang berarti memakan
banyak waktu terhadap pasien tentunya akan mempengaruhi keadaan pasien itu
sendiri, penanganan yang cepat tentunya merupakan keinginan setiap pihak. Dapat
dikatakan bahwa efisiensi waktu merupakan hal positif yang dapat diperoleh dari
penerapan alat pengukur suhu tubuh menggunakan IR Non Contact LMX90614

Universitas Sumatera Utara


1
ini.Untuk itulah penulis mencoba untuk membuat suatu alat dan Penulisan Tugas
akhir II dengan judul “Pengukur Suhu Tubuh Secara Tak Sentuh Menggunakan
Sensor Suhu ir Non Contact MLX90614 Berbasis Arduino Nano”.

1.2 Rumusan Masalah


Pada laporan Tugas Akhir II, penulis membuat Pengukur Suhu Tubuh Secara Tak
Sentuh Menggunakan Sensor IR Non Contact MLX90614 Berbasis Arduino Nano.
1. Bagaimana merancang alat Pengukur Suhu Tubuh Secara Tak Sentuh
Menggunakan Sensor IR Non Contact MLX90614 Berbasis Arduino Nano?
2. Bagaimana prinsip kerja alat Pengukur Suhu Tubuh Secara Tak Sentuh
Menggunakan Sensor IR Non Contact MLX90614 Berbasis Arduino Nano?
3. Bagaimana prinsip kerja sensor suhu IR Non Contact MLX90614?

1.3 Batasan Masalah


Dalam penulisan Laporan Project Akhir 1 ini, dibuat suatu batasan-batasan dengan
maksud memudahkan analisis yang dibutuhkan dalam rangka pemecahan masalah.
Adapun batasannya yaitu sebagai berikut:
1. Sensor IR Non Contact MLX90614 , hanya digunakan untuk mendeteksi kualitas
suhu.
2. Perancangan perangkat keras(hardware) yang terdiri dari mikrokontroler, sensor
IR Non Contact MLX90614 , dan LCD 16x2 karakter.
3. Bahasa pemrograman yang digunakan pada mikrokontroller adalah bahasa C.
4. Display atau penampil nilai data menggunakan LCD (Liquid Crystal Display) .
5. Mikrokontroler yang digunakan adalah Arduino Nano.

1.4 Tujuan Penulisan


Tujuan dari penelitian ini adalah menghasilkan sistem pemantauan suhu non kontak
menggunakan sensor IR Non Contact LMX90164 , sehingga userdapat memperoleh info
suhu pada suatu objek secara real time.Manfaat penelitian ini adalah untuk

Universitas Sumatera Utara


2
mempermudah pekerjaan user dalam memantau kondisi suhu dari suatu objek terutama
objek yangbekerja di lingkungan extreme yang bisa membahayakan user.
Penulisan laporan proyek ini adalah untuk:
1. Sebagai salah satu syarat untuk dapat menyelesaikan program Diploma Tiga (D-
III) Metrologi dan Instrumentasi FMIPA Universitas Sumatera Utara.
2. Pengembangan kreatifitas mahasiswa dalam bidang ilmu instrumentasi
pengontrolan dan elektronika sebagai bidang yang diketahui.
3. Merancang suatu alat suhu non kontak menggunakan sensor Non Contact IR
MLX90614 dan ditampilkan pada LCD dengan menggunakan Mikrokontroller.
4. Penulis ingin memberikan penjelasan tentang penggunaan dan prinsip cara kerja
alat ukur Suhu Tubuh Secara Tak Sentuh Menggunakan Sensor Suhu IR Non
Contact Menggunakan MLX90614 Berbasis Arduino Nano.

1.5 Manfaat Penulisan


Memberikan informasi kepada pembaca tentang Perancangan Alat untuk mengetahui
suhu tubuh menggunakan sensor Suhu IR Non Contact Menggunakan MLX90614
dengan Berbasis Arduino Nano dan outputnya ke display LCD. Serta dapat digunakan
pada ruangan yang membutuhkan keefesiensian pengukuran.

1.6 Sistematika Penulisan


Dalam penyusunan Laporan Project Akhir 2 ini, pembahasan mengenai sistem alat yang
dibuat dibagi menjadi lima bab dengan sistematika sebagai berikut.

BAB I : PENDAHULUAN
Berisi latar belakang permasalahan, batasan masalah, tujuan pembahasan, metodologi
pembahasan, sistematika penulisan dan relevansi dari penulisan laporan ini.

BAB II : TINJAUAN PUSTAKA


Dalam bab ini dijelaskan tentang teori pendukung yang digunakan untuk pembahasan
dan cara kerja dari rangkaian teori pendukung itu antara lain tentang Mikrokontroler,

Universitas Sumatera Utara


3
sensor IR Non Contact MLX90614,dan prinsip kerjanya, software pendukung dan
bahasa program yang digunakan.

BAB III : PERANCANGAN SISTEM


Bab ini berisikan tentang proses perancangan dan pembuatan alat. Mulai dari
perancangan dan pembuatan sistem secara hardware atau software.

BAB IV HASIL DAN PEMBAHASAN


Dalam bab ini akan dibahas hasil analisa dari rangkaian dan sistem kerja alat. penjelasan
mengenai rangkaian rangkaian yang digunakan, penjelasan mengenai program yang
diisikan ke mikrokontroller Arduino Nano.

BAB V KESIMPULAN DAN SARAN


Bab ini berisikan penutup yang meliputi tentang kesimpulan dari pembahasan yang
dilakukan dari laporan Tugas Akhir II ini serta saran apakah rangkaian ini dapat dibuat
lebih efisien dan dikembangkan dengan metode lain yang mempunyai sistem kerja yang
sama.

Universitas Sumatera Utara


4
BAB II
TINJAUAN PUSTAKA

2.1 Arduino-Nano
Arduino adalah papan rangkaian elektronik (electronic board) open source yang di
dalamnya terdapat komponen utama yaitu, sebuah chip mikrokontroler. Mikrokontroller
sendiri adalah sebuah chip berupa IC (integrated Circuit) yang bisa diprogram
menggunakan komputer. Mikrokontroler terdapat di mana-mana seperti di dalam DVD
Player, Handphone, televisi, dll. Arduino adalah salah satu jenis rangkaian elektronik
yang mengadaptasikan dari mikrokontroler. Arduino dibuat untuk memudahkan
penggunaan mikrokontroler ke fungsi tertentu yang lebih spesifik. Bentuk, jumlah port,
dan mikrokontroler yang digunakan pada Arduino bermacam-macam tergantung pada
fungsi kegunaannya, seperti Arduino Uno R3, Arduino Mega 2560, Arduino Nano,
Arduino Lilypad, dll. Selain itu juga ada shield arduino, sensor, aktuator, modul, dan
mekanik robot yang didesain untuk digunakan bersama dengan Arduino board. Arduino
Nano adalah salah satu board berbasis mikrokontroler ATMega 328P dengan bentuk
yang mungil.Bentuk fisik dari Arduino Nano dapat dilihat pada Gambar 2.1 dengan
spesifikasi yang terdapat pada tabel 2.1.

Gambar 2.1 Arduino Nano tampak atas dan bawah


(https://store.arduino.cc/usa/arduino-nano)

Universitas Sumatera Utara


5
Tabel 2.1 Spesifikasi Arduino Nano ATMega 328

Chip mikrokontroler ATMega328P Tegangan operasi 5V

Tegangan input 7V—12V Digital I/O pin 14 buah, 6


diantaranya menyediakan
PWM Analog Input pin 8 buah
Arus DC per pin I/O 40 mA Memori Flash 32 KB, 0.5 KB
(digunakan untuk
bootloader) SRAM 2 KB
EEPROM 1 KB Clock speed 16 MHz
Dimensi 45 mm x 18 mm Berat 5 g
Chip mikrokontroler ATMega328P Tegangan operasi 5V

Tegangan input 7V—12V Digital I/O pin 14 buah, 6


diantaranya menyediakan
PWM Analog Input pin 8 buah
Arus DC per pin I/O 40 Ma Memori Flash 32 KB, 0.5 KB
(digunakan untuk
bootloader) SRAM 2 KB

Pin-pin pada Arduino Nano dapat dibagi ke dalam beberapa bagian tertentu, yaitu power
supply, input/output, dan komunikasi. Beberapa pin di antaranya memiliki fungsi
khusus. Berikut ini menunjukkan kegunaan dari setiap pinnya :
1. Power supplyadalah pin yang berhubungan langsung dengan sumber daya, baik dari
input daya maupun output daya Arduino.
 Vinadalah pin untuk input daya dari luar dengan rentang tegangan7—12 V
 GNDadalah pin untuk sumber daya negatif atau sebagai ground.
 Pin 5Vadalah pin untuk output daya 5V dari Arduino Nano.
 Pin 3.3Vadalah pin untuk output daya 3.3V dari Arduino Nano.
 REF adalah pin yang dingunakan sebagai referensi mikrokontroler menggunakan
board shield

Universitas Sumatera Utara


6
2. Pin Input dan Output terbagi menjadi utama, yaitu berupa
 I/O analog danI/O digital dengan 14 pin digital dan 8 pin analog. Beberapa
fungsilainnya juga sebagai komunikasi serial, SDA SCK, dll.
 Serial digunakan untuk komunikasi serial dengan perangkat lain yangterdiri dari
pin D0(RX) dan D1(TX). Kedua pin ini dapat menerimadan mengirimkan data
serial.
 External interrupsuntuk mengaktifkan fungsi interrups melalui pinD2 dan D3
menggunakan kode program attachInterrup.
 PWM, pin ini terdiri dari pin D 3, 5, 6, 9, 10, dan 11 yangmenyediakan output
PWM-8 bit dengan menggunakan fungsipemrograman analogWrite.
 SPI, mendukung komunikasi SPI dengan library SPI, yaitu Pin D10(SS), 11
(MOSI), 12 (MISO), dan 13 (SCK).
 Pin Analog, memiliki 8 pin analog mulai dari A0 sampai A7 yangsemuanya
memiliki resolusi 1024 bits. Pin A0 sampai A5 dapatdifungsikan sebagai pin
analog melalui pengaturan diprogram, pinA4(SDA) dan A5(SCL) merupakan pin
yang mendukung komunikasi I2C (TWI) dengan menggunakan library Wire,
sedangkan pin A6 danA7 hanya bisa digunakan untuk input pin analog saja.
3. Resetadalah pin yang digunakan untuk mengulang Arduino dari awallagi dengan
menghubungkannya dengan negatif. Konfigurasi pin yang sudah dijelaskan
sebelumnya dapat dilihat pada rangkaian skematik Arduino Nano yang diperlihatkan
pada Gambar 2.1.

Universitas Sumatera Utara


7
Gambar 2.2 Skematik Arduino Nano

(https://lectronichub.com/en/arduino-and-family-c-3/arduino-nano-p-11)

Papan Arduino memiliki fitur baru seperti berikut:


a. Pertama adalah pin out: ada penambahan pin SDA dan SCL yang dekat dengan
pin AREF dan dua pin baru lainnya ditempatkan dekat dengan pin RESET,
IOREF yang memungkinkan shield untuk beradaptasi dengan tegangan yang
disediakan dari papan / board. Di masa depan, shield akan kompatibel dengan
kedua papan yang menggunakan AVR, yang beroperasi dengan 5V dan dengan
Arduino yang beroperasi 3.3V. Kedua adalah pin tidak terhubung, yang
dicadangkan untuk tujuan masa depan.
b. Reset : "Uno" dalam bahasa Italia berarti satu, alas an diberi nama tersebut
adalah untuk menandai peluncuran Arduino 1.0. Uno dan versi 1.0 akan menjadi
versi referensi dari Arduino, dan akan terus berkembang. Arduino Uno dapat
diaktifkan melalui koneksi USB atau dengan catu daya eksternal. Catu daya
dipilih secara otomatis. Untuk sumber daya Eksternal (non-USB) dapat berasal
baik dari adaptor AC-DC atau baterai. Adaptor ini dapat dihubungkan dengan
memasukkan 2.1 mm jack DC kecolokan listrik board. Baterai dapat dimasukkan
pada pin header Gnd dan Vin dari konektor DAYA. Board dapat beroperasi pada
pasokan eksternal dari 6 sampai 20 volt. Jika Anda menggunakan tegangan
kurang dari 6 volt mungkin tidak akan stabil. Jika menggunakan lebih dari 12V,
regulator tegangan bisa panas dan merusak papan. Rentang yang dianjurkan
adalah 7sampai 12 volt. Pin listrik yang tersedia adalah sebagaiberikut :

a) VIN merupakan input tegangan ke board Arduino ketika menggunakan


sumber daya eksternal. Anda dapat menyediakan 15 tegangan melalui pin ini,
atau, jika Anda ingin memasok tegangan melalui colokan listrik, gunakan pin
ini.

Universitas Sumatera Utara


8
b) 5V adalah pin input 5V yang telah diatur oleh regulator papan Arduino.
Board dapat diaktifkan dengan daya, baik dari colokan listrik DC (7 - 12V),
konektor USB (5V), atau pin VIN board (7-12V). Jika memasukan tegangan
melalui pin 5V atau 3,3Volt secara langsung (tanpa melewati regulator) dapat
merusak papan Arduino.
c) Tegangan pada pin 3,3Volt dihasilkan oleh regulator on-board. Menyediakan
arus maksimum 50 mA.
d) GND merupakan pin Ground : IOREF adalah pin di papan Arduino yang
memberikan tegangan referensi ketika mikrokontroler beroperasi. Sebuah
shield yang dikonfigurasi dengan benar dapat membaca pin tegangan IOREF
sehingga dapat memilih sumber daya yang tepat agar dapat bekerja dengan
5V atau 3,3 Volt. Memoriyang dimiliki ATmega328 memiliki 32 KB
(dengan 0,5 KB digunakan untuk bootloader). ATmega 328 juga memiliki 2
KB dari SRAM dan 1 KBEEPROM (yang dapat dibaca dan ditulis dengan
perpustakaan / libraryEEPROM). Masing-masing dari 14 pin digital Uno
dapat digunakan sebagai input atau output, menggunakan fungsi pin Mode(),
digital Write(), dan digital Read(). Mereka beroperasi pada tegangan 5 volt.
Setiap pin dapat memberikan atau menerima maksimum 40 mA dan memiliki
resistor pull-up internal (terputus secara default) dari 20-50 kOhms.

2.2 Sensor
secara umum sensor didentifikasikan sebagai alat yang mampu menangkap
fenomena fisika atau kimia kemudian mengubahnya menjadi sinyal elektrik baik arus
listrik ataupun tegangan. Fenomena fisik yang mampu menstimulus sensor untuk
menghasilkan sinyal elektrik meliputi temperature, tekanan, gaya, medan magnet
cahaya, pergerakan dan sebagainya. Sensor suhu adalah alat yang dingunakan untuk
merubah besaran panas menjadi besaran listrik yang dapat dengan mudah dianalisis
besarnya. Karakteristik sensor suhu ditentukan dari sejauh mana sensor tersebut
memiliki kemampuan yang baik dalam mendeteksi setiap perubahan suhu yang ingin
dideteksinya. Kemampuan mendeteksi perubahan suhu meliputi:

Universitas Sumatera Utara


9
1. Sensitifitas, yaitu ukuran seberapa sensitive sensor terhadap suhu yang
dideteksinya. Sensor yang baik akan mampu mendeteksi perubahan suhu
meskipun kenaikan suhu tersebut sangat sedikit. Sebagai gambaran sebuah
inkubator bayi yang dilengkapi dengan sensor yang memiliki sensitifitas yang
tinggi.
2. Waktu respondan waktu recovery, yaitu waktu yang dibutuhkan sensor untuk
memberikan respon terhadap suhu yang dideteksinya. Semakin cepat waktu
respondan waktu recovery maka semakin baik sensor tersebut.
3. Stabilitas dan daya tahan, yaitu mana sensor dapat secara konsisten memberikan
besar sensitifitas yang sama terhadap suhu, serta seberapa lama sensor tersebut
dapat terus dingunakan.

2.3 Sensor Suhu IR Contact MLX90614


Sensor MLX90614 merupakan thermometer infra merah yang digunakan mengukur
suhu tanpa bersentuhan dengan objek.Sensor ini terdiri dari chipdetektor yang peka
terhadap suhu berbasis infra merah dan pengondisi sinyal ASSP yang mana terintegrasi
dengan TO-39. Sensor ini didukung dengan penguat berderau rendah, ADC 17 bit, unit
DSP dan thermometer yang memiliki akurasi dan resolusi tinggi.
Termometernyaterkalibrasi dengan output digital dari PWM dan SMBus. Sebagai
standar PWM 10 bit akan menunjukan perubahan suhu yang diukur secara terus menerus
dengan jangkauan suhu pada sensor minus 40 hingga 120 derajat Celsius dan jangkauan
suhu objek dari -70 hingga 380 derajat Celcius dengan resolusi output0,14 derajat
Celsius. Tampilan rangkaian dan fisik dari sensor suhu MLX90614 dapat dilihat di
Gambar 2.3

Universitas Sumatera Utara


10
Gambar 2.3 Sensor Suhu MLX90614

(https://repository.usd.ac.id/34082/2/135114047_full.pdf)

Pin PWM dapat digunakan sebagai relai perubahan suhu (To sebagai input), yang mana
mudah dan murah digunakan di thermostat atau penggunaan peringatan suhu (membeku
atau mendidih). Ambang batas suhu mudah diprogram. Pada SM Bus, fitur ini 11dapat
berfungsi sebagai interupsi pada prosesor yang dapat memicu pembacaan semua slave
pada bus dan menentukan kondisi sebenarnya. Secara normal, sensor MLX90614 dapat
menginderai objek dengan emisivitas bernilai 1. Walaupun begitu, sensor ini bisa
dikalibrasi dengan mudah untuk menginderai objek dengan emisivitas bernilai 0,1
hingga 1.MLX90614 bisa menggunakan 2 alternatif sumber tegangan yaitu 5V atau
baterai 3V. Posisi pin dapat dilihat pada Gambar 2.4 dan deskripsinya pada Tabel 2.2

Gambar 2.4 Deskripsi Pin Sensor MLX90614

(https://repository.usd.ac.id/34082/2/135114047_full.pdf)

Universitas Sumatera Utara


11
Tabel 2.2 Deskripsi Nama dan Fungsi Pin Sensor MLX90614

Nama Pin Fungsi

VSS Ground

SCL / Vz Input clock serialuntuk protokol 2 komunikasi


kabel

PWM / SDA Digital input / Output

VDD Sumber tegangan eksternal

2.4Liquid Crystal Display (LCD)


Display elektronik adalah salah satu komponen elektronika yang berfungsi
sebagai tampilan suatu data, baik karakter, huruf ataupun grafik. LCD (Liquid Cristal
Display) adalah salah satu jenis display elektronik yang dibuat dengan teknologi CMOS
logic yang bekerja dengan tidak menghasilkan cahaya tetapi memantulkan cahaya yang
ada di sekelilingnya terhadap front-lit atau mentransmisikan cahaya dari back-lit. LCD
(Liquid Cristal Display) berfungsi sebagai penampil data baik dalam bentuk karakter,
huruf, angka ataupun grafik. Material LCD (Liquid Cristal Display) LCD adalah lapisan
dari campuran organik antara lapisan kaca bening dengan elektroda transparan indium
oksida dalam bentuk tampilan seven-segment dan lapisan elektroda pada kaca belakang.
LCD sangat berfungsi sebagai penampil yang nantinya akan digunakan untuk
menampilkan status kerja alat.
Adapun fitur yang disajikan dalam LCD ini adalah :
a. Terdiri dari 16 karakter dan 2 baris.
b. Mempunyai 192 karakter tersimpan.
c. Terdapat karakter generator terprogram.
d. Dapat dialamati dengan mode 4-bit dan 8-bit.
e. Dilengkapi dengan back light.

Universitas Sumatera Utara


12
LCD (Liquid Crystal Display) adalah suatu jenis media tampil yang menggunakan
kristal cair sebagai penampil utama. LCD sudah digunakan diberbagai bidang misalnya
alal–alat elektronik seperti televisi, kalkulator, ataupun layar komputer. Pada bab ini
aplikasi LCD yang dugunakan ialah LCD dot matrik dengan jumlah karakter 2 x 16.
LCD sangat berfungsi sebagai penampil yang nantinya akan digunakan untuk
menampilkan status kerja alat. Adapun fitur yang disajikan dalam LCD ini adalah :

1. Terdiri dari 16 karakter dan 2 baris.


2. Mempunyai 192 karakter tersimpan.
3. Terdapat karakter generator terprogram
4. Dapat dialamati dengan mode 4-bit dan 8-bit
5. Dilengkapi dengan back light.
6. Tersedia VR untuk mengatur kontras.
7. Pilihan konfigurasi untuk operasi write only atau read/write.
8. Catu daya +5 Volt DC dan Kompatibel dengan DT-51 dan DT-AVR Low Cost
Seriesserta sistem mikrokontroler/mikroprosesor lain.

Gambar 2.5LCD (Liquid crystal display)


(Sumber : https://encrypted-tbn0.gstatic.com)

Pada Gambar 2.5 dijelaskan bahwa konfigurasi dan deskripsi dari pin-pin LCD antara
lain:
1. Pin 1 dihubungkan ke Gnd
2. Pin 2 dihubungkan ke Vcc +5V

Universitas Sumatera Utara


13
3.Pin 3 dihubungkan ke bagian tegangan potensiometer 10KOhm sebagai pengatur
kontras.
4. Pin 4 untuk membritahukan LCD bahwa sinyal yang dikirim adalah data, jika Pin
4 ini diset ke logika 1 (high, +5V), atau memberitahukan bahwa sinyal yang
dikirim adalah perintah jika pin ini di set ke logika 0 (low, 0V).
5. Pin 5 digunakan untuk mengatur fungsi LCD. Jika di set ke logika 1 (high, +5V)
maka LCD berfungsi untuk menerima data (membaca data). Dan fungsi untuk
mengeluarkan data, jika pin ini di set ke logika 0 (low, 0V). Namun kebanyakan
aplikasi hanya digunakan untuk menerima data, sehingga pin 5 ini selalu
dihubungkan ke Gnd.
6. Pin 6 adalah terminal enable. Berlogika 1 setiap kali pengiriman atau pembaca
data.
7. Pin 7 – Pin 14 adalah data 8 bit data bus (Aplikasi ini menggunakan 4 bit MSB
saja, sehingga pin data yang digunkan hanya Pin 11 – Pin 14).
8. Pin 15 dan Pin 16 adalah tegangan untuk menyalakan lampu LCD.

Tabel 2.2Deskripsi Pin Pada LCD

PIN DESKRIPSI
1 Ground
2 VCC

4 Pengatur Kontras

5 RS (Register Select)
6 R/W (Read/Write) LCD Register
7-14 EN (Enable)

15 Data I/O Pins

16 Ground

Universitas Sumatera Utara


14
Dari tabel 2.6, cara kerja LCD (Liquid Crystal Display) pada aplikasi umumnya RW
diberi logika rendah “0”. Bus data terdiri dari 4-bit atau 8-bit.Jika jalur data 4-bit maka
yang digunakan ialah DB4 sampai dengan DB7.Sebagaimana terlihat pada table
diskripsi, interface LCD merupakan sebuah parallel bus, dimana hal ini sangat
memudahkan dan sangat cepat dalam pembacaan dan penulisan data dari atau ke LCD.
Kode ASCII yang ditampilkan sepanjang 8-bit dikirim ke LCD secara 4-bit atau 8 bit
pada satu waktu.

2.5 Buzzer
Buzzer adalah sebuah komponen elektronika yang berfungsi untuk mengubah
getaran listrik menjadi getaran suara. Pada dasarnya prinsip kerja buzzer hampir sama
dengan speaker, jadi buzzer juga terdiri dari kumparan yang terpasang pada diagram
dan kemusian kumparan tersebut dialiri arus sehingga menjadi elektromagnet, kumparan
tadi akan tertarik ke dalam atau keluar, tergantung dari arah arus dan polaritas
magnetnya, karena kumparan dipasang pada diagrafma maka setiap gerakan
kumparanakan menggerakkan diafragma secara bolak-balik sehingga membuat udara
bergetar yang akan menghasilkan suara.

Gambar 2.6 Bentuk fisik Buzzer


(https://www.google.com/search?client=firefox-b-d&q=gambar+buzzer)

Universitas Sumatera Utara


15
2.6 IC Regulator 7805
Salah satu sumber penting penyedia arus DC adalah baterai, sayangnya
menggunakan baterai pada rangkaian elektronik sensitif bukan ide yang bagus. Hal ini
karena kemampuan baterai terkuras sedikit demi sedikit sehingga akan kehilangan
potensinya sebagai penyedia arus DC pada rangkain.Selain itu, tegangan yang
disediakan oleh baterai biasanya 1.2V, 3.7V, 9V dan 12V, tentu bagus jika rangkaian
tersebut membutuhkan voltase pada kisaran tersebut.Tetapi, sebagian besar IC TTL
bekerja pada logika 5V, oleh karena itu dibutuhkan mekanisme penyedia tegangan 5V
yang tetap. Untuk menjawab permasalahan tersebut maka hadirlah IC 7805 sebagai IC
pengatur tegangan terintegrasi, IC 7805 merupakan anggota dari seri 78XX. Adapun XX
pada seri 78XX menunjukkan tegangan output yang disediakannya, dengan kata lain IC
7805 menujukkan tegangan ouput sebesau +5 V.).

Adapun beberapa fungsi Pin IC 7805;


1. Input : Berfungsi sebagai input tegangan (7V-35V). Pin 1 adalah Pin INPUT.
Tegangan positif yang tidak diregulasi diberikan sebagai input ke pin ini.
2. Ground : Berfungsi sebagai ground (0V). Pin 2 adalah Pin GROUND. Biasa
untuk Input dan Output.
3. Output : Berfungsi sebagai pengatur output (4.8V-5.2V). Pin 3 adalah Pin
OUTPUT. Output yang diatur 5V diambil pada pin IC ini.

Jika kamu perhatikan, ada perbedaan yang signifikan antara tegangan input &
tegangan output pada IC regulator tegangan. Perbedaan antara tegangan input dan
output dilepaskan sebagai panas, dengan kata lain semakin besar perbedaan antara
tegangan input dan output, semakin banyak panas yang dihasilkan. Jika regulator
tidak memiliki pendingin untuk menghilangkan panas ini, maka IC bisa rusak dan
tidak berfungsi. Oleh karena itu, disarankan untuk membatasi tegangan

Seperti yang telah dijelaskan sebelumnya tentang catu daya yang diatur (regulated
power supply) sebagai perangkat yang bekerja pada tegangan DC dan dapat mengontrol
output secara akurat pada tegangan tetap sepanjang waktu bahkan jika ada perubahan

Universitas Sumatera Utara


16
yang signifikan pada tegangan input DC.Sesuai dengan datasheet IC 7805, rangkaian
dasar yang diperlukan agar IC 7805 berfungsi sebagai regulator lengkap sangat
sederhana. Bahkan, jika suplai input adalah. Tegangan DC yang tidak diatur, maka yang
kamu butuhkan adalah dua kapasitor (bahkan hal ini bisa tidak wajib tergantung pada
implementasinya).

2.7 Gambar Rangkaian Dasar IC 7805

(https://www.google.com/search?q=gambar+Rangkaian+Dasar+IC+7805&tbm)

Rangkaian di atas menunjukkan semua komponen yang diperlukan agar IC 7805


berfungsi dengan benar. Kapasitor0.22μF di dekat input hanya diperlukan jika jarak
antara IC regulator dan filter catu daya tinggi. Juga, Kapasitor 0,1μF dekat output adalah
opsional dan jika digunakan, membantu dalam respon sementara.Dalam rangkaian ini,
VIN adalah tegangan input ke IC 7805 dan sumbernya didapat dari baterai DC yang
tidak diatur. VOUT adalah output dari 7805 IC, yang merupakan 5V yang diatur.

2.6 Baterai 9 Volt


Baterai (Battery) adalah sebuah alat yang dapat merubah energi kimia yang
disimpannya menjadi energi Listrik yang dapat digunakan oleh suatu perangkat
Elektronik.Hampir semua perangkat elektronik yang portabel seperti Handphone,
Laptop, Senter, ataupun Remote Control menggunakan Baterai sebagai sumber
listriknya.Dengan adanya Baterai, kita tidak perlu menyambungkan kabel listrik untuk

Universitas Sumatera Utara


17
dapat mengaktifkan perangkat elektronik kita sehingga dapat dengan mudah dibawa
kemana-mana.Dalam kehidupan kita sehari-hari, kita dapat menemui dua jenis Baterai
yaitu Baterai yang hanya dapat dipakai sekali saja (Single Use) dan Baterai yang dapat
di isi ulang (Rechargeable).

Gambar 2.8 Baterai

(https://www.google.com/search?q=gambar+baterai&tbm)

Universitas Sumatera Utara


18
BAB III
METODE PENELITIAN

3.1 Diagram Blok Pengukur Suhu Tubuh Secara Tak Sentuh Menggunakan Sensor
Suhu ir Non Contact MLX90614 Berbasis Arduino Nano

Diagram blok sistem merupakan salah satu bagian terpenting dalam perancangan dan
pembuatan alat ini, karena dari diagram blok dapat diketahui prinsip kerja keseluruhan
rangkaian.

Baterai

Sensor Suhu IR Non LCD


Contact

Arduini Nano

Gambar 3.1 Gambar Blok

Universitas Sumatera Utara


19
Fungsi tiap blok:
1. Sensor Suhu IR Non Contact : sebagi mendeteksi suhu terhadap objek
2. Baterai : sebagai sumber tegangan untuk
menjalakanrangkaian
3. Arduino Nano : Sebagai otak atau pengontrol kendali
sistemrangkaian elektronika pada
pengukur suhu.
4. LCD : Sebagai rangkaian komponen berupa
outputuntukmenampilkan hasil
pembacaan sensor

3.2 Rangkaian Arduino Nano

Rangkaian ini berfungsi sebagai pusat kendali dari seluruh sistem yang
ada.Komponen utama dari rangkaian ini adalah IC Mikrokontroler Arduino nano.Semua
program diisikan pada memori dari IC ini sehingga rangkaian dapat berjalan sesuai
dengan yang dikehendaki. Mikrokontroller Arduino nano dapat memisahkan memori
untuk kode program dan memori untuk data sehingga dapat memaksimalkan kerja.

Gambar 3.2 Rangkaian Arduino Nano

Universitas Sumatera Utara


20
3.3 Rangkaian Penstabil Tegangan (Regulator)
Rangkaian ini berfungsi untuk memberikan supplay tegangan dari baterai
keseluruh rangkaian yang ada. Keluaran rangkaian regulator ini yaitu 5 volt.

Gambar 3.3 Rangkaian Regulator

Pada rangkaian diatas baterai 12 volt terhubung pada capasitor 100 nf, lalu
dihubungkan pada tegangan input ic regulator 7805 agar mendapat output 5 volt dc,
output 5 volt dc inilah yang akan berfungsi untuk memberi supply pada sistem Arduino
nano.

3.4 Rangkaian LCD (Liquid Crystal Display)


Pada alat ini, display yang digunakan adalah LCD (Liquid Crystal Display) 16 x 2.
Untuk blok ini tidak ada komponen tambahan karena mikrokontroler dapat memberi
data langsung ke LCD, pada LCD Hitachi – M1632 sudah terdapat driver untuk
mengubah data ASCII output mikrokontroler rmenjadi tampilan karakter. Pemasangan
potensio sebesar 5 KΩ untuk mengatur kontras karakter yang tampil.Gambar 3.4 berikut
merupakan gambar rangkaian LCD yang dihubungkan ke mikrokontroler.

Universitas Sumatera Utara


21
Gambar 3.4 Rangkaian LCD

Dari gambar 3.3rangkaian ini terhubungke PD.0... PD7, yang merupakan pin I/O
dua arah dan pin fungsi khusus, yaitu sebagai Analog and Digital Converter. Nilai yang
akan tampil pada LCD display akan dapat dikendalikan oleh Mikrokontroller Arduino
nano.

3.5 Rangkaian Sensor Suhu IR Non-Kontak


Pada rangkaian ini input sensor terhubung ke port A0 arduino nano, yaitu sebagai
data pembacaan sensor yang masuk ke mikrokontroler akandiproses dan di kalibrasi.

Gambar 3.5 Rangkaian Sensor Suhu IR Non-Kontak

Universitas Sumatera Utara


22
3.4 Keseluruhan rangkaian

Gambar 3.6 Hasil Rangkaian

Universitas Sumatera Utara


23
3.4 Diagram Alir (Flowchart)

Start

Inisialisasi
Program

Sensor Suhu IR Non


kontak Membaca
Nilai Suhu

LCD
Menampilkan
Nilai Suhu

Selesai

Gambar 3.7 Flowchart Sistem

Perancangan alat ini meliputi Sensor Non Contact MLX90614, Arduino Nano,
LCD. Perancangan Alat dapat dilihat pada gambar 3.7.

Keterangan :

1. Start alat dihidupkan


2. Inisialisasi program artinya program dimaksukkan ke alat dan mulai berjalan.
3. Sensor membaca nilai suatu pada suatu objek.

Universitas Sumatera Utara


24
4. Setelah itu suhu nilai pada suatu objek akan dibaca sensor dan ditampilkan di
LCD.
5. LCD menampilkan Suhu dari suatu objek yang dituju.

Universitas Sumatera Utara


25
BAB IV
HASIL DAN PEMBAHASAN

Bab ini akanmenjelaskan mengenai bentuk fisik alat bagian luar dan dalam,
tampilan penggunaan alat dan langkah-langkah menjalankan alat pengukur suhu dengan
sensor inframerah MLX90614 berbasis Arduino Nano, sintaks program yang digunakan,
serta menganalisis data hasil pengujian.

4.1 Bentuk fisik alat


4.1.1 Bentuk Fisik Alat Bagian Luar

Gambar 4.1 Bentuk fisik alat bagian luar

Bentuk fisik bagian luar dari alat pengukur suhu dengan sensor MLX90614 dapat dilihat
pada Gambar 4.1 di atas. Adapun keterangan gambar 4.1 sebagai berikut:

1. Sensor suhu inframerah MLX90614 sebagai alat untuk mengukur suhu Contacless.’
2. LCD 16X2 sebagai penampil.
3. Potensiometer Sebagai mengatur sound system
4. Switch Button sebagai on/off suatu alat

Universitas Sumatera Utara


26
4.2 Tampilan Atas Penggunaan Alat.

Gambar 4.2 tampilan LCD setelah sistem pengukuran Arduino Nano diaktifkan
(tombol powerdalam keadaan ON)

Gambar 4.3 Bentuk tampilan samping alat

4.3. Cara Penggunaan Alat

Universitas Sumatera Utara


27
untuk menggunakan sensor suhu infra merah MLX90614 perlu dilakukan langkah –
langkah sebagai berikut :

1. Tekan tombol power ke posisi ON, sehingga LCD dan alat sensor dalam keadaan
aktif.
2. Arahkan sensor Non Contact MLX90614 ketelapak tangan atau dahi seseorang
untuk mengetahui sensor sudah aktif atau belum. Jika sudah terlihat perubahan
nilai suhu pada ambien (lingkungan) dan objek, maka sensor MLX90614 sudah
aktif.
3. Siapkan objek yang hendak diukur suhunya. Contoh tubuh manusia
4. Letakkan alat berdekatan dengan objek yang akan diukur sehingga sensor suhu
MLX90614 dapat mengukur suhu objek secara stabil (tanpa goncangan / tidak
berubah posisi). Sebaiknya sensor suhu MLX90614 diletakan berdekatan dengan
jarak ideal kurang dari 5 cm dari objek.
5. Setelah penempatan objek dan alat dirasa sesuai, pengguna bisa memulai proses
pengukuran suhu. Jika ingin dilakukan perbandingan, pengguna dapat
menambahkan termometer suhu tubuh di dalam objek.
6. Jika proses pengukuran suhu dirasa cukup, pengguna bisa menekan tombol off
untuk menonaktifkan alat.

4.4 Pengujian Sensor Suhu IR Non-Kontak


PengujianSensor Suhu IR Non Kontakdilakukandengan membandingkan hasil
pengukuran dari alat pembanding yaitu thermometer digital Hasil pengujian Sensor
Suhu IR Non-Kontakdapatdilihatpada table dibawahini:

Tabel 4.1Pengujian Sensor Suhu TubuhManusia

No Nilai Nilai selisih Error (%) Deviasi


Sensor Thermometer
1 32,58 C 32,80 C -0,22 0,67 0,283
2 31,85 C 31,21 C 0,64 2,05 0,147

Universitas Sumatera Utara


28
3 30,11 C 30,05 C 0,06 2,91 0,286
4 29,41 C 29,98 C -0,57 1,90 0,458
5 28,78 C 28,10 C 0,68 2,41 0,334

Tabel 4.1 Hasil pengukuran suhu air yang dipanaskan dengan kompor gas Keterangan
table 4.1:

1. Waktu : Merupakan waktu yang dingunakan dalam merupakan waktu yang


dingunakan dalam pencatatan hasil pengukuran suhu dengan satuan menit
2. Termometer : Merupakan perubahan suhu objek yang ditampilkan oleh
termometer alkohol dengan satuan derajat celcius.
3. Selisih : Merupakan perubahan suhu terhadap temperature suhu terhadap objek
yang ditampilkan oleh sensor MLX90614 dengan satuan derajat celcius.
4. Error : Perbedaan antara nilai sensor suhu non conract
MLX90614 dan nilai suhu temperature dibagi dengan nilai suhu temperature
dibagi 100%.
5. Deviasi : Merupakan penyimpangan dari perbandingan hasil pengukuran suhu
objek menggunakan sensor suhu MLX90614 dengan termometer alkohol
(bernilai %).

40
suhu
30 suhu
temepratur
suhu  C

sensor; 28
e; 28
20

10

0 error; 02
deviasi;
5 10 15 20 25

Gambar 4.4 Hasil pengukuran suhu sensor dan suhu temperature

Universitas Sumatera Utara


29
Dari tabel tersebut bahwa dapat dikatakan semakin tinggi suhu tubuh seseorang maka
semakin rendah tingkat error dan deviasi suatu alat. Ini dapat dilihat dari table grafik
gambar 4.4.

Tabel 4.2 Waktu percobaan pada suhu tubuh

Waktu Nilai Sensor Nilai Selisih Error (%)


percobaan Thermometer
20:00:00 35,2 34,33 0,12 2,53
20:00:03 34,01 34,23 0,58 0,64
20:00:06 34,73 34,98 0,25 0,71
20:00:09 35,62 35,13 0,49 1,39
20:00:12 35,82 35,05 0,77 2,19
20:00:17 34,93 35,23 0,3 1,98
20:00:22 34,53 35,10 0,57 1,62
20:00:27 35,02 35,50 0,48 1,35
20:00:32 35,72 35,60 0,12 0,33
20:00:37 35,53 35,67 0,14 0,42

Keterangan tabel :

a) No : Nomor urut data percobaan


b) Waktu : keterangan waktu jam, menit dan detik secara real time ketika
percobaan dilakukan
c) Selisih : merupakan perbandingan antar nilai sensor dan nilai temperature
d) Error : Batas kesalahan dari nilai sensore dan temeparture.

Berdasarkan Tabel 4.2. didapatkan nilai batas kesalahan terbesar pada


pengukuran suhu non contak MLX90614 dengan waktu 3-5 menit dan dibandingkan
dengan termometer suhu tubuh adalah 2,53 C dan nilai batas kesalahan terkecilnya
didapatkan sebesar 0,33C.

Universitas Sumatera Utara


30
Tabel 4.3Jarak Percobaan Pada Suhu Tubuh

Jarak Nilai Sensor Nilai selisih Error (%)


Thermometer
34,47 35,09 0,62 1,76
34,61 35,14 0,53 1,50
5 cm 34,71 35,24 0,53 1,22
34,85 35,12 0,27 0,54
34,93 36,02 1,09 3,02
32,77 35,66 2,89 8,10
32,85 35,45 2,6 7,33
25 cm 33,61 35,51 1,9 5,35
33,65 35,41 1,76 4,97
33,51 35,64 2,13 9,90
31,95 35,72 3,77 10,47
31,97 35,10 3,13 9,75
50 cm 32,19 35,84 3,65 10,18
31,99 35,29 3,3 9,35
32,11 35,19 3,08 8,75

Keterangan tabel :

a) No : Nomor urut data percobaan


b) Waktu : keterangan waktu jam, menit dan detik secara real time ketika
percobaan dilakukan
c) Selisih : merupakan perbandingan antar nilai sensor dan nilai temperature
d) Error : Batas kesalahan dari nilai sensore dan temeparture.

Universitas Sumatera Utara


31
Dari tabel diatas selisi yang paling tinggi adalah berada di jarak 50 cm dengan
selisih terbesar 3,65 dan memiliki tingkat error yang paling besar yaitu 10,18 % ini dapat
disimpulkan bahwa semakin jauh jarak Sensor Suhu Non Contact MLX90614 terhadap
suatu objek maka tinggat ke akurat suatu sensor lebih tinggi.

4.5 Program
#include <Wire.h>

#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 10, 9, 8, 7);

void setup() {

Serial.begin(9600);

lcd.begin(16, 2);

Serial.println("Adafruit MLX90614 test");

mlx.begin();

void loop() {

Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());

Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");

Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());

Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");

Serial.println();

Universitas Sumatera Utara


32
lcd.clear();

lcd.setCursor(0, 0);

lcd.print("Suhu Tubuh Anda:");

lcd.setCursor(0, 1);

lcd.print(mlx.readObjectTempC());

lcd.setCursor(6, 1);

lcd.print("Celsius");

delay(1000);

Universitas Sumatera Utara


33
BAB V
KESIMPULAN DAN SARAN

5.1 Kesimpulan

Setelah melakukan tahap perancangan dan pembuatan sistem yang kemudian dilanjutkan
dengan tahap pengujian dan analisa maka dapat diambil kesimpulan sebagai berikut :

1. Sistem pengukuran suhu tanpa menyentuh objek menggunakan sensor


MLX90614 mampu membaca suhu tubuh sesorang dalam waktu yang lebih
cepat dari alat yang telah ada saat ini, yaitu sekitar 3 sampai 5 detik.
2. Bahasa C sebagai bahasa pemrograman Arduino pada sistem mudah dimengerti
dan memiliki syntax yang sederhana dibandingkan dengan bahasa pemrograman
lain menggunakan mikrokontroler.
3. Kemampuana pada sistem pengukuran suhu tanpa menyentuh objek dengan
menggunakan sensor MLX90614 maksimalnya bisa diukur dengan jarak 50 cm,
tetapi lebih akurat pada jarak 5 cm.

5.2 Saran

Penulis menyadari bahwa alat ini masih sangat membutuhkan banyak pengembangan
baik dari segi penggunaan dan sistem kerja, maka penulis mempunyai beberapa saran
demi kemajuan dan pengembangan alat ini yakni :

1. Untuk kedepannya fungsi dari alat ini diharapkan bisa diperluas lagi supaya
tidak hanya mengukur suhu dengan jarak 50 cm saja, tetapi bisa mengukur suhu
dengan jarak lebih dari 50 m.

Universitas Sumatera Utara


34
2. pengukuran suhu oleh sensor suhu MLX90614 supaya sensor suhu MLX90614
bisa dikalibrasi berdasarkan nilai error dari suatu objek. Dan alat tersebut dapat
Kalibrasi supaya pengukuran suhu lebih akurat.
3. Untuk kedepannya diharapkan alat ini dapat dikembangkan lagi dengan
menambahkan keluaran tidak hanya melalui LCD saja tetapi juga dapat
ditambahkan output suara.

Universitas Sumatera Utara


35
DAFTAR PUSTAKA

N. P. Y. N, J. Pebralia, and Y. Citra, “Studi Penerapan Sensor MLX90614 Sebagai


Pengukur Suhu Tinggi secara Non-kontak Berbasis Arduino dan Labview,” vol. 2015,
no. Snips, p. 90, 2015

Malvino, A. P. 1992. Prinsip-prinsip Elektronika. Jakarta: Erlangga Ahmad, B.A. 2003.


Workshop Dasar Aplikasi Mikrokontroler. Jakarta: Erlangga.

Suryatmo, F. 1986. Teknik Listrik Pengukuran. Jakarta : Bina aksara Flink, R.J dan O.G
Brink. 1984. Dasar-dasar Ilmu Instrumen. Jakarta : Bina cipta.

Suhata. 2005. Aplikasi Mikrokontroler Sebagai Pengendali Peralatan


Elektronika.Jakarta: Elex Media Komputindo.

https://teknikelektronika.com/jenis-ic-voltage-regulator-pengatur-tegangan/

Diakses : 15 Juli 2020

http://portal.fmipa.itb.ac.id/snips2015/files/snips_2015_jesi_pebralia_2eb9ac75d6883b2
52444187ad2cde6b9.pdf

Diakses : 15 Juli 2020

http://eprints.umm.ac.id/39379/3/BAB%202.pdf

Diakses : 1 Agustus 2020

https://repository.usd.ac.id/34082/2/135114047_full.pdf

Diakses : 1 Agustus 2020

Universitas Sumatera Utara


36
LAMPIRAN

Universitas Sumatera Utara


37
Arduino Nano (V2.3)

User Manual

Universitas Sumatera Utara


38
Released under the Creative Commons Attribution Share-Alike 2.5

License http://creativecommons.org/licenses/by-sa/2.5/

More information:

www.arduino.cc
Rev. 2.3

Universitas Sumatera Utara


39
Arduino Nano Pin Layout

D1/TX (1) (30) VIN


D0/RX (2) (29) GND
RESET (3) (28) RESET
GND (4) (27) +5V
D2 (5) (26) A0
D3 (6) (25) A1
D4 (7) (24) A2
D5 (8) (23) A3
D6 (9) (22) A4
D7 (10) (21) A5
D8 (11) (20) A6
D9 (12) (19) A7
D10 (13) (18) AREF
D11 (14) (17) 3V3
D12 (15) (16) D13

Universitas Sumatera Utara


40
Pin No. Name Type Description
1-2, 5-16 D0-D13 I/O Digital input/output port 0 to 13

3, 28 RESET Input Reset (active low)

4, 29 GND PWR Supply ground

17 3V3 Output +3.3V output (from FTDI)

18 AREF Input ADC reference

19-26 A7-A0 Input Analog input channel 0 to 7

27 +5V Output or +5V output (from on-board regulator) or


Input +5V (input from external power supply)

30 VIN PWR Supply voltage

Universitas Sumatera Utara


41
Arduino Nano Mechanical Drawing

Arduino Nano Bill of Material

Item!Number! Qty.! Ref.!Dest.! Description!

Capacitor,!0.1uF!50V!1
1! 5! C1,C3,C4,C7,C9! Ceramic!X7R!0805!

Capacitor,!4.7uF!10V!1
2! 3! C2,C8,C10! Tantalum!Case!A!

Capacitor,!18pF!50V!5%
3! 2! C5,C6! Ceramic!NOP/COG!080
4! 1! D1! Diode,!Schottky!0.5A!2
5! 1! J1,J2! Headers,!36PS!1!Row!

Connector,!Mini"B!Rece
6! 1! J4! Rt.!Angle!

7! 1! J5! Headers,!72PS!2!Rows!

LED,!Super!Bright!RED!
100mcd!640nm!120deg
!
8! 1! LD1! 0805!

LED,!Super!Bright!GREE
50mcd!570nm!110degr

9! 1! LD2! 0805!
LED,!Super!Bright!ORAN
!
160mcd!601nm!110deg
!

10! 1! LD3! 0805!

LED,!Super!Bright!BLUE
80mcd!470nm!110degr

Universitas Sumatera Utara


42
11! 1! LD4! 0805! LTST"C170TBKT! Lite"On!Inc! 160"1579"1

Resistor!Pack,!1K!+/"5%!
12! 1! R1! 62.5mW!4RES!SMD! YC164"JR"071KL! Yageo! YC164J"1.0K
Features and Benefits
Resistor!Pack,!680!+/"5%!
❑ Small size, lowcost
13! 1! R2! 62.5mW!4RES!SMD!
❑ YC164"JR"07680RL!
Easy tointegrate Yageo! YC164J"680C
❑ Factory calibrated in wide temperaturerange:
-40…+125˚C for sensor temperature and
Switch,!Momentary!Tact!
-70…+380˚C for object temperature.
14! 1! SW1! SPST!150gf!3.0x2.5mm!
❑ B3U"1000P!
High accuracy Omron!
of 0.5°C over wide temperaturerange SW1020CT
(0…+50°C for both Ta andTo)
IC,!Microcontroller!RISC!
❑ High (medical) accuracycalibration
❑ Measurement resolution of0.02°C
16kB!Flash,!0.5kB!EEPROM
❑ Single and dual zoneversions
,! ❑ SMBus compatible digitalinterface
❑ Customizable PWM output for continuousreading
15! 1! U1! 23!I/O!Pins! ❑ ATmega168"20AU!
Available in 3V and 5Vversions Atmel! 556"ATMEGA1
❑ Simple adaptation for 8…16Vapplications
IC,!USB!to!SERIAL!UART!28
❑ Sleep mode for reduced powerconsumption
! ❑ Different package options for applications
andmeasurementsversatility
16! 1! U2! Pins!SSOP! ❑ FT232RL!
Automotivegrade FTDI! 895"FT23

IC,!Voltage!regulator!5V,!
Ordering Information
595"UA78M05
17! 1! U3! 500mA!SOT"223! UA78M05CDCYRG3! TI! !

Cystal,!16MHz!+/"20ppm!
18! 1! Y1! HC"49/US!Low!Profile! ABL"16.000MHZ"B2! Abracon! 815"ABL"1

43

Universitas Sumatera Utara


Applications Examples ❑ Automotive blind angledetection
❑ Industrial temperature control of movingparts
❑ High precision non- ❑ Temperature control in printers andcopiers
contact temperaturemeasurements ❑ Home appliances with temperaturecontrol
❑ Thermal Comfort sensor ❑ Healthcare
❑ Livestockmonitoring
for MobileAirConditioning
❑ Movementdetection
controlsystem
❑ Multiple zone temperature control – up to
❑ Temperature sensing element
127sensors can be read via common 2wires
for residential,commercial and industrial
❑ Thermal relay /alert
building air conditioning ❑ Body temperaturemeasurement
❑ Windshielddefogging
Part No. Temperature Package - OptionCode Standard Packing
Code Code -X X X (1) part form
MLX90614 SF (TO-39) (2)(3)
E (- -000 -TU
40°C...85°C)
K(-
40°C…125°C)
(1) Supply Voltage/ Accuracy A (2) Number of thermopiles: A (3) Packageoptions:
-5V – single zone A – Standard package B
B -3V B – dual zone – Reserved
C -Reserved C – gradientcompensated* C –35°FOV
D - 3V medicalaccuracy
D/E – Reserved F
–10°FOV
G – Reserved
H – 12°FOV (refractive
Example: lens) I – 5°FOV

MLX90614ESF-BAA-000-TU * : See page2

1 Functionaldiagra 2 GeneralDescription
m
The MLX90614 is an Infra Red thermometer for
MLX90614Axx: Vdd=4.5 ....... V non contact temperature measurements. Both the
J1
1MLX90614
IR sensitive thermopile detector chip and the signal
SCL
PWM
SCL U1
4
conditioning ASSP are integrated in the same TO-
Vss
SDA 2SDA Vz 39 can.
Vdd
C1 Thanks to its low noise amplifier, 17-bit ADC
Vdd 3
and powerful DSP unit, a high accuracy and
GND
resolution of the thermometer is achieved.
CON1 0.1 uF The thermometer comes factory calibrated with a
digital
C1valueandtypemaydiffer in
different applications for
PWM and SMBus (System Management Bus) output.
optimumEMC As a standard, the 10-bit PWM is configured to
continuously transmit the measured temperature in
MLX90614 connection to SMBus
range of -20…120˚C, with an output resolution
Figure 1: Typical application of0.14˚C.
schematics The factory default POR setting is SMBus.

44

Universitas Sumatera Utara


General description (continued)
The MLX90614 is built from 2 chips developed and manufactured by Melexis:
• The Infra Red thermopile detectorMLX81101
• ThesignalconditioningASSPMLX90302,speciallydesignedtoprocesstheoutputofIRsensor. The device is
available in an industry standard TO-39package.
Thanks to the low noise amplifier, high resolution 17-bit ADC and powerful DSP unit of
MLX90302 high accuracy and resolution of the thermometer is achieved. The calculated object
and ambient temperatures are available in RAM of MLX90302 with resolution of 0.01˚C. They
are accessible by 2 wire serial SMBus compatible protocol (0.02°C resolution) or via 10-bit
PWM (Pulse Width Modulated) output of the device.
The MLX90614 is factory calibrated in wide temperature ranges: -40…125˚C for the
ambient temperature and -70…380˚C for the object temperature.
The measured value is the average temperature of all objects in the Field Of View of the
sensor. The MLX90614 offers a standard accuracy of ±0.5˚C around room temperatures. A
special version for medical applications exists offering an accuracy of ±0.2˚C in a limited
temperature range around the human body temperature.
Itisveryimportantfortheapplicationdesignertounderstandthattheseaccuraciesareonlyguaran
teedand achievable when the sensor is in thermal equilibrium and under isothermal conditions
(there are notemperature differences across the sensor package). The accuracy of the
thermometer can be influenced bytemperature differences in the package induced by causes like
(among others): Hot electronics behind thesensor, heaters/coolers behind or beside the sensor or
by a hot/cold object very close to the sensor that notonly heats the sensing element in the
thermometer but also the thermometerpackage.
This effect is especially relevant for thermometers with a small FOV like the xxC and
xxF as the energyreceived by the sensor from the object is reduced. Therefore, Melexis has
introduced the xCx version of theMLX90614. In these MLX90614xCx, the thermal gradients are
measured internally and the measuredtemperature is compensated for them. In this way, the xCx
version of the MLX90614 is much less sensitive tothermal gradients, but the effect is not totally
eliminated. It is therefore important to avoid the causes of thermalgradients as much as possible
or to shield the sensor from them.
As a standard, the MLX90614 is calibrated for an object emissivity of 1. It can be easily
customized by the customer for any other emissivity in the range 0.1…1.0 without the need of
recalibration with a black body.
The 10-bit PWM is as a standard configured to transmit continuously the measured object
temperature for an object temperature range of -20…120˚C with an output resolution of 0.14˚C.
The PWM can be easily customized for virtually any range desired by the customer by changing
the content of 2 EEPROM cells. This has no effect on the factory calibration of the device.
The PWM pin can also be configured to act as a thermal relay (input is To), thus allowing
for an easy and cost effective implementation in thermostats or temperature (freezing / boiling)
alert applications. The temperature threshold is user programmable. In a SMBus system this
45

Universitas Sumatera Utara


feature can act as a processor interrupt that can trigger reading all slaves on the bus and to
determine the precise condition.
The thermometer is available in 2 supply voltage options: 5V compatible or 3V (battery)
compatible. The 5V can be easily adopted to operate from a higher supply voltage (8…16V, for
example) by use of few external components (refer to “Applications information” section for
details).
An optical filter (long-wave pass) that cuts off the visible and near infra-red radiant flux
is integrated in the package to provide ambient and sunlight immunity. The wavelength pass
band of this optical filter is from
5.5 till 14µm (except for xCH and xCI type of devices which incorporate uncoated germanium lens).

46

Universitas Sumatera Utara


3 Table ofContents
1 Functionaldiagram ................................................................................................................................... 1
2 GeneralDescription .................................................................................................................................. 1
3 TableofContents ...................................................................................................................................... 3
4 GlossaryofTerms ...................................................................................................................................... 4
5 Maximumratings...................................................................................................................................... 4
6 Pin definitionsand descriptions ............................................................................................................... 5
7 ElectricalSpecifications ............................................................................................................................ 6
7.1MLX90614Axx .................................................................................................................................... 6
7.2MLX90614Bxx,MLX90614Dxx ............................................................................................................ 8
8 Detaileddescription ............................................................................................................................... 10
8.1 Blockdiagram ................................................................................................................................... 10
8.2 Signalprocessingprinciple ................................................................................................................. 10
8.3 Blockdescription............................................................................................................................... 11
8.3.1 Amplifier ..................................................................................................................................... 11
8.3.2 Supply regulatorandPOR ............................................................................................................ 11
8.3.3 EEPROM ..................................................................................................................................... 11
8.3.4 RAM............................................................................................................................................ 14
8.4 SMBus compatible2-wire protocol ................................................................................................... 14
8.4.1 Functionaldescription ................................................................................................................. 14
8.4.2 Differences with the standard SMBus specification(reference[1]) ......................................... 15
8.4.3 Detaileddescription .................................................................................................................... 15
8.4.4 Bittransfer .................................................................................................................................. 16
8.4.5 Commands ................................................................................................................................. 17
8.4.6 SMBuscommunicationexamples ................................................................................................ 17
8.4.7 Timingspecification..................................................................................................................... 18
8.4.8 SleepMode ................................................................................................................................. 19
8.4.9 MLX90614 SMBusspecificremarks .............................................................................................. 20
8.5 PWM ...................................................................................................................................... 21
8.5.1 SinglePWMformat ...................................................................................................................... 22
8.5.2 ExtendedPWMformat ................................................................................................................ 23
8.5.3 Customizing the temperature range forPWM output ................................................................ 24
8.6 Switching Between PWM / Thermal relay andSMBuscommunication ............................................. 26
8.6.1 PWMisenabled ........................................................................................................................... 26
8.6.2 Requestcondition ....................................................................................................................... 26
8.6.3 PWMisdisabled ........................................................................................................................... 26
8.7 Computation of ambient andobjecttemperatures ........................................................................... 27
8.7.1 Ambienttemperature Ta ............................................................................................................. 27
8.7.2 ObjecttemperatureTo ................................................................................................................ 27
8.7.3 Calculationflow ........................................................................................................................... 28
8.8 Thermalrelay .................................................................................................................................... 30
9 UniqueFeatures ..................................................................................................................................... 31
10 PerformanceGraphs ............................................................................................................................. 32
10.1 Temperature accuracy of the MLX90614 ....................................................................................... 32
10.1.1 Standardaccuracy ..................................................................................................................... 32
10.1.2 Medicalaccuracy ....................................................................................................................... 33
10.1.3 Temperature reading dependence on VDD ................................................................................ 33
10.2 Field OfView(FOV) .......................................................................................................................... 35
11 ApplicationsInformation ...................................................................................................................... 39
11.1 Use of the MLX90614 thermometer inSMBusconfiguration ........................................................... 39

47

Universitas Sumatera Utara


11.2 Use of multiple MLX90614s inSMBusconfiguration ........................................................................ 39
11.3 PWMoutputoperation .................................................................................................................... 40
11.4 Thermal alert/thermostat .............................................................................................................. 40
11.5 High voltagesourceoperation ......................................................................................................... 41
12 ApplicationComments .......................................................................................................................... 42
13 Standard information regarding manufacturability of Melexis products with differentsolderingprocesses44
14 ESDPrecautions .................................................................................................................................... 44
15 FAQ ...................................................................................................................................................... 45
16 PackageInformation ............................................................................................................................. 47
16.1MLX90614xxA ................................................................................................................................ 47
16.2MLX90614xCC................................................................................................................................ 47
16.3MLX90614xCF ................................................................................................................................ 48
16.4MLX90614xCH ............................................................................................................................... 48
16.5MLX90614xCI ................................................................................................................................. 49
16.6 Partmarking .................................................................................................................................... 49
16.7 Operating and storagehumidityrange ............................................................................................ 49
17 Tableoffigures ...................................................................................................................................... 50
18 References ........................................................................................................................................... 51
19 Disclaimer ............................................................................................................................................ 51

48

Universitas Sumatera Utara


4 Glossary ofTerms
PTAT Proportional To Absolute Temperature sensor (package temperature)
POR Power On Reset
HFO High Frequency Oscillator (RC type)
DSP Digital Signal Processing
FIR Finite Impulse Response. Digital filter
IIR Infinite Impulse Response. Digital filter
IR Infra-Red
PWM Pulse With Modulation
DC Duty Cycle (of the PWM) ; Direct Current (for settled conditions specifications)
FOV Field Of View
SDA,SCL Serial DAta, Serial CLock – SMBus compatible communication pins
Ta Ambient Temperature measured from the chip – (the package temperature)
To Object Temperature, ‘seen’ from IR sensor
ESD Electro-Static Discharge
EMC Electro-Magnetic Compatibility
ASSP Application Specific Standard Product
TBD To Be Defined

Note: sometimes the MLX90614xxx is referred as “the module”.

5 Maximumratings
Parameter MLX90614ESF-Axx MLX90614ESF-Bxx MLX90614KSF-Axx
MLX90614ESF-Dxx
Supply Voltage, VDD (over voltage) 7V 5V 7V
Supply Voltage, VDD (operating) 5.5 V 3.6V 5.5V
Reverse Voltage 0.4 V
Operating Temperature Range, TA -40…+85°C -40…+125°C
Storage Temperature Range, TS -40…+125°C -40…+125°C
ESD Sensitivity (AEC Q100 002) 2kV
DC current into SCL / Vz (Vz mode) 2 mA
DC sink current, SDA / PWM pin 25 mA
DC source current, SDA / PWM pin 25 mA
DC clamp current, SDA / PWM pin 25 mA
DC clamp current, SCL pin 25 mA

Table 1: Absolute maximum ratings for MLX90614

Exceeding the absolute maximum ratings may cause permanent damage.


Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.

49

Universitas Sumatera Utara


6 Pin definitions anddescriptions

4 - VSS 1 - SCL /Vz

3-VDD 2 - SDA /PWM

Bottom view
Figure 2: Pin description

Pin Name Function


Serial clock input for 2 wire communications protocol. 5.7V zener is available at this
SCL / Vz pin for connection of external bipolar transistor to MLX90614Axx to supply the device
from external 8 …16V source.
Digital input / output. In normal mode the measured object temperature is available at
SDA / PWM this pin Pulse Width Modulated.
In SMBus compatible mode the pin is automatically configured as open drain NMOS.
VDD External supply voltage.
VSS Ground. The metal can is also connected to this pin.

Table 2: Pin description MLX90614

Note: for +12V (+8…+16V) powered operation refer to the Application information section. For EMC and
isothermalconditionsreasonsitishighlyrecommendednottouseanyelectricalconnectiontothemetalcan except by the
VSSpin.

WiththeSCL/VzandPWM/SDApinsoperatedin2-wireinterfacemode,theinputSchmidttriggerfunctionis automatically
enabled.

50

Universitas Sumatera Utara


7 ElectricalSpecifications

7.1 MLX90614Axx

All parameters are valid for TA = 25 ˚C, VDD =5V (unless otherwise specified)

Parameter Symbol Test Conditions Min Typ Max Units

Supplies
External supply VDD 4.5 5 5.5 V
Supply current IDD No load 1.3 2 mA
Supply current No load, erase/write EEPROM
IDDpr 1.5 2.5 mA
(programming) operations
Zener voltage Vz Iz = 75…1000µA (Ta=room) 5.5 5.7 5.9 V
Iz = 70…1000µA,
Zener voltage Vz(Ta) 5.15 5.7 6.24 V
full temperature range
Power On Reset
POR level VPOR_up Power-up (full temp range) 1.4 1.75 1.95 V
POR level VPOR_down Power –down (full temp range) 1.3 1.7 1.9 V
POR hysteresis VPOR_hys Full temp range 0.08 0.1 1.15 V
VDD rise time (10% to 90%
TPOR Ensure POR signal 20 ms
of specified supply voltage)
Output valid
Tvalid After POR 0.25 s
(result in RAM)
Pulse width modulation1
PWM resolution PWMres Data band 10 bit
Factory default, internal
PWM output period PWMT,def 1.024 ms
oscillator factory calibrated
Internal oscillator factory
calibrated, over the entire
PWM period stability dPWMT -10 +10 %
operation range andsupply
voltage
Output high Level PWMHI Isource = 2 mA VDD-0.2 V
Output low Level PWMLO Isink = 2 mA VSS+0.2 V
Output drive current IdrivePWM Vout,H = VDD - 0.8V 7 mA
Output sink current IsinkPWM Vout,L = 0.8V 13.5 mA

Continued on next page

51

Universitas Sumatera Utara


Parameter Symbol Test Conditions Min Typ Max Units

SMBus compatible 2-wire interface2


Input high voltage VIH (Ta, V) Over temperature and supply 3 V
Input low voltage VIL (Ta, V) Over temperature and supply 0.6 V
Over temperature and supply,
Output low voltage VOL 0.2 V
Isink = 2mA
SCL leakage ISCL, leak VSCL =4V, Ta=+85°C 30 µA
SDA leakage ISDA, leak VSDA =4V, Ta=+85°C 0.3 µA
SCL capacitance CSCL 10 pF
SDA capacitance CSDA 10 pF
Slave address SA Factory default 5A hex
Wake up request twake SDA low 33 ms
SMBus Request tREQ SCL low 1.44 ms
Timeout, low Timeout,L SCL low 27 33 ms
Timeout, high Timeout,H SCL high 45 55 µs
Acknowledge setup time Tsuac(MD) 8-th SCL falling edge, Master 1.5 µs
Acknowledge hold time Thdac(MD) 9-th SCL falling edge, Master 1.5 µs
Acknowledge setup time Tsuac(SD) 8-th SCL falling edge, Slave 2.5 µs
Acknowledge hold time Thdac(SD) 9-th SCL falling edge, Slave 1.5 µs
EEPROM
Data retention Ta = +85°C 10 years
Erase/write cycles Ta = +25°C 100,000 Times
Erase/write cycles Ta = +125°C 10,000 Times
Erase cell time Terase 5 ms
Write cell time Twrite 5 ms

Table 3: Electrical specification MLX90614Axx

Notes:AllthecommunicationandrefreshratetimingsaregivenforthenominalcalibratedHFOfrequencyand will vary with this


frequency’svariations.

1. With large capacitive load lower PWM frequency is recommended. Thermal relay output (when
configured)hasthePWMDCspecificationandcanbeprogrammedaspush-pull, or NMOSopendrain. PWMis free-running,
power-up factory default is SMBus, refer to section 8.6, “Switching between PWM and SMBus communication” for
moredetails.
2. For SMBus compatible interface on 12V application refer to Application information section. SMBus
compatible interface is described in details in the SMBus detailed description section. Maximum number of MLX90614
devices on one bus is 127, higher pull-up currents are recommended for higher number of devices, faster bus data
transfer rates, and increased reactive loading of thebus.
MLX90614 is always a slave device on the bus. MLX90614 can work in both low-power and high-power SMBus communication.

All voltages are referred to the Vss (ground) unless otherwise noted. Sleep

mode is not available on the 5V version (MLX90614Axx).

52

Universitas Sumatera Utara


7.2 MLX90614Bxx,MLX90614Dxx

All parameters are valid for TA = 25 ˚C, VDD =3V (unless otherwise specified)

Parameter Symbol Test Conditions Min Typ Max Units

Supplies
External supply VDD 2.6 3 3.6 V
Supply current IDD No load 1.3 2 mA
Supply current No load, erase / write EEPROM
(programming) IDDpr operations 1.5 2.5 mA

Sleep mode current Isleep no load 1 2.5 5 µA


Sleep mode current Isleep Full temperature range 1 2.5 6 µA
Power On Reset
POR level VPOR_up Power-up (full temp range) 1.4 1.75 1.95 V
POR level VPOR_down Power –down (full temp range) 1.3 1.7 1.9 V
POR hysteresis VPOR_hys Full temp range 0.08 0.1 1.15 V
VDD rise time
(10% to 90% of TPOR Ensure POR signal 20 ms
specified supply voltage)

Output valid Tvalid After POR 0.25 s


Pulse width modulation1
PWM resolution PWMres Data band 10 bit
Factory default, internal
PWM output period PWMT,def oscillator factory calibrated 1.024 ms

Internal oscillator factory


calibrated, over the entire
PWM period stability dPWMT -10 +10 %
operation range and supply
voltage
Output high Level PWMHI Isource = 2 mA VDD-0.25 V
Output low Level PWMLO Isink = 2 mA VSS+0.25 V
Output drive current IdrivePWM Vout,H = VDD - 0.8V 4.5 mA
Output sink current IsinkPWM Vout,L = 0.8V 11 mA

Continued on next page

53

Universitas Sumatera Utara


Parameter Symbol Test Conditions Min Typ Max Units

SMBus compatible 2-wire interface2


Input high voltage VIH(Ta,V) Over temperature and supply VDD-0.1 V
Input low voltage VIL(Ta,V) Over temperature and supply 0.6 V
Over temperature and supply,
Output low voltage VOL 0.25 V
Isink = 2mA
SCL leakage ISCL,leak VSCL =3V, Ta=+85°C 20 µA
SDA leakage ISDA,leak VSDA =3V, Ta=+85°C 0.25 µA
SCL capacitance CSCL 10 pF
SDA capacitance CSDA 10 pF
Slave address SA Factory default 5A hex
Wake up request twake SDA low 33 ms
SMBus Request tREQ SCL low 1.44 ms
Timeout,low Timeout,L SCL low 27 33 ms
Timeout, high Timeout,H SCL high 45 55 µs
Acknowledge setup time Tsuac(MD) 8-th SCL falling edge, Master 1.5 µs
Acknowledge hold time Thdac(MD) 9-th SCL falling edge, Master 1.5 µs
Acknowledge setup time Tsuac(SD) 8-th SCL falling edge, Slave 2.5 µs
Acknowledge hold time Thdac(SD) 9-th SCL falling edge, Slave 1.5 µs
EEPROM
Data retention Ta = +85°C 10 years
Erase/write cycles Ta = +25°C 100,000 Times
Erase/write cycles Ta = +125°C 10,000 Times
Erase cell time Terase 5 ms
Write cell time Twrite 5 ms

Table 4: Electrical specification MLX90614Bxx, Dxx

Note: refer to MLX90614Axx notes.

54

Universitas Sumatera Utara


8 Detaileddescription

8.1 Blockdiagram

81101

OPA ADC DSP PWM

STATEMACHINE

Voltage
90302 Regulator

Figure 3: Block diagram

8.2 Signal processingprinciple

The operation of the MLX90614 is controlled by an internal state machine, which


controls the measurements and calculations of the object and ambient temperatures and does the
post-processing of the temperatures to output them through the PWM output or the SMBus
compatible interface.
TheASSPsupports2IRsensors(secondonenotimplementedintheMLX90614xAx).Theoutput
ofthe IR sensors is amplified by a low noise low offset chopper amplifier with programmable
gain, converted by a Sigma Delta modulator to a single bit stream and fed to a powerful DSP for
further processing. The signal is treated by programmable (by means of EEPROM contend) FIR
and IIR low pass filters for further reduction of the band width of the input signal to achieve the
desired noise performance and refresh rate. The output of the IIR filter is the measurement result
and is available in the internal RAM. 3 different cells are available: One for the on-board
temperature sensor and 2 for the IR sensors.
Based on results of the above measurements, the corresponding ambient temperature Ta
and object temperatures Toare calculated. Both calculated temperatures have a resolution of
0.01˚C. The data for Ta and Tocan be read in two ways: Reading RAM cells dedicated for this
purpose via the 2-wire interface (0.02°C resolution, fixed ranges), or through the PWM digital
output (10 bit resolution, configurable range).
55

Universitas Sumatera Utara


In the last step of the measurement cycle, the measured Ta and To are rescaled to the desired output
resolution of the PWM) and the recalculated data is loaded in the registers of the PWM state
machine, which creates a constant frequency with a duty cycle representing the measured data.

56

Universitas Sumatera Utara


8.3 Blockdescription

8.3.1 Amplifier

A low noise, low offset amplifier with programmable gain is used for amplifying the IR sensor
voltage.
By carefully designing the input modulator and balanced input impedance, the max offset of
the system is 0.5µV.

8.3.2 Supply regulator andPOR

Themodulecanoperatefrom3differentsup
plies: VDD = 5V
€MLX90614Axx
VDD = 3.3V € MLX90614Bxx (battery or regulated supply)
VDD=8…16V€MLX90614Axxfewexternalcomponentsarenecessarypleasereferto“
Applications information”sectionforinformationaboutadoptinghighervoltagesupplies.
ThePowerOnReset (POR)isconnectedtoVdd supply.Theon-chipPOR
circuitprovidesanactive(high)level of the POR signal when the Vdd voltage rises above
approximately 0.5V and holds the entire MLX90614 in reset until the Vdd is higher than the
specified POR threshold VPOR . During the time POR is active, the POR signal is available as an
open drain at the PWM/SDA pin. After the MLX90614 exits the POR condition, the function
programmed in EEPROM takes precedence for thatpin.

8.3.3 EEPROM

AlimitednumberofaddressesintheEEPROM memorycanbechangedby
thecustomer.Thewhole EEPROM can be read through the SMBusinterface.

EEPROM (32X16)
Name Address Write access
Tomax 0x00 Yes
Tomin 0x01 Yes
PWMCTRL 0x02 Yes
Ta range 0x03 Yes
Emissivity correction coefficient 0x04 Yes
Config Register1 0x05 Yes
Melexis reserved 0x06 No
… … …
Melexis reserved 0x0D No
SMBus address (LSByte only) 0x0E Yes
Melexis reserved 0x0F Yes
Melexis reserved 0x10 No
… … …
Melexis reserved 0x18 No
Melexis reserved 0x19 Yes
Melexis reserved 0x1A No
Melexis reserved 0x1B No
ID number 0x1C No
ID number 0x1D No
ID number 0x1E No
ID number 0x1F No

57

Universitas Sumatera Utara


Table 5: EEPROM table
Theaddresses Tomax, TominandTarangeareforcustomerdependent object
andambienttemperature ranges. For details see section 8.5.3 below in thisdocument
The address Emissivity contains the object emissivity (factory default 1.0 = 0xFFFF), 16 bit.
Emissivity = dec2hex[ round( 65535 x s) ]
Wheredec2hex[round(X)]representsdecimaltohexadecimalconversionwithround-
offtonearestvalue(not truncation). In this case the physical emissivity values are s= 0.1…1.0.
Erase (write 0) must take place before write of desired data is made.

58

Universitas Sumatera Utara


PWM period configuration: Period in extended PWM mode is twice the period in single PWM mode.
In single PWM mode period is T = 1.024*P [ms], where P is the number, written in bits 15…9
PWMCTRL. Maximum period is then 131.072 ms for single and 262.144 ms for extended.
These values are typical and depend on the on-chip RC oscillator absolute value. The duty cycle
must be calculated instead of working only with the high time only in order to avoid errors from
the period absolute value deviations.
The address PWMCTRL consists of control bits for configuring the PWM/SDA pin as follows:
15 14 13 12 11 10 9 87654 3 2 1 0 PWM control bitmeaning
0 - PWM extendedmode
1 - PWM singlemode
0 - PWM mode disabled(EN_PWM)
1 - PWM mode enabled(EN_PWM)
0 - SDA pin configured as Open Drain(PPODB)
1 - SDA pin configured as Push-Pull(PPODB)
0 - PWM mode selected(TRPWMB)
1 - Thermal relay mode selected(TRPWMB)
- PWM repetition number 0…62 step 2
- PWM period 1.024*ms (Single PWM mode) or 2.048*ms (Extendet PWM mode)
multiplied by the number written in this place (128 in case the number is 0)

* Values are valid for nominal HFO frequency

Table 6: PWM control bits


The address ConfigRegister1 consists of control bits for configuring the analog and digital parts:
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Config register bitmeaning

1 0 0 - IIR (100%) a1=1, b1=0

1 0 1 - IIR (80%) a1=0.8, b1=0.2

1 1 0 - IIR (67%) a1=0.666,b1=0.333

1 1 1 - IIR (57%) a1=0.571,b1=0.428

0 0 0 - IIR (50%) a1=0.5, b1=0.5

0 0 1 - IIR (25%) a1=0.25, b1=0.75

0 1 0 - IIR (17%) a1=0.166(6), b1=0.83(3)

0 1 1 - IIR (13%) a1=0.125, b1=0.875

0 - Repeat sensor test"OFF"


1 - Repeat sensor test"ON"
0 0 - Ta, Tobj1

0 1 - Ta,Tobj2
1 0 -Tobj2
1 1 - Tobj1, Tobj2

0 - Single IRsensor
1 - Dual IRsensor
0 0 0 - GAIN = 1 - Amplifier is bypassed
0 - Positive sign ofKs
0 0 1 - GAIN =3
1 - Negative sign ofKs
0 1 0 - GAIN =6
0 0 0 - FIR = 8 notrecommended
0 1 1 - GAIN = 12,5
1 0 0 - GAIN = 25
0 0 1 - FIR = 16 notrecommended
1 0 1 - GAIN = 50
1 1 0 - GAIN = 100
0 1 0 - FIR = 32 notrecommended
1 1 1 - GAIN = 100
0 - Positivesign of
0 Kt2
1 1 - FIR = 64 not recommended 1 0 0 -
1 - Negativesign FIR
of Kt2
=128
0 -Enablesensortest
1 -Disablesensort est
1 0 1 - FIR =256
Note: The following bits / registers should not be altered (except with special tools – contact Melexis for such tools
1 1 0 - FIR =512
availability) in order to keep the factory calibration relevant:
1 1 1 - FIR = 1024

59

Universitas Sumatera Utara


Ke [15...0]; Config Register1 [14...11;7;3]; addresses 0x0F and 0x19.

Table 7: Configuration register 1


Check www.melexis.com for latest application notes with details on EEPROM settings.

60

Universitas Sumatera Utara


On-chip filtering and settling time:

TheMLX90614featuresconfigurableon-
chipdigitalfilters.Theyallowcustomizationforspeedornoise.
Factorydefaultconfigurationsandthetypicalsettlingtimeandnoiseforthe
MLX90614familyaregivenbelow.
Device Settling time, sec Typical noise, °C rms Spike limit
MLX90614AAA, BAA, DAA 0.10 0.05 100%
MLX90614ABA, BBA 0.14 0.07 100%
MLX90614ACC, BCC 0.14 0.18 100%
MLX90614ACF, BCF 1.33 0.10 50%
MLX90614DCH, DCI, BCH, BCI 0.65 0.10 80%

Table 8: factory default IIR and FIR configuration, settling time and typical noise
Details on the filters are given in the application note “Understanding MLX90614 on-
chip digital signal filters” available from www.melexis.com.
Theevaluationboard,
EVB90614supportedbyPCSWallowseasyconfigurationofthefilters,whilenot requiring in-depth
understanding of theEEPROM.
The available filter settings and the settling times are listed below. Settling time depends
on three configurations: single / dual zone, IIR filter settings and FIR filter settings. The FIR
filter has a straight forward effect on noise (4 times decreasing of filter strength increases the
noise 2 times and vice versa. The IIR filter
providesanadditional,spikelimitingfeature.Spikelimitdefinesthelevel
ofmagnitudetowhichthespikewould be limited – for example, 25% denotes that if a 20°C
temperature delta spike is measured the temperature reading by the MLX90614 will spike
only5°C.
Settling time (s) Settling time (s)
IIR setting FIR setting Spike limit
90614xAx 90614xBx, 90614xCx
xxx 000…011 Not recommended
100 100 0.04 0.06 100.00%
100 101 0.05 0.07 100.00%
100 110 0.06 0.10 100.00%
100 111 0.10 0.14 100.00%
101 100 0.12 0.20 80.00%
101 101 0.16 0.24 80.00%
101 110 0.22 0.34 80.00%
101 111 0.35 0.54 80.00%
110 100 0.24 0.38 66.70%
110 101 0.30 0.48 66.70%
110 110 0.43 0.67 66.70%
110 111 0.70 1.10 66.70%
111 100 0.26 0.42 57.00%
111 101 0.34 0.53 57.00%
111 110 0.48 0.75 57.00%
111 111 0.78 1.20 57.00%
000 100 0.30 0.47 50.00%
000 101 0.37 0.60 50.00%
000 110 0.54 0.84 50.00%
000 111 0.86 1.33 50.00%
001 100 0.70 1.10 25.00%
001 101 0.88 1.40 25.00%
001 110 1.30 2.00 25.00%
001 111 2.00 3.20 25.00%
010 100 1.10 1.80 16.70%

61

Universitas Sumatera Utara


010 101 1.40 2.20 16.70%
010 110 2.00 3.20 16.70%
010 111 3.30 5.00 16.70%
011 100 1.50 2.40 12.50%
011 101 1.90 3.00 12.50%
011 110 2.80 4.30 12.50%
011 111 4.50 7.00 12.50%

Table 9: possible IIR and FIR settings


Note: Settling time is in seconds and depends on internal oscillator absolute
value. 100% spike limit appears with the IIR filter bypassed, and there is
no spike limitation.

62

Universitas Sumatera Utara


8.3.4 RAM

It is not possible to write into the RAM memory. It can only be read and only a limited number
of RAM registers are of interest to the customer.
RAM (32x17)
Name Address Read access
Melexis reserved 0x00 Yes
… … …
Melexis reserved 0x03 Yes
Raw data IR channel 1 0x04
Raw data IR channel 2 0x05
TA 0x06 Yes
TOBJ1 0x07 Yes
TOBJ2 0x08 Yes
Melexis reserved 0x09 Yes
… … …
Melexis reserved 0x1F Yes

Table 10: Ram addresses

8.4 SMBus compatible 2-wireprotocol

The chip supports a 2 wires serial protocol, build with pins PWM / SDA and SCL.

• SCL – digital input only, used as the clock for SMBus compatible communication. This pin has the
auxiliaryfunctionforbuildinganexternalvoltageregulator.Whentheexternalvoltageregulatorisused, the2-
wireprotocolisavailableonlyifthepowersupplyregulatoris overdriven.
• PWM / SDA – Digital input / output, used for both the PWM output of the measured object temperature(s) or
the digital input / output for the SMBus. In PWM mode the pin can be programmed in EEPROM to operate as
Push / Pull or open drain NMOS (open drain NMOS is factory default). In SMBus mode SDA is forced to open
drain NMOS I/O, push-pull selection bit defines PWM / Thermal relayoperation.
SMBuscommunicationwithMLX90614iscoveredindetailsinapplicationnotes,availa
blefrom www.melexis.com.

8.4.1 Functionaldescription

The SMBus interface is a 2-wire protocol, allowing communication between the Master
Device (MD) and one or more Slave Devices (SD). In the system only one master can be
presented at any given time [1]. The MLX90614 can only be used as a slave device.

Generally, the MD initiates the start of data transfer by selecting a SD through the Slave Address (SA).

TheMDhasreadaccesstotheRAMandEEPROMandwrite
accessto9EEPROMcells(ataddresses 0x00, 0x01, 0x02, 0x03, 0x04, 0x05*, 0x0E, 0x0F, 0x09). If
the access to the MLX90614 is a read operation it will respond with 16 data bits and 8 bit PEC
only if its own slave address, programmed in internal EEPROM, is equal to the SA, sent by the
master. The SA feature allows connecting up to 127 devices (SA=0x00…0x07F) with only 2
wires, unless the system has some of the specific features described in paragraph 5.2 of reference
[1]. In order to provide access to any device or to assign an address to a SD before it is
connected to the bus
system,thecommunicationmuststartwithzeroSAfollowedbylowR/W̄bit.Whenthiscommandissentfro
63

Universitas Sumatera Utara


m the MD, the MLX90614 will always respond and will ignore the internal chip
codeinformation.
Special care must be taken not to put two MLX90614 devices with the same SA on the
samebus as MLX90614 does not support ARP[1].
The MD can force the MLX90614 into low consumption mode “sleep mode” (3V version only).
Read flags like “EEBUSY” (1 – EEPROM is busy with executing the previous write/erase),
“EE_DEAD” (1 – there is fatal EEPROM error and this chip is not functional**).

64

Universitas Sumatera Utara


Note*: This address is readable and writable. Bit 3 should not be altered as this will cancel the factory calibration.

Note**: EEPROM error signaling is implemented in automotive grade parts only.

8.4.2 Differences with the standard SMBus specification (reference[1])

ThereareelevencommandprotocolsforstandardSMBusinterface.TheMLX90614supportsonlyt
woof them. Not supported commandsare:
• Quick Command
• Byte commands - Sent Byte, Receive Byte, Write Byte and ReadByte
• ProcessCall
• Blockcommands–BlockWriteandWrite-BlockReadProcessCall Supported
commandsare:
• ReadWord
• WriteWord

8.4.3 Detaileddescription

The PWM / SDA pin of MLX90614 can operate also as PWM output, depending on the
EEPROM settings. If PWM is enabled, after POR the PWM / SDA pin is directly configured as
PWM output. Even if the device is in PWM mode SMBus communication may be restored by a
special command. That is why hereafter both modes are treated separately.

8.4.3.1 BusProtocol

1 7 1 1 8 1 1
S Slave Address Wr A Data Byte A P

S StartCondition

Sr Repeated Start Condition

Rd Read (bit value of 1)

Wr Write (bit value of0)

A Acknowledge(thisbitcanbe0forACKand1for NACK) S

StopCondition

PEC Packet ErrorCode

Figure 4: SMBus packet element Master-to-Slave


key
Slave-to-Master
After every received 8 bits the SD should issue ACK or NACK. When a MD initiates
communication, it first sends the address of the slave and only the SD which recognizes the
address will ACK, the rest will remain silent. In case the SD NACKs one of the bytes, the MD
65

Universitas Sumatera Utara


should stop the communication and repeat the message. A NACK could be received after the
PEC. This means that there is an error in the received message and the MD should try sending
the message again. The PEC calculation includes all bits except the START,

66

Universitas Sumatera Utara


REPEATED START, STOP, ACK, and NACK bits. The PEC is a CRC-8 with polynomial
X8+X2+X1+1. The Most Significant Bit of every byte is transferred first.

8.4.3.1.1 Read Word (depending on the command – RAM orEEPROM)

1 7 1 1 8 1 1 7 1 1
S Slave Address Wr A Command A Sr Slave Address Rd A ………..

8 1 8 1 8 1 1
……….. Data Byte Low A Data Byte High A PEC A P

Figure 5: SMBus read word format

8.4.3.1.2 Write Word (depending on the command – RAM orEEPROM)

1 7 1 1 8 1
S Slave Address Wr A Command A ………..

8 1 8 1 8 1 1
……….. Data Byte Low A Data Byte High A PEC A P

Figure 6: SMBus write word format

8.4.4 Bittransfer

Changing data

SDA

SCL

67

Universitas Sumatera Utara


Sampling data

Figure 7: Recommended timing on SMBus

68

Universitas Sumatera Utara


ThedataonPWM/SDAmustbe changedwhenSCLislow(min300nsafterthefallingedge of
SCL). Thedataisfetched bybothMDandSDsontherisingedge
oftheSCL.Therecommendedtimingforchanging data is in the middle of the period when the
SCL islow.

8.4.5 Commands

RAM and EEPROM can be read both with 32x16 sizes. If the RAM is read, the data are
divided by two, due to a sign bit in RAM (for example, T O1 - RAM address 0x07 will sweep
between 0x27AD to 0x7FFF as the object temperature rises from -70.01°C to +382.19°C). The
MSB read from RAM is an error flag (active high) for the linearized temperatures (TO1, TO2and
Ta). The MSB for the raw data (e.g. IR sensor1 data) is a sign bit (sign and magnitude format). A
write of 0x0000 must be done prior to writing in EEPROM in order to erase the EEPROM cell
content. Refer to EEPROM detailed description for factory calibration EEPROM locations that
need to be keptunaltered.
Opcode Command
000x xxxx* RAM Access
001x xxxx* EEPROM Access
1111_0000** Read Flags
1111_1111 Enter SLEEP mode

Table 11: SMBus commands


Note*: The xxxxx represent the 5 LSBits of the memory map address to be read / written.
Note**: Behaves like read command. The MLX90614 returns PEC after 16 bits data of which only 4 are
meaningfulandifthe MDwantsit,itcanstopthecommunicationafterthefirstbyte.Thedifferencebetween read and read
flags is that the latter does not have a repeated startbit.
Flags read are:

Data[7] - EEBUSY - the previous write/erase EEPROM access is still in progress. High active. Data[6] -
Unused

Data[5] - EE_DEAD - EEPROM double error has occurred. High active. Data[4] - INIT -
POR initialization routine is still ongoing. Low active.

Data[3] - Not implemented.

Data[2...0] and Data[8...15] - All zeros.

Flag read is a diagnostic feature. The MLX90614 can be used regardless of these flags.

For details and examples for SMBus communication with the MLX90614 check the www.melexis.com

8.4.6 SMBus communicationexamples

SA_W=0xB4 Command =0x07 SA_R = 0xB5 LSByte=0xD2 MSByte=0x3A PEC =0x30

SDA

S1 011 010 WA0 0000 111A S1 01101 0 RA1 101001 0A0 011101 0A0 0110000AP

69

Universitas Sumatera Utara


SCL

Figure 8: Read word format (SA=0x5A, read RAM=0x07, result=0x3AD2, PEC=0x30)

SA_W = 0xB4 Command = 0x22 LSByte = 0x07 MSByte= 0xC8 PEC =0x48

SDA

S1 011010 WA0 010001 0 A00 0001 1 1A1100100 0A0100100 0AP

SCL

Figure 9: Write word format (SA=0x5A, write EEPROM=0x02, data=0xC807, PEC=0x48)

70

Universitas Sumatera Utara


8.4.7 Timingspecification

The MLX90614 meets all the timing specifications of the SMBus [1]. The maximum
frequency of the MLX90614 SMBus is 100 KHz and the minimum is 10 KHz.

The specific timings in MLX90614’s SMBus are:

SMBus Request (tREQ) is the time that the SCL should be forced low in order to switch
MLX90614 from PWM mode to SMBus mode – at least 1.44ms;

Timeout L is the maximum allowed time for SCL to be low during communication.
After this time the
MLX90614willresetitscommunicationblockandwillbereadyfornewcommunication–
notmorethan27ms;

TimeoutHisthemaximumallowedtimeforSCLtobehighduringcommunication.Afterthisti
me MLX90614 will reset its communication block assuming that the bus is idle (according to
the SMBus specification) – not more than45µs.

Tsuac(SD)is the time after the eighth falling edge of SCL that MLX90614 will force
PWM / SDA low to acknowledge the last received byte – not more than 2,5µs.

Thdac(SD) is the time after the ninth falling edge of SCL that MLX90614 will release
the PWM / SDA (so the MD can continue with the communication) – not more than 1,5µs.

Tsuac(MD) is the time after the eighth falling edge of SCL that MLX90614 will release
PWM / SDA (so that the MD can acknowledge the last received byte) – not more than 1,5µs.

Thdac(MD) is the time after the ninth falling edge of SCL that MLX90614 will take
control of the PWM / SDA (so it can continue with the next byte to transmit) – not more than
1,5µs.

The indexes MD and SD for the latest timings are used – MD when the master
device is making acknowledge; SD when the slave device is making acknowledge. For
other timings see [1].
Tsuac Thdac

SDA
1 0 1 0 1 1 ACK 7
1 0
3 4 5 6 8 9
SCL 1 2

> 27ms > 45µs MD < 1.5µs MD < 1.5µs


SD < 2.5µs SD < 1.5µs
Timeout_L Timeout_H

Figure 10: SMBus timing specification and definition

71

Universitas Sumatera Utara


8.4.8 SleepMode

The MLX90614 can enter in Sleep Mode via the command “Enter SLEEP mode” sent via
the SMBus interface. This mode is not available for the 5V supply version. There are two ways
to put MLX90614 into power-up default mode:
- POR
- ByWakeuprequest€SCLpinhighandthenPWM/SDApinlowforatleasttDDQ>33ms

If EEPROM is configured for PWM (EN_PWM is high), the PWM interface will be selected after
awakening and if PWM control [2], PPODB is 1 the MLX90614 will output a PWM pulse train with
push- pulloutput.

NOTE: In order to limit the current consumption to the typical 2.5µA Melexis recommends that the
SCL pin is kept low during sleep as there is leakage current trough the internal synthesized zener
diode connected toSCL pin. This may be achieved by configuring the MD driver of SCL pin as
Push-Pull and not having Pull-Up resistor connected on SCLline.

8.4.8.1 Enter SleepMode

Normal operation mode Sleep mode

SA_W = 0xB4 Command = 0xFF PEC = 0xE8

SDA

S 1 0 1 1 0 1 0 W A 1 1 1 1 1 1 1 1 A 1 1 1 0 1 0 0 0 AP

Figure 11:SCL
Enter sleep mode command (SA = 0x5A, Command = 0xFF, PEC = 0xE8)

8.4.8.2 Exit from Sleep Mode (Wake uprequest)

Sleepmode Normalmode

SDA

SCL > 33ms

Figure 12: Exit Sleep Mode

Afterwakeupthefirstdataisavailableafter0.25seconds(typ).On-
chipIIRfilterisskippedforthevery
72

Universitas Sumatera Utara


firstmeasurement.AllmeasurementsafterwardspasstheembeddeddigitalfilteringasconfiguredinEE
PROM. Details on embedded filtering are available in application note “Understanding
MLX90614 on-chip digital signal filters”, available fromwww.melexis.com

73

Universitas Sumatera Utara


8.4.9 MLX90614 SMBus specificremarks

The auxiliary functions of the SCL pin (zener diode) add undershoot to the clock pulse
(5V devices only) as shown in the picture below (see Figure 13). This undershoot is caused by
the transient response of the on-
chipsynthesizedZenerdiode.Typicaldurationofundershootisapproximately15µs.Anincreasedreact
ance
oftheSCLlineislikelytoincreasethiseffect.UndershootdoesnotaffecttherecognitionoftheSCLrising
edge by the MLX90914, but may affect proper operation of non-MLX90614 slaves on the
samebus.

Figure 13: Undershoot of SCL line due to on chip synthesized Zener diode (5V versions only)

Continuous SMBus readings can introduce and error. As the SCL line inside TO39
package is passing relatively close to the sensor input and error signal is induced to the sensor
output. The manifestation of the problem is wrong temperature readings. This is especially valid
for narrow FOV devices. Possible solution is to keep SDA and SCL line quiet for period longer
than refresh rate and settling time defined by internal settings of MLX90614 prior reading the
temperature or switch to PWM signal and completely disconnect from SDA and SCL line.

74

Universitas Sumatera Utara


Universitas Sumatera Utara

Anda mungkin juga menyukai