Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 02:27:33 02:27


Login with username, password and session length


Pages: [1]
Print
Author Topic: Ultra Sonic Sensor Arduino Uno and MATLAB GUI  (Read 4125 times)
0 Members and 1 Guest are viewing this topic.
xpress_embedo
Active Member
***
Offline Offline

Posts: 173

Thank You
-Given: 122
-Receive: 254


« on: December 13, 2015, 02:12:24 14:12 »

In this project Arduino Uno uses the Ultra Sonic Sensor to sense the obstacle distance and then sends this distance to PC whenever MATLAB Application request for it.

Arduino UNO Code is written in Arduino IDE.
PC Application is written in MATLAB.

Working
Arduino Calculates the Obstacle Distance, and whenever MATLAB PC Application Request, Ardiuno Uno board sends the data to MATLAB, which will be displayed on the MATLAB GUI, apart from this MATLAB also send packet to change the on board led state, to which Arduino change its state and reply back with the current led state and this is also updated on MATLAB GUI.
Full Source Code Download link is attached.
YouTube video of the running setup is also attached or you can see it from here also https://www.youtube.com/watch?v=_EdyW0971fY.






The data sharing between the MATLAB and Arduino is done using a packet whose format is as follow:

Header, Destination Address, Source Address, Length, Op_Code, Data (n Bytes), CRC16 (Optional), Checksum

The PC application is created in such a way, that it is easier to add other functionality with this GUI as base code, that's why sharing this.
But still there are lots of improvements which i will do, will also develop some other examples and share on the same page.
Logged
xpress_embedo
Active Member
***
Offline Offline

Posts: 173

Thank You
-Given: 122
-Receive: 254


« Reply #1 on: March 27, 2016, 02:00:02 14:00 »

In this project Arduino Uno uses the Ultra Sonic Sensor to sense the obstacle distance and then sends this distance to PC whenever LabVIEW Application request for it.

Arduino UNO Code is written in Arduino IDE.
PC Application is written in LabVIEW.

Working
Arduino Calculates the Obstacle Distance, and whenever LabVIEW PC Application Request, Ardiuno Uno board sends the data to LabVIEW , which will be displayed on the LabVIEW GUI, apart from this LabVIEW also send packet to change the on board led state, to which Arduino change its state and reply back with the current led state and this is also updated on LabVIEW GUI.
Full Source Code Download link is attached.

YouTube video of the running setup is also attached or you can see it from here also
https://www.youtube.com/watch?v=MK8r8ZnTvR0&feature=youtu.be&a

The data sharing between the LabVIEW and Arduino is done using a packet whose format is as follow:

(In this no source and destination is there, as the communication is between PC and device hence removed)
Header, Length, Op_Code, Data (n Bytes), CRC16 (Optional), Checksum

The PC application is created in such a way, that it is easier to add other functionality with this GUI as base , that's why sharing this.
But still there are lots of improvements which i will do, will also develop some other examples and share on the same page.

The main VI is UltraSonicSensor.vi

Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC