Design of A Sensor-Based Adaptive Smart Home System Using NXP ARM Cortex-M3
Design of A Sensor-Based Adaptive Smart Home System Using NXP ARM Cortex-M3
M. I. U. Haque1, D. Valles1
1
Ingram School of Engineering, Texas State University, San Marcos, Texas, USA
Abstract - This paper discusses a project of designing a environment selections. When detected, the light will
smart system which is user-defined and adaptable for automatically turn on to pre-defined configurations.
different environments such as home, offices, and
Now, it is surely not convenient and not pleasant for the
classrooms. By using the values received from temperature
eyes when someone enters a dark room and suddenly a light
sensor and motion sensor some electrical appliances such as
is on with its full brightness. Also, the brightness of light
fan and light may turn on or off. Moreover, the user can
depends on different environment and configured by the user.
define fan speed, brightness of lighting, as well as, time to
For this project, there is an additional option for the user to
gradually increase the brightness of a light to its full
select the right light mode by the ‘Light selector’ input in
capacity. Also, other electrical appliances chosen by the user
other words how bright the user wants the light as well as how
may turn on automatically. All current statuses of appliances
much time the user needs to gradually increase the brightness
will be shown on an LCD. Same scenario can be applied to a
to the selected level. This will also be done using the DIP
bedroom, kitchen, toilet, office, etc. configurations. In short,
(Dual In-line Package) switch and PWM technique.
this project aims to build a smart system which is user defined
and adaptable to every possible indoor environment.
1 Introduction
Smart systems have proven to facilitate automation for
different applications for home and office environments. The
impact and presence of embedded systems is felt directly in
our daily walk of life [1]. The applications of an embedded
system vary from cellular phones, digital cameras,
biomedical and home appliances up to ubiquitous and sensor
networking [2]. For this paper, we introduce an embedded
solution that can provide a form to automate room
environments.
Embedded solutions provide many forms of facilitating
many aspects of living and are being applied for smart-living
concepts. Figure 1 is the basic input/output system diagram
Fig.1. Basic Input-Output design of the project
of the proposed project. This project uses NXP Cortex-M3
LPC1768 microprocessor as the main processing unit along Depending on the environment, a user can define which
with a temperature sensor and motion sensor. The light or fan to be turned on. Each personalized setting
temperature sensor will measure the temperature of the room mentioned here may vary by different users and they can be
and there will be a predefined temperature value in the changed accordingly which shows the flexibility of this
processor. If the measured temperature is equal or larger than system. As the whole project will be demonstrated using
this predefined value, then the fan will automatically turn on. breadboard and microcontroller, LEDs will be used as the
Additionally, the user can control the speed of the fan by the light and small cooling fan as the fan. The project will be
‘Fan mode selection’ input and this will be done using PWM completed using NXP LPC1768 microcontroller, TMP36
technique and DIP (Dual In-line Package) switch. The fan temperature sensor, passive infrared motion sensor, LCD,
can also be turned off if the user wants. Similarly, the motion DIP switch, LEDs, cooling fan, n-channel MOSFET, diode,
detector will detect any human presence in different jumper wires and resistors.
The following sections are organized as: Section 2 the device a ground and 2.7 to 5.5 VDC in providing the
discusses background and motivation of this project. Section required power source. The output voltage can be converted
3 gives whole procedure. Section 4 discusses outcomes of the to temperature easily using the scale factor of 10 mV/°C [6].
project. Conclusions and scope for future work are included
in Section 5.
Figure 5 shows the outcome of toilet environment. The last environment is bedroom. For bedroom, three
When the motion is detected by the motion sensor, different settings are implemented. For first setting, the LED
LED(Yellow) turns on with its full brightness. Environment, increases its brightness to full capacity in 5 seconds and Fan
temperature and light status is shown on the LCD. For kitchen speed will be 100 percent. PWM technique is used here to
environment, the exact same thing happens and this time a drive the fan and LED. For second setting, time to reach the
red LED turns on when motion is detected. Figure 6 shows full brightness is 10 seconds and fan speed is 75 percent. For
the outcome for kitchen environment. Again, all statuses are third setting, time to reach the full brightness is 15 seconds
shown on the LCD. and fan speed is 60 percent. Fan and light statuses along with
temperature reading are shown in Figure 9.
6 References
[1] A. Kommu, N. K. Uttarkar, and R. R. Kanchi, “Design
and development of sensor-based mini projects for
embedded system laboratory using ARM Cortex-
M3(LPC1768),” in International Conference on
Information Communication and Embedded Systems
(ICICES2014), 2014, pp. 1–6.
[2] “Human-Centered Smart Systems and Technologies,”
IEEE Access, 01-Jun-2017.
Fig. 8. Outcome for Living Room environment
[3] L. Xin, S. Ling, S. Quan, C. Changzhu, and C.
Xiaoqiang, “Temperature controlling system for LED
lighting based on ARM,” in 2013 3rd International
Conference on Consumer Electronics, Communications
and Networks, 2013, pp. 649–652.
[4] P. Susmitha, Design and Implementation of Weather
Monitoring and Controlling System.
[5] H. Mitsui, H. Kambe, and H. Koizumi, “Use of Student
Experiments for Teaching Embedded Software
Development Including HW/SW Co-Design,” IEEE
Trans. Educ., vol. 52, no. 3, pp. 436–443, Aug. 2009.
[6] “Temperature Sensor - TMP36 - SEN-10988 - SparkFun
Electronics.” [Online]. Available:
https://www.sparkfun.com/products/10988. [Accessed:
19-Mar-2018].
Fig. 9. Outcome for Bedroom environment [7] “PIR Motion Sensor (SEN-08630) | Mbed.” [Online].
Available: https://os.mbed.com/components/PIR-
5 Conclusion and future scope Motion-Sensor/. [Accessed: 19-Mar-2018].
[8] “mbed Power Control/Consumption | Mbed.” [Online].
This paper proposes an embedded solution that
Available:
provides an automation and configuration for smart-living
https://os.mbed.com/users/no2chem/notebook/mbed-
environments. This sensor-based project will be useful for
power-controlconsumption/. [Accessed: 19-Mar-2018].
learning embedded systems deeply and preparing for
industrial work. The main work is to measure analog data [9] https://www.switch-science.com