Making Radar Using Arduino, Ultrasonic Sensor, and MATLAB

Published

Introduction: Making Radar Using Arduino, Ultrasonic Sensor, and MATLAB

In this project we are going to make a simple radar to detect obstacles.
Range depends on the range of the Ultrasonic sensor we used (in this project : 3 meter) .

Step 1: Components

Components :

1 - Arduino Uno
2 - Ultrasonic Distance Sensor ( link : https://www.parallax.com/product/28015).
3- Servo Motor.

Step 2: Wiring and Connections

1- Connect Ultrasonic sensor (5V and GND) to Arduino (5V and GND).
2- Connect Ultrasonic sensor (SIG) to Arduino (Digital pin 8).

3- Connect Servo motor (5V and GND) to Arduino (5V and GND).
4- Connect Servo motor (SIG) to Arduino (Digital pin 9).

5- Connect Arduino Uno to your Computer using USB cable.

Step 3: Coding

There are two code files attached in this step :
The first one for Arduino and the other of MATLAB.

for Arduino code :
you don't need to modify it , just upload it on Arduino.

for MATLAB code :
you need to modify line 28 ( s1 = serial('COM12'); )
to your new com port # .

NOTE : Before closing MATLAB, close the serial port by writing "s1.close()" in MATLAB workspace.

3 People Made This Project!

Recommendations

  • Make it Move Contest

    Make it Move Contest
  • Oil Contest

    Oil Contest
  • Planter Challenge

    Planter Challenge
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

Can u please explain the Matlab code to me on my email id harshp1697@gmail.com.. have doubts regarding the number specification used in the code

33 Comments

i want to do that using python. can uh pls help me?

Can you make the radar sensor thing screen show up with Arduino? I've tried uploading the Arduino code to my Arduino Uno, but am not sure how you view the radar using Arduino. I have also tried looking at the Arduino serial monitor.

I WANT TO USE HCSR04

PLEASE HELP ME IN CONNECTING WITH ARDUINO

2 replies

need it yet?

I also want. You've done it yet?

hello.where is the coding for visual?

Hey,

Nice work there. I like to know if the rotation can be 360' and will it work as same. Can it calculate the distance of objects it pick up too?

how do i get the my computer to display the radar

hey, when i did the project seeing your site, there was a problem with the speed. the speed of my servo motor while rotating is toooooo slow. how would i solve this problem. please give me a correct suggestion because i need to do it for my science fair. hope for your fast response

Hello, i have a mac, and how do i do to know what its my port#???

Thanks

7 replies

can you tell me y proxy is needed

can you tell me y proxy is needed

can you tell me y proxy is needed

can you tell me y proxy is needed

can you tell me y proxy is needed

can you tell me y proxy is needed

can you tell me y proxy is needed