final major presentation
TRANSCRIPT
![Page 1: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/1.jpg)
GUI BAESD DEVICE
CONTROLLER USING
MATLAB
![Page 2: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/2.jpg)
Objective
Introduction to Project.
Final look of project.
What is new in this project?
Future scope of project.
Problem faced while doing project.
Conclusion
![Page 3: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/3.jpg)
In this project we created a graphical user interface
for controlling the output of Arduino in the Matlab
environment by synchronizing the Arduino output to
work according to pushbuttons created in Matlab Gui
tool .
![Page 4: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/4.jpg)
In the following slides we will tell about the
graphical user interface and the Arduino and
serial communication of Arduino with laptop
and then synchronising of Matlab with Arduino.
![Page 5: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/5.jpg)
5
Graphical User Interface (GUI) MatLab provides Graphical User
Interface Development Environment(GUIDE).
A MatLab tool is used to create GUI’s GUI’s give the user a simplified
experience running a program.
![Page 6: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/6.jpg)
6
GUI should be consistent and easily understood.
Provide the user with the ability to use a program without having to worry about commands to run the actual program
Possible components of a GUI
Pushbuttons
Sliders
List boxes
Menus….etc
Sample GUI
![Page 7: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/7.jpg)
7
Allows the user to drag and drop components that he/she wants in the “layout” area of the GUI
All “guide” GUI’s start with an opening function
Callback is performed before user has access to GUI
Saving automatically generates an .m file and .fig file
.fig contains the binary GUI layout and .m contains the code that controls the GUI
![Page 8: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/8.jpg)
Arduino is an open-source physical computing platform based on a simple i/o board and a development environment that implements the Processing / Wiring language. Arduino can be used to develop stand-alone interactive objects or can be connected to software on your computer.
![Page 9: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/9.jpg)
Analog INPUTS
Digital I\OPWM(3, 5, 6, 9, 10, 11)
PWR IN USB (to Computer)
SCL\SDA(I2C Bus)
POWER 5V / 3.3V / GND
RESET
![Page 10: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/10.jpg)
Also including an Integrated Development Environment (IDE) for programming.
The language itself is based in C .
![Page 11: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/11.jpg)
It is Open Source, both in terms of Hardware and Software.
It is cheap(1300रु), the hardware can be built from components or a prefab board can be purchased for approx 900रु.
It can communicate with a computer via serial connection over USB.
It can be powered from USB or standalone DC power.
![Page 12: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/12.jpg)
Plug it into the USB port and install the USB drivers that come with the IDE.
Open up the Arduino IDE and select the COM port, usually COM1 or COM2 on a Windows machine.
Within the IDE, select the BAUD rate (communication speed for serial connections)
Set BAUD rate to 9600 on Windows.
![Page 13: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/13.jpg)
There is arduinosupport package which works with Matlab.
Code is written aside so that arduinooutput is controlled via using matlab.
.
![Page 14: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/14.jpg)
clear all;
global a;
a= arduino(‘com 1’);
a=pinMode(4,’output’);
a=pinMode(8,’output’);
the name of push buttons can be changed by changing string name.
![Page 15: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/15.jpg)
In simple control of two leds , two pushbuttons are being created in the gui tool then the codes to be written to control the output of arduinothrough pushbutton is given as
For pushbutton 1
a=digitalwrite(4,0);
a=digitalwrite(8,1);
For pushbutton 2
a=digitalwrite(4,1);
a=digitalwrite(8,0);
![Page 16: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/16.jpg)
![Page 17: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/17.jpg)
In this project we have demonstrated to link the Matlab to control arduino output.
Here only pushbuttons are to be used by the user so no need to write the program again and again once the decalartion has been done .
This project doesn’t need exceptional coding skills for arduino and matlab . A simple knowledege to both can work .
![Page 18: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/18.jpg)
Now this can be extended for home automation
using gsm module/bluetooth/android
application/ dtmf .
For eg if we use gsm module we can connect
with arduino via transmitter and receiver pins
then programming the gsm module using AT
commands and we can control the basic home
appliances just by dialing the phone no
associated with the gsm module .
![Page 19: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/19.jpg)
1. Serial port communication : the arduino used was not working because of the serial port was not getting identified in the computer.
2. Gsm Module : while working with gsmmodule the supplied voltage of 12V was given instead of 9V which led to the damage of it and it doesn’t catches the signal .Overall we couldn’t extend our project because of this anamaly.
![Page 20: Final major presentation](https://reader033.vdocument.in/reader033/viewer/2022051414/55aa3c4b1a28ab212a8b4848/html5/thumbnails/20.jpg)
Project is useful for the purpose of home
automation if extended further and is reliable
once installed . Our project dealt with simple
implementation of connecting matlab and
arduino to control the variables or equipments
connected on the output pins of it.