Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

2018 International Conference on Sensing, Diagnostics, Prognostics, and Control

Design of an Interactive Smart Refrigerator Based on


Embedded System

Wang Zhongmin Yu Yanan


School of Mechanical Engineering School of Information Technology Engineering
Tianjin University of Technology and Education Tianjin University of Technology and Education
Tianjin, China Tianjin, China
wzmin86@126.com zhaohongli@sportechs.cn

Abstract—Because of new and advanced technologies,


mainly includes the following aspects. Inside temperature
embedded system-based application is more and more widely
detecting and displaying on screen. Weight measuring and
used and the people’s needs for smart home system is increased.
Based on the embedded system, an interactive intelligent system displaying, when food weight is lighter than setting limit, the
for smart refrigerators is designed and established, which fully reminder is also automatically given on display screen.
considers the characteristics of existing refrigerator and people’s Internal gas composition detecting, food stored monitoring and
demand. The system consists of data acquisition module, voice warning. Egg number testing, when the number is less than
recognition module, wireless transmission module, embedded setting limit, the reminder is automatically given on display
module and display module. By optimizing the original function screen. The function of drawing, picture storage and picture
of refrigerator, its utilization frequency is improved and its library. Management function of document and chart, which is
monitoring and management level for food is enhanced. This able to set parameters of all kinds of food and record their
system also has expandable applications on mobile equipment freshness. The function of electronic photo album. The
and other household items, which improves effectiveness and function of music player. Dual reminder function that the
convenience. dynamic data is not only displayed on screen but also
transferred to other mobile equipment. The function of voice
Keywords—embedded system, smart refrigerator, data recognition and control. In order to realize the functions
acquisition, wireless transmission discussed above, the proposed system adopts various sensors.
The block diagram of proposed system in this paper is
I. INTRODUCTION
shown in Fig. 1. STM32 family microcontrollers based on
With the rapid development of intelligent technology, Arm Cortex-M3 processor is specially designed for embedded
people’s demand for smart products as well as their applications with high performance, low cost and low power
dependency on technology equipment is increasing, instead of consumption. The temperature measurement of DS18B20
being satisfied with current life state [1-3]. All of these digital sensor is in the range of-30°~125°. It has the
successful applications are contributed to a high quality of life characteristics of wide collection range, single bus data
and comfortable environment. Among intelligent equipment, transmission and low cost. DHT11 sensor is responsible for
refrigerator within its intelligent control performance and the collection of environmental humidity. It uses single bus
intelligent management is the necessity of modern life. Due to transmission to connect with embedded system and its
its more popular humanization, the intelligent refrigerator has humidity measurement is in the range of 20% to 90%. ZP07
been gradually applied and promoted in the high-end residence. air quality module adopts advanced thick film semiconductor
Sensor is a kind of detection devices, which could measure gas sensor, which is connected to A/D port of the embedded
various physical quantities in smart refrigerator and display it system to realize information conversion from analog voltage
on screen, including temperature, humidity, gas characteristics, to digital voltage.
food weight and position. Usually these intelligent sensors are
connected to internet using wireless communication. Due to Air quality sensor
R232
Embedded
low power characteristic and low network charges of wireless system
R232
sensors, wireless and Bluetooth technology becomes more Pressure
popular. Motivated by the discussion above, in this paper, a set
R232
of intelligent refrigerator system is designed with the Infrared sensor
R232
Touch
combination of embedded technology, sensor, wireless
R232
communication and mobile communication to increase Temperature
friendly user behaviors.
R232
Humidity sensor
II. ANALYSIS OF SYSTEM
Fig. 1. Dagram block of system
Through investigation, intelligent demand for refrigerator

978-1-5386-6057-7/18/$31.00 ©2018 IEEE 589


DOI 10.1109/SDPC.2018.00113
The touch module is developed based on android system B. Embedded Minimum System
with optimal performance and sensitive multi-touch. The Minimum system is the control core of the whole system.
abundant interfaces and open source database makes the touch The minimum system contains STM32F103 ARM chip,
module have expandability to add another module simply. crystal oscillator circuit and reset circuit. The circuit design
CZL-A pressure transducer is a type of resistance strain. It is principle is shown in Fig. 2.
composed of elastomer, resistance strain gauge and cable. SG-
2BC of KODENSHI CORP. is a kind of diffuse optical As shown in Fig. 2, STM32F103 has a high gain inverting
coupling reflection type photoelectric switch. operational amplifier to build an internal oscillator. Pin
OSC_IN and Pin OSC_OUT is the input and output of the
amplifier respectively, both of which are used to connect to
III. HARDWARE DESIGN AND IMPLEMENTATION
external crystal oscillator Y1. 8MHz crystal oscillator
frequency is convenient to calculate single chip operating
A. Chip Selection
cycle. Capacitors C2 and C3 at both sides of the oscillator are
Embedded chip as the control core plays a significant role. fixed in the feedback loop of the amplifier to build a parallel
At present, there is a variety of ARM processors in the market oscillation circuit. C2 and C3 are ceramics capacitors, which
to choose, from the basic 16-bit ARM to the high-end 64-bit capacitance will affect the oscillation frequency, the
ARM. Firstly, considering the function in the design, there is performance and the stability. 20pF±10pF capacitance is
no need to use a high-end ARM processor because of the recommended if using Quartz crystal.
relatively simple systematic function. Secondly, considering
the cost requirement, 32-bit ARM has more price advantage STM32F103 ARM usually supports three types of reset,
than 64-bit to achieve the same function design. So 32-bit including systematic reset, power-on reset and backup area
ARM processor is preferred. At last, the operability and reset. In the process of minimum system circuit design,
practicability of program compilation and debugging is also making sure that STM32F103 ARM can be reset when the
considered in the design process. For the above reason, power turns on. At the same time, when the system runs into a
popular 32-bit STM32F103 is selected as the systematic dead cycle, the ARM can be reset through corresponding
processor. STM32F103 has two channels 12-D/A converters. buttons. So, the proposed system needs to have both of power-
The module without additional A/D simplifies the peripheral on reset and key reset mode. Reset circuit design is shown in
circuit design and also reduce design cost. Fig. 2 and S1 is a reset button.

Fig.2. Diagram of systematic circuit Gas Detection

ZP07 air quality module adopts advanced thick film


semiconductor gas sensor. It is used in this paper and the
principle is shown in Fig. 3. Gas sensor inside ZP07 converts
the gas composition detected into an electrical signal and
transfer the signal into embedded chip through its D2 pin.
Embedded chip receives the signal and judges the current gas
composition and concentration according to the signal value.
ZP07 detection module could identify 10 levels of gas
concentration [4].

Fig.3. Chip ZP07 pin mapping

590
C. Weight Detection IV. SOFTWARE DESIGN AND IMPLEMENTATION
The principle of resistance strain type pressure transducer
is composed of elastomer, resistance strain gauge and cable. A. Underlying System Implementation
Internal circuit uses Huygens bridge that elastomer deforms The initialization of each individual component is
under load. As the conversion element, the resistance value of completed at first when the system is running. The parts that
resistance strain gauge will change after tensile or compression need to be initialized mainly includes ARM processor, touch
deformation. The value’s increasing or decreasing will break screen, all kinds of sensor and input/output [7].
the balance of the bridge and cause the bridge to generate
After the systematic initialization, all kinds of sensors will
corresponding differential signal for subsequent circuit
be started to collect environmental parameters. The collected
measurement and processing [5]. Principle of the sensor
raw data will be processed and displayed by ARM processor [8-
operation is shown in Fig. 4. 10]
.

B. APP Implementation
Due to the large number of systematic software modules,
an application program is needed to manage these functions so
that more convenient human-computer interaction could be
achieved. Each module is relatively independent. But in a
software interface, these modules can be managed uniformly
or separately. APP framework is shown in Fig. 6. The main
Fig.4. Schematic diagram of sensor principle function of each software module will be discussed
respectively.
As shown in Fig. 4, when a vertical positive pressure P is
applied to the beam, deformation is produced. The resistance 1) Temperature and Humidity Display
value of resistance strain gauge R1 and R3 is increasing under The temperature and humidity of the storeroom and
their tensile deformation. While, the resistance value of freezer is always displayed in real time. And the parameters
resistance strain gauge R2 and R4 is decreasing under their can also be adjusted and set according the family requirement.
compression deformation. The bridge is out of the balance 2) Wake-up Function
then and yields unbalanced voltage U, which value is x Voice wake-up. When the touch screen goes into
proportional to the positive pressure P on the beam. This hibernation, a special sound could be set to wake up it
process realizes the conversion from non-electric input into if the user wants to check the state of food in the
electric output. Wight sensor is connected with embedded chip refrigerator.
through A/D module, which module converts analog value to
digital value. The signal data transferred will be displayed on x Touch wake-up. When the touch screen goes into
the screen. The principle is shown in Fig. 5. hibernation, it could be waked up by touching if the
user wants to check the state of food in the refrigerator.
3) Food Reminder Display
x In the program, firstly, warning value is set, including
weight and number of eggs. When actual parameters
detected by pressure transducer and infrared sensor is
lower than that value, system program starts its
reminder function and displays related information at a
preset frequency. At the same time, the warning
message is transmitted to the bound mobile equipment
by wireless network.
x In the refrigerator, if the gas concentration detected by
air quality sensor is above 5, APP will automatically
send food rot warning signal to touch screen and
mobile equipment.
Fig.5. Schematic diagram of principle
4) Food Detection Data Display
D. Touch System When food is detected by pressure transducer and infrared
sensor, the corresponding test value will be transferred to
Capacitive touch screen LS530H-A8 is based on most
popular android system, which has the characteristics of high ARM processor. And then ARM will pass this value to APP
density, fast speed, low voltage and low power consumption. to display on the touch screen.
The interface of the touch screen is rich. Its power supply 5) Memo Function
voltage is the same as that of the refrigerator control board, The abundant interfaces and open source database makes
both of which is 12V. LS530H-A8 has the function of weather the touch module have expandability to add another module
display and WIFI data source [6]. simply. Users can record useful information on a notepad. It

591
also includes graffiti function that people can draw and save 7) Edit Function
anything to interact. Pictures and tables are editable. The pictures could be
6) Electronic Photo Album Function food pictures and self-defined pictures.
Users can store and display photos and music on touch
screen.
Touch screen
function

Temperature Food reminder Electronic photo


Wake-up Food detection Memo Edit
and humidity display album and music
data display
display player

Graffiti Record and Picture Table


Voice Touch
remind
wake-up wake-up
Food Self-defined
picture picture

Fig.6. Diagram of System Functions

V. CONCLUSION REFERENCES
The proposed system in this paper realizes an intelligent [1] Y. Cao and W. Liu, Application of Interactive Design in Intelligent
refrigerator design. Internal sensors are added to accurately Home Appliances, Science & Technology Association Forum, 2013.
manage the food state, effectively improve the food utilization [2] J. Catsoulis, Designing Embedded Hardware, 2nd ed., Australia:
O’Reilly Media, 2005.
frequency and avoid or reduce food expiration. By the way of
[3] N. Li, Application Development of STM32 Processor Based on
data monitoring, it is easy to understand whole family food MDK㸪Beijing: Beihang University Press, 2008.
intake and food categories, and further to establish family
[4] J. Liu, Example of STM32, Beijing: Beihang University Press, 2011.
nutrition health archives to avoid overeating. Touch screen
[5] C. Wang, W. Shang and X. Xia, Principle and Application of
operation increases interaction and entertainment between Transducer, Beijing: Posts & Telecom Press, 2012.
human and equipment. Reminder function added on mobile [6] Z. Liu and X. Chen, Application Design of Android in Intelligent Home,
equipment makes user have more intuitive food control. Journal of Information and Computer(theory), 2016.
Humanized operation provides people life more reference data [7] Q. Hua and J. Yuan, Embedded Training Center, Embedded Linux
and operation methods. This system achieves an interactive Application Development, 2nd ed., Beijing: Post & Telecom Press,
way for future development of smart home and provides a 2009.
reliable systematic form for intelligent system. [8] C. Zhao and Y. Mu, Embedded Linux Programming, Beijing: Posts &
Telecom Process, 2009.
[9] Mingri Technology, Android Project Development Introduction, Jilin:
Jilin University Press, 2017.
[10] M. Chen Ming, Application of Mobile Terminal of Android System in
Intelligent Home, Tianjin: Hebei University of Technology, 2014.

592

You might also like