Iot Data Logger Using Blynk Framework
Iot Data Logger Using Blynk Framework
1. INTRODUCTION
The development of technology plays a significant role in this day and age in making many tasks easier,
one of which is obtaining data or information. The process of recording data manually is inefficient and time-
consuming, but through technology, many sophisticated devices have been developed that facilitate the data
collection process (data logging) such as the data logger device (data recorder).
A data logger is a device used to record and collect data automatically at any time, where the data can
come from sensors or electronic instruments and is then used in data analysis [1]. The data can later be
processed and applied for many purposes such as weather monitoring [2], temperature and humidity monitoring
[3], and industrial needs [4]. Electronic data logger instruments generally consist of a microcontroller and
sensors for temperature, air pressure, humidity, altitude, and depth. In addition, there are electronic instruments
for data storage.
Some data loggers are integrated with computers or other interface devices with the help of software to
activate and visualise data that has been collected from a measured object [5]. With the ability to work without
time constraints, it is possible to obtain valid, complete, and comprehensive data that can be accessed in real
time.
In this study, the data logger concept will be implemented for measuring temperature and humidity
utilising Internet-of-Thing technology so that sensors and other supporting devices can communicate with each
other via the internet and send data automatically.
2. METHODOLOGY
2.1. Data storage in the data logger
In general, the working concept of the data logger system begins at data acquisition from the object, which
is carried out by a sensor or module; then the data, consisting of time data and sensor values in analogue form, is
input to the microprocessor [6]. After converting analogue signal data into digital signal data and configuring it,
the data are stored internally where they are available for data analysis; data can also be sent to a cloud storage
server via an internet connection. On the input side, there is a power supply that is also connected to the data
logger device. The data logger system concept diagram can be seen in Figure 1.
The data logger process in IoT begins with the sensor—which is connected to a microprocessor equipped
with a Wi-Fi module such as NodeMCU—collecting data on the object being measured. Input to the
microprocessor is in the form of analogue data values which will be processed to produce digital values and sent
to the IoT platform server via an internet connection. The data is stored on the IoT platform cloud server and can
be accessed by mobile devices or computers that are also connected to the internet with the help of an
application that facilitates reading and visualisation of sensor data.
2.3. NodeMCU
Basically, NodeMCU is a development board based on the ESP8266 module, especially the ESP-12 series.
Because there is hardware in the form of an ESP8266 chip packaged with the ability to access Wi-Fi,
NodeMCU is suitable for use in IoT-based projects. It also has a USB serial communication feature that is easy
to program because it only requires an additional USB data cable. NodeMCU has been developed in several
variants by manufacturers including Amica, DOIT, and Lolin/WeMos [9].
2.4. DHT11
There are many sensors that can be used as input to the data logger according to the needs of the
researcher. In this study, a DHT11 temperature sensor was used to simulate the data retrieval and storage
process. The DHT11 sensor can measure two environmental parameters at once: temperature and humidity;
output is in the form of a calibrated digital signal. In this sensor, there is an NTC (negative temperature
coefficient) thermistor to measure temperature, a resistant-type humidity sensor, and an eight-bit microcontroller
that processes the two sensors and sends the results to the output pin in bi-directional single-wire format (two-
way single cable). The temperature measurement range is 0–50 degrees Celsius, and the humidity measurement
range is 20–90 percent. The DHT11 sensor requires a power supply of 3–5.5 volts DC.
Figure 4 shows that the data input is obtained from the DHT11 sensor, which can detect temperature and
humidity by observing changes in room conditions. The signal from the DHT11 sensor is in the form of a
number writing system with symbols 0 and 1, namely, the binary number system, and it is processed by
NodeMCU so that the binary numbers are converted into decimal numbers. The value of sensor readings is
displayed through the Blynk user interface, where in this research, monitoring of room temperature and
humidity was carried out.
Temperatur Humidity
Time
e Values Values
18:45 26.1 80
18:44 27 80
18:43 27 80
18:42 27 80
18:41 28 79
18:40 29 79
18:39 29 79
18:38 28.3 79
18:37 28.3 77
18:36 28.3 77
Based on the test results taking the last 10 temperature and humidity readings, it is found that the relative
temperature value decreases with time, while the humidity value continues to increase with time.
Figure 6 shows the data from the implementation of sensors on the Blynk application device with two
types of visual displays: gauge and chart. By utilising the Blynk application, temperature and humidity sensor
data from a room can be stored and monitored remotely in real time using a mobile device and without being
limited by time.
5. CONCLUSION
1. Datalogger implementation with the Internet-of-Thing concept can be done with lower cost by utilising
NodeMCU devices and other supporting components such as DHT11 sensors, routers, mobile devices, and
the Blynk application.
2. Realtime datalogger testing shows good performance in which the DHT11 sensor can be read and the data
stored in the Blynk cloud database where it can be accessed and displayed via the Blynk application on the
Android OS.
REFERENCES
[1] N. Lysbetti Marpaung and D. E. Ervianto, “Data Logger Sensor Suhu Berbasis Mikrokontroler ATmega
8535 dengan PC sebagai Tampilan,” J. Ilm. Elit. Elektro, vol. 3, no. 1, pp. 37–42, 2012.
[2] Sui, R. and Baggard, J., 2015. Wireless sensor network for monitoring soil moisture and weather
conditions. Applied engineering in agriculture, 31(2), pp.193-200.
[3] Nguyen, J.L. and Dockery, D.W., 2016. Daily indoor-to-outdoor temperature and humidity relationships: a
sample across seasons and diverse climatic regions. International journal of biometeorology, 60(2),
pp.221-229.
[4] Apse-Apsitis, P., Senfelds, A., Avotins, A., Paugurs, A. and Prieditis, M., 2015. Power measurement and
data logger with high-resolution for industrial dc-grid application. Electrical, Control and Communication
Engineering, 9(1), pp.36-42.
[5] Sharan, R.V., 2014. Development of a remote automatic weather station with a pc-based data
logger. International Journal of Hybrid Information Technology, 7(1), pp.233-240.
[6] Marpaung, N.L. and Ervianto, E., 2012. Data logger sensor suhu berbasis mikrokontroler atmega 8535
dengan PC sebagai tampilan. Jurnal Ilmiah Elite Elektro, 3(1), pp.37-42.
[7] David, N., A. Chima, A. Ugochukwu, dan E. Obinna. 2015. Design of a Home Automation System Using
Arduino. International Journal of Scientific & Engineering Research 6 (6). 785 – 801.
[8] V. Firmansyah, “Aplikasi kalman filter pada pembacaan sensor suhu untuk pemantauan kondisi ruangan
laboratorium vera firmansyah,” J. Mater. dan Energi Indones., vol. 08, no. 01, pp. 1–7, 2018.
[9] Bento, A.C., 2018. IoT: NodeMCU 12e X Arduino Uno, Results of an experimental and comparative
survey. International Journal, 6(1).
[10] Bohara, B., Maharjan, S. and Shrestha, B.R., 2020. IoT based smart home using Blynk framework. arXiv
preprint arXiv:2007.13714.