Beruflich Dokumente
Kultur Dokumente
1
TAIST Tokyo Tech, ICTES Program, Dept. of Electrical Engineering, Kasetsart University, Jatujak,
Bangkok 10900, Thailand
2
Dept. of Electrical Engineering, Kasetsart University, Jatujak, Bangkok 10900, Thailand
3
Embedded System Technology Laboratory, National Electronics and Computer Technology
Center, Pathumthani 12120, Thailand
4
Dept. of Communications & Integrated Systems, Tokyo Institute of Technology, S3-66, 2-12-1,
Ookayama, Meguro-ku, Tokyo 152-8550, JAPAN
computer for further analysis using software analyzing tools.
Abstract— Data logger is a device used for storing Data loggers can be applied in various fields such as in [1]
measurement data. It can be used in wide range of embedded where data logger is used to observe city’s air environment or in
logging applications. This paper reports on practical development [2] where it is used for collecting galvanic skin response (GSR).
experience and design’s details of a low cost data logger prototype.
The data logger in this paper is also compared with two of existing
In this paper, we developed a prototype of low cost data
data loggers in the literature. This data logger combines 32-bits logger as a part of our planned research project in a
microcontroller and flash disk with file allocation system (FAT) hydrological system application for monitoring rivers. The data
together with programming technique to control the hardware for logger will be connected to a hydrological sensing system
recording and monitoring of general proposes measurements. which consists of a set of wireless sensor nodes and several
This data logger stores the data on removable flash disk for hydrological sensors. However, to test our prototype in this
convenient and can forward real time measurement data through
RS232 standard serial port to be display on LCD. The
paper we decided to use basic sensor device which can be
applications studied in this paper are based on logging of obtained easily such as temperature and humidity sensors.
temperature and relative humidity from a SHT15 digital sensor. These sensor devices are low cost and simple to integrate to our
The data are stored in form of comma-separated values file (CSV) data logger prototype. For example, SHT15 is an integrated
because this file format can be read and understood by many temperature and relative humidity sensors in one package [9]
platform applications such as MySQL, MS-Excel, and MATLAB. which is very convenient. We designed our prototype of data
The microcontroller in this prototype provides power down mode
function that can save energy during long waiting operation and
logger based on [3] with different structure for both hardware
its storage memory can record measurement data for several and software.
years.
I. INTRODUCTION
Fig 5. Data Stream from sensor C. Estimating of Capacity and Spanning Time
Since the spanning time of records depends on the sampling
B. Testing of Sensor Recording rate selected by the user, in this subsection we estimate the
spanning time of the data logger with 2GBytes of memory.
To test the main functionality of our data logger, we collected
Table I shows the estimation of storage size per hours in the
environmental temperature and relative humidity using the
second column according to the sampling rate in the first
hardware described in Section II. The data logger was set to
column. In the last column, we calculated the spanning time of
record both sensory data every minute for a total of one hour.
total number of records that can be fitted into 2GBytes
We began our measurement at the room temperature and later
MicroSD card. This estimation is applicable for both
we turned on an air conditioner to change the room
temperature and relative humidity data.
temperature. Initially, the data logger required the user to
configure operating parameters which are date, time, recording
duration and sampling rate through RS232 serial port. The date
and time values are also needed when the RTC was reset.
Equation 1 expresses the average current consumption of
TABLE I
RECORDING TEMPERATURE AND R.H. SPANNING TIME USING 2 GB OF MEMORY
MCU over one hour. Using the values listed above in the
equation, we can calculate current consumption Iavg by:
Sampling rate Storage size per Spanning time (1)
resolution 1 hour (approximately)
1s 178,174 bytes 1.2 years The calculation of power consumption (in Watt) and energy (in
10s 17,866 bytes 12 years Joules) of the system are expresses in the Equation 2 and 3.
1min 3,022 bytes 75 years P = Iavg x Vdd (2)
10 min 870 bytes 262 years E = P x Ttotal (3)
1 hour 578 bytes 3,900 years
D. Power Consumption where P is the power in Watts and E is energy in joules.
Therefore, the average current consumption of MCU operation
In this subsection, we estimate the power consumption of data with power down mode per unit of time (1 hour) is 21.6µA.
logger which is based on various current consumptions at Thus, the total power consumption is 71.28 µW and energy
different states of microcontroller STM32F103 [8]. Note that consumption is 0.26 J.
we begin our analysis with the current consumption of the
MCU first and then list the current consumptions of other TABLE II
peripherals in this analysis. We assume that the data logger is SUMMARIZE OF POWER CONSUMPTION OF THE SYSTEM WITHOUT
set to one-minute sampling rate to demonstrate an example of POWER DOWN MODE
Acknowledgment
This research is financially supported by Thailand Advanced
Institute of Science and Technology-Tokyo Institute of
Technology (TAIST-Tokyo Tech), Nation Science and
Technology Development Agency (NSTDA), Tokyo Institute
of Technology (Tokyo Tech), Kasetsart University (KU) and
the National Research Council of Thailand (NRCT). Moreover,
the authors would like to thank the partners in the electronic
laboratory at KU, ICTES students and staffs in the embedded
system technology laboratory at NECTEC.