key: cord-0953538-xynkodln authors: Mnati, Mohannad Jabbar; Chisab, Raad Farhood; Al-Rawi, Azhar M.; Ali, Adnan Hussein; Van den Bossche, Alex title: An open-source non-contact thermometer using low-cost electronic components date: 2021-03-06 journal: HardwareX DOI: 10.1016/j.ohx.2021.e00183 sha: bca57203f0a11a093811071fd8b47b98d98025bd doc_id: 953538 cord_uid: xynkodln Due to the spread of COVID-19 across the world and the increased need for non-contact thermometers to prevent the spread of disease, a new electronic thermometer has been designed and implemented for measuring human body temperature from a distance. This device is currently in use at building entrances to measure the body temperatures of employees, students, and customers. This system is designed using low-cost easy-to-assemble open-source electronic components. The system consists of seven main parts: an Arduino UNO microcontroller, an infrared (IR) thermometer for non-contact temperature measurements (GY-906 MLX90614ESF module), an IR motion sensor (TCRT 5000) for the purpose of contactless initiation of the system, a graphic LCD to display results, a DS3231 clock module for a real-time clock and calendar, and a micro-SD storage board to store device audio instructions. The complete system consists of the following seven major parts, all of which are open-source, inexpensive electronic components: 1-Arduino UNO unit: The Arduino Uno is a microcontroller board designed based on ATmega328P. It has 14 pins for digital input and output (only 6 can be used for PWM outputs signals), six analog inputs, a 16 MHz ceramic resonator, a USB link, a power jack, an ICSP header, and a reset key. The Arduino UNO contains everything needed to operate the microcontroller; it simply needs to be connected to a power source device with a USB cable or powered with a DCadapted power supply or battery to get started. If the Arduino UNO is tampered with, it can be easily changed as this chip is cheap [6] (see Fig. 1a ). 2-16*2 LCD display module: This alphanumeric LCD unit, which means that it can display letters of the alphabet and numbers. It consists of two rows; each row can print 16 characters (each letter is created by a rectangle of 5 Â 8 pixels). It can operate in both 8-bit and/or 4-bit modes. The DC operating voltage is 4.7 V to 5.3 V without backlight, and the current consumption of the LCD is 1 mA. Typical LCDs usually need about 12 connections, which can be problematic if there are not many GPIO pins available. However, by using the I2C add-on circuit separately, we can easily upgrade the standard LCD, requiring only four GPIOs (two for power and two for data) [7] [8] [9] (see Fig. 1b ). 3-IR sensor/TCRT5000L module: This sensor is an infrared-reflective sensor used for detecting lines and edges. It can also be used to locate obstacles within close range. These sensors transmit an infrared beam and then measure its reflection. This sensor comes with a pair of infrared emitters and receivers at the front of the panel. Any time an object blocks the infrared source, it reflects the infrared. The reflected light then strikes the receiver, and the signal passes through an onboard comparator circuit. In addition, it will output logic LOW at the output pin, and the green LED will light up to show the detection; depending on the threshold, that is being changed [10] (see Fig. 1c ). 4-MLX90614 infrared thermometer: The MLX90614 is an infrared thermometer used for non-contact temperature measurements. Both its infrared-sensitive heat detector chip and its ASIC signal conditioning are integrated into the same TO-39 case. The MLX90614 includes a built-in low noise amplifier, 17-bit ADC, and a powerful DSP module, which allow it to achieve high precision and accuracy. The main advantages of this sensor are its small size, low cost, and ease of integration. Its temperature range spans À40°C-125°C for sensor temperature and À70°C-380°C for object temperature [11, 12] (see Fig. 1d ). 5-Digital power amplifier module: The PAM8403 is a class-D 3 W audio amplifier, high-definition sound. It provides low THD + N, allowing high-quality sound reproduction. Its recently developed filter-less architecture allows the device to drive the speaker directly without the need for low-pass output filters, thereby saving on system costs and PCB zone [13] (see Fig. 1e ). 6-Real-time clock module: The DS3231 module is a low cost, highly accurate real time clock capable of retaining hours, minutes, and seconds, as well as information of the day, month, and year. It also has a measured automatic leap year (also known as an intercalary year or bissextile year), which balances months of less than 31 days. The module can operate on either 3.3 V or 5 V, making it suitable for many of the platforms or microcontrollers in production. Battery input is 3 V, and the module can be powered by a standard CR2032 3 V battery for more than a year. The module uses the I2C Communication Protocol to send data to the board of Arduino [14, 15] (see Fig. 1f ). 7-Micro SD storage expansion board: Data storage is one of the most important parts of any project of this type. There are several ways to store data depending on its type and size. SD and micro-SD cards are some of the most practical types of storage devices, and they are used in devices like cell phones, small computers, and microcontrollers [16, 17] (see Fig. 1g and 1 h). Specifications All electronic components are placed in a plastic box (174*225*30 mm) with a white acrylic cover (see Fig. 7 ). The complete system has the following features: Remote temperature measurement without the human intervention. The device speaks either English or Arabic in addition to displaying results on the LCD screen. The hardware uses open-source sensor controllers (Arduino). It is easy to use and easy to produce. Low cost. For this paper, all system design files are available and maintained in the source file repository of Open Science Framework. Design files summary The cost of the electronic system components listed in Section 3 was calculated, considering the price difference between vendors. All prices are included in the following table. Before the system can be completely designed and developed as a prototype, the electronic components should be tested separately. In this section, electronic circuit diagrams will be used to illustrate the practical part of each electronic component separately. It shows how these components work. In addition to that, it also shows how to upload the special program required to run each part of these components. Finally, the final design is provided with some examples of how the new device operate. The first part of this section discuses the basics of presenting the text and numbers, and how to use the other features of the Arduino's Liquid-Crystal library. This part includes everything that one must know about interfacing with and controlling LCD characters with Arduino. Fig. 3 . presents wiring diagrams along with practical examples of the circuits. These displays are great for displaying sensor data or text, and they are cheap. The LCD was used with the I2C module mounted connected on the back. With this I2C module, only two connectors are needed to control the data on the LCD screen. The real-time clock module (DS3231) is the one that measures the time through its cell, either depending on or independent of its Arduino board. The module is a low cost, highly accurate real time clock capable of keeping hours, minutes, and seconds as well as data from day, month, and year. It also has automatic leap-year calculations and can set months that have less than 31 days. The Arduino card measures the time elapsed since the module was powered on (ms). The module is readyto-use on installation and is supplied with a battery. The (DS3231) module used I2C protocol for the communication. This contact means that it interacts with the Arduino using only two pins. Fig. 4 illustrates how to play (.wav) audio files using the Arduino UNO board. The Arduino loads WAV files from a FAT16or FAT32-formatted SD card; a mini pam8403a and speaker is then used to amplify the audio signal generated by the Arduino microcontroller. WAV is a Microsoft and IBM audio file format that is used as the standard medium for storing audio bit stream on PCs. A positive aspect of this format is that it is uncompressed, which allows even a small microcontroller to play it. Most temperature measurement apparatuses require some level of physical contact between the sensor and the object or environment whose temperature is being measured. However, as technology advances, this is no longer the case. When the need to measure body temperature without contact with the body arose, infrared sensors were used to meet this need. The operating theory of infrared thermometers is very simple. All objects at temperatures above 0 K (absolute zero) emit infrared energy that can be measured by an infrared thermometer's sensor, the nature of which involves a lens that focuses on the detector's infrared energy emitted by an object. The detector converts the energy into an electrical signal that can then be passed on to a microcontroller that interprets and displays it in units of temperature after compensating for the difference in ambient temperature. The infrared thermometer's rating plate is equipped with an easy-to-use, yet powerful, MLX90614 infrared thermometer that can sense temperatures between À70°C and 380°C. Using SMBus-a I2C-like interface-to communicate with the chip means that only two wires need to be dedicated from the microcontroller to interact with it. The sensor device is adaptable to ambient light and comprises a couple of tubes that emit and receive infrared. The transmitting tubes emit infrared rays of a certain frequency; the receiving tube receives the reflected infrared rays when the obstacle (reflective surface) is detected. The green light comes on after the processing of the comparator circuit, but the output of the signal output interface is a digital signal (i.e. a low-level signal). The detection distance may be set on the handle's voltage meter ranging from 2 cm to 30 cm, and the working DC voltage ranges from 3.3 V to 5 V. The sensor detection range can be obtained by changing the potentiometer with little interference. The unit is easy to assemble and use. It is widely applicable, being used to prevent obstacles to the sensor. After we learned how to use all the electronic parts used in our project individually, they were assembled in a plastic box and we wrote a single program to operate them together to serve the required purpose of this device. Fig. 7 presents the schematic diagram of the full system's circuit connections and the jumper wire connections between all the electronic modules and the Arduino. Fig. 8 shows the main interface (front view) of the prototype device after the final design was printed on a piece of white acrylic. Fig. 8b presents the device in a ''working state" while not measuring any temperature (only the time and date are displayed). After the device was designed and developed as a prototype in its final form (as seen in Fig. 8) , the temperatures of a group of people were taken with it, all readings were identical to those given by other devices (see Fig. 9 ) A set of readings of body temperature were taken for more than 100 people of different ages and different times. The results were very close. Regardless of the site of temperature measurement, the repeated measurements showed a large individual variability and that replicated measurements do not increase precision. The mean difference was >0.5°C with a large individual variance when comparing the hand temperature with nasal, rectal, ear and axillary readings. In addition to that, the purpose of developing this device is for the initial detection of high temperature for people from a distance without having direct contact so that no infection is transmitted. To calculate the intensity of a linear relationship between two variables, the Pearson correlation coefficient is used, where the value r = 1 implies a perfect positive correlation and the value r = -1 implies a perfect negative correlation. So, for instance, you might use this test to figure out whether the height and weight of people are associated (they would bethe taller individuals are, the heavier they are likely to be) [19] . Equation (1) Table 1 below, depending on T-1 and T-2 in Fig. 10 The device is designed for ease of use and to take temperature readings without the need for professional intervention. A user needs only to position their hand above the prototype device meter at 5 cm to 15 cm distance; the infrared signal (IR) emitted from the thermometer helps the instrument to start the operation for measuring temperature. The thermometer measures the thermal radiation emitted from the object to which it is directed and displays the temperature reading on the LCD screen. Depending on the temperature measured, the device either allow the user in (if the temperature is acceptable) or requests them to try again three times only, after that it will be reject to allow entering. The operation instruction is presented in the flowchart in Fig. 12 . The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Non-contact infrared thermometers Basic Principles The comparison of temporal temperature measurement method by noncontact infrared thermometer with other body temperature measurement methods Basic principles I2C interface for LCD Discription : Specification : Board Layout: I2C Address Setup Handson Technology I2C Serial Interface 1602 LCD Module Specification for LCD Module 1602 Vishay Semiconductors BLOCKING FILTER PARAMETER SYMBOL Vishay Semiconductors Reflective Optical Sensor with PARAMETER PARAMETER Digital Non-Contact Infrared Thermometer (MLX90614) #Melexis MLX90614 -Single and Dual Zone Infrared Thermometer in TO-39 A Product Line of Diodes Incorporated FILTERLESS 3W CLASS-D STEREO AUDIO AMPLIFIER Description Pin Assignments Features A Product Line of Diodes Incorporated PAM8403 Pin Descriptions Functional Block Diagram Trickle Charge Timekeeping Chip SLC Industrial microSD Memory Card Engineering Specification Pearson Correlation Coefficient Calculator Available online This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.