

#Arduino thermometer serial#
Open Arduino IDE > File > Examples > DS1307RTC > SetTime > upload this code and the open serial monitor and time is set to RTC.Īn ultrasonic sensor is employed in the project to measure the distance between MLX90614 sensor and a human subject.

The RTC module works on I2C protocol similar to the temperature sensor and also connects with the same bus wire. The RTC module is responsible for tracking the correct time, it also comes with a backup battery which will keeps the RTC running even when the main power supply is disconnect. The proposed project utilizes a RTC module DS3231 or DS1307 (both are compatible) for registering correct time with the temperature when a person scans his/ her body with this machine. This module communicates with Arduino via SPI protocol and we need to establish four communication lines between Arduino and this SD card module which are MISO, MOSI, SCK and CS. This module consists of 3.3V on-board regulator and a level shifter IC which is responsible converting 5V signal from Arduino to 3.3V signal to SD card. This SD card adapter module regulates correct supply voltage and signal voltage to the SD card. Generally, interfacing a micro SD card directly with any microcontroller is technically challenging, a micro SD card adapter module such as one illustrated above makes it easy. We will try to understand this in the later part of this post. The effective measuring distance between an object and the sensor is only few centimeters, to make this sensor operate in real-life situations we need to increase its range by calibrating / compensating the received raw temperature value from the sensor (in the program code). MLX90614 sensor works on I2C bus which makes interfacing with Arduino easy and it can be done by just hooking up the SDA and SCL lines to Arduino. MLX90614 can operate between 3.3V and 6V if your sensor comes with a breakout board as illustrated in the above image, because the breakout board comes with a voltage regulator. The sensor can measure temperature of an object between -70 degree Celsius and +380 degree Celsius, which is more than enough bandwidth for our project, the sensor can operate at ambient temperature between -40 degree Celsius and +125 degree Celsius. MLX90614 is an IR based non-contact temperature sensor, which is heart of this project. Let’s take a brief look at each modules presented in the project.

DS3231 / DS1307 Real-time clock module.MLX90614 non-contact temperature sensor.The proposed circuit consists of the following components and can be assembled on a PCB for reliable operation: Unlike contact based thermometers, non-contact based thermometers carry very low risk of spreading communal disease while utilizing it, which makes it very suitable for mass screening of hundreds or even thousands of people quickly. Non-contact thermometers are best for measuring body temperature quickly and accurately for initial temperature screening of a person. If a person has abnormal body temperature the machine will alert by beeping. The proposed non-contact thermometer can measure body temperature of a person at forehead and records it in a text file on a SD card with time and temperature. for abnormal body temperature which could be a sign of contagious diseases.
#Arduino thermometer how to#
In this project we are going to learn how to build an infrared based non-contact thermometer which can be utilized for screening people at schools, offices, shopping malls etc.
