Professional Documents
Culture Documents
Abstract:
In this project, we are going to build our home automation project using matlab and arduino,
which is GUI, based home automation system using arduino and matlab.
Project Introduction:
In this project, we are using MAT LAB with Arduino to control the Home appliances, through a
Graphical User Interface in Computer. Here we have used wired communication for sending
data from computer (MAT LAB) to Arduino. In computer side, we have used GUI in MAT
LAB to create some buttons for controlling home appliances.
Components:
Arduino UNO
USB Cable
ULN2003
Relay 5 volt
Bulb with holder
Connecting wires
Laptop
Power supply
PVT
Circuit Explanation:
Circuit of this project we have used an Arduino UNO board and relay driver ULN2003 for
driving relays. Three 5 volt SPDT Relays are connected to Arduino pin number 3, 4 and 5,
through relay driver ULN2003, for controlling LIGHT, FAN and TV respectively.
Block diagram:
In this project we have used 3 bulbs for demonstration, which indicates Fan, Light and TV.
Programming Explanation:
When we press any button from the GUI window then it sends some commands to Arduino and
then Arduino do that operation. After installing Arduino MATLAB IO support package, we can
access Arduino from the MATLAB by using the same Arduino functions, with some little
variation, like:
1. For making a pin HIGH in Arduino we write code as digital Write (pin, HIGH)
2. In MAT LAB we will use this function with the help of an object or variable like,
a.digitalWrite (pin, HIGH); and likewise so on.