I used this video to make this. I’ve been using these kind of projects to help me through mental health problems. Doing things like this help me forget about negative stuff and focus on making something cool. Thank you for this. It means more than you realise.
you should think about getting a 3D printer aswell. You can really sink in hours on fun projects were also your arduino can make some really fun things! good way to also learn circuitry. Can maybe help you alot of your well being!
I spent 11 hours and could only come up with 1/100 of what you have displayed. It is a top of the line Sketch that I have seen so far , and very intuitive , making an autonomous robot has become fairly possible and simple . Thank you for sharing You are a gifted individual , Thank you
This is very cool! A couple of suggestions for similar projects - 1 - an Arduino *sonar*. Would be very cool to test on a local lake! 2 - an Arduino ground-penetrating radar. Would be awesome for learning about local geology and maybe even finding fossils!
Love this project! I made a similar radar with 4 ultrasonic distance sensors in 4 directions and changed the servo to a stepper motor, and 3D printed the case.
@@Bradiant exactly. It is SONAR. Edit: You can even read the source code for this. distance = calculateDistance() And the function calculateDistance() uses the very sonar formula to compute distance if the duration is known by multiplying it with the speed of the particular sound used and dividing by 2 because it gets reflected to reach the "radar", travelling twice the same distance.
Really cool project! Here's an idea for you; convert the sonic sensor to a lidar sensor. Lidar is much more accurate so in theory you would be able to map the room on one plane(unless you add another servo for vertical panning) by keeping track of what angle your sensor is facing (theta) and multiplying the sine and cosine of the angle by the distance measure to find the components of vector displacement from the sensor. Then you would have visible room dimensions mapped out!
You projects are always out of the box. Perfect. Your processing tutorial 06 is not enough, wish you make more on using it, explaining the most important functions
Even though this has been online for 8 years or so this still looks cool and is a great project to practice data transfer through a COM port. I just built it for myself for fun. Thank you.
Simple and brilliant. Thank you very much for the video, you saved me a lot of work. And, of course, I'll give you credit (and publish the links to your site) on my class. Also, I apologize too for the geeks that felt the urgent need to remind you that it's a SONAR, not a RADAR. (SOuNd, not RADio Detection And Ranging)
The code you use to calculate the distance is what I found online, however if you put it in a for loop 100 times and average out the readings, it is far more accurate.
Same lol i know how u feel, i wasted so much time on games instead of programming, now I'm 28 and wishing i would have started at 10 lol its gonna be a hard one to learn.
I have a question, assuming it rotates 180 degrees and it detects an object in front of the sensor, HOW can i print the angle of the object on the servo?
Been trying for 2 days now, but cant get it to work :(. The Cervo rotates very slowly, tried reducing the delay on the algorithm again and again, but with no sucess :(
Air temperature affects speed of sound but only a little per +/- 5C. Still, go measure outside when it is -10C or colder with formula for +20C indoors.
Interesting project! But I'm a bit confused, how is this a Radar and not a Sodar (A Sonic detection version of the Sonic/Sound navigation Sonar)? I mean... it uses Sonic waves right? And not Radio waves? Or I'm I missing something? LIDAR = Light Detection and Ranging (uses electromagnetic radiation) RADAR = Radio Detection and Ranging (uses electromagnetic radiation) SODAR = Sonic Detection and Ranging (uses acoustic wave (aka Sound) Larger than 20 kHz Sound Waves are known as Ultrasonic) SONAR = Sonic/Sound Navigation and Ranging (uses Sonic and or Sound as it ranges through the whole frequency range (infrasonic->acoustic frequencies->ultrasonic) ... I could be wrong though... (which is why I wrote it as a question)
+Papy Nova (Kamo) I think he used it to keep it simple. The servo can just be clamped to +/- and the third pin to a digital out of the arduino. The servo only needs a PWM signal which you can create with a plain arduino without any other ICs. For a stepper motor you need an IC/driver hardware which drives the motor which is basically the motor shield for arduino. You can also do some funky stuff with ICs on your own cause it draws too much power to directly source it from the digital or analog outputs.
Hi. What modifications do you think should be included to turn your radar into sonar project? I mean underwater presence sensor. Thanks and congratulations.
+Dejan Nedelkovski hello sir Wat if we want to add few things .. I mean Wat if any object is in the radar range it shows up/detected in the radar chart that you have made a
The problem with sonar/radar based on this kind of ultrasonic distance detector is very small angular resolution. This popular sonar is sensitive in angle about 30 degrees or something. So you cannot "see" things smaller than this.
He put the title as "Radar" to get more people to watch the video, so he gets more money out of it. Proof of this can be found on his site. He names it Radar(sonar)
What is the maximal range of this prototype ? I will try to use it next week to get distances in real time. Is it easy to do it ? But I don't need the automatic rotation .
Thank you sir, l could also create the radar because of you.i learned so many thing from you as a beginner,keep this up,the way that you are demostrating is interesting.thank you again.:-)
Good work, Dejan! I wonder if it would be possible to program many of the ultrasonic sensors into an array to gain higher resolution so that an image could be shown? Also, what is the output wattage of the sensors?
Hey guys, I've got a question, Where do I upload the second set of code to? I can't do it because then it would replace the second set of code now? How do I observe the data coming out and being plotted onto the graph..ie the Sonar? Do I turn on the serial Monitor to do that? What do I do ?
Excellent video , I put on my laptop , but only half appears the radar resize 1280x768 which is the resolution of my pc , but keeps coming remembered only comes smaller window , which function can be changed to make it look full , Thank you! !
How in the world you connect a servo motor directly to arduino, considering that motor takes to much voltage and arduino pins only provides 30mA how the servo didnt burn the arduino? so if that's possible what are the motor drivers are made for?
so if the 40mA pin is just sending signal to servo and not exciting the coil I guess that specific servo has a motor driver inside which converts the arduino 40ma signal into a power signal to feed the coils , is it right?
Great project. I works on MAC, so I had to modify a couple of instructions of the processing program. The first one related the communication port (myPort = new Serial(this, "/dev/cu.usbmodem1421", 9600); , and the second one related the font (myFont = createFont("Georgia", 32);. I used your second release of the Processing program, to adapt the system to the screen resolution. Everything worked fine. Thank you very much.
I was thinking of something similar but with more power to be used as a fishing probe. Those that emit the signals in 85 and 200 kilocycles I imagine are piezo electric microphones so you should not have much problem in placing it in contact with water. What do you think Have you thought about taking it beyond?
Sir Dejan please help me out! Whats wrong with your code? myPort = new Serial(this,"COM4", 9600); it says : Error Opening serial port COM4: Port not found? please Sir help ? this code is for the processor
Next time use em impulse to determine objects. Metall can reflect em waves... you can abuse this to determine its direction and distance extremely accurate since it its em waves travel with speed of light.
Say you were making this for school, how much voltage would you need battery wise to power the arduino and a 3.5 inch lcd. Would be really helpful as I'm building this for a school project.
In order to use the ultrasonic chip as an ultrasound device like ob/gyn doctors do would you need a different chip, an array of chips or to program the chip differently?
Hello. I have 1 problem. When I connect the sensor and the servo to the arduino uno, the servo motor goes very slowly, is there a problem with the power supply? Do I need to make some external power supply for the servo motor? I see that you also used Uno and these two in the project and it works at normal speed.
Браво Дејан! Не се познаваме ама дозволи да го изразам мојот восхит кон твојата работа! Случајно наидов на твојот профил. Имено, утрово добив известување по мејл дека некој од Јапонија станал мој „subscriber“ на мојот RUclips канал. Немам навика да гледам кој се тие што стануваат „претплатници“ на мојот канал, но денес, ете, погледнав да видам кој е тој јапонец. На неговиот профил забележав дека неодамна гледал некое од твоите видеа на RUclips. Го погледнав и јас и пријатно се изненадив кога видов дека си од Македонија, а разгледувајќи ги твоите други видеа, и твојата веб-страница видов колку интересни работи правиш! Уште еднаш БРАВО! Посакувам да има повеќе млади инженери како тебе во Македонија!
Hi, I have followed arduino tutorial 06:Processing, with a view to doing the rader project, the arduino and Processing code has loaded and appears to work but I have no text I the Processing window, can you help
He probably would have used a USB cable to connect the Arduino board to the Laptop and the Laptop might be hooked to the TV via a HDMI cable...Otherwise, the TV you're seeing could just be a monitor that he's connecting to...
If I wanted to get one from you like buy one from you already built and coded and ready to with the radar part with a 100 foot cable from the pcb board so I can mount the radar in my own man made dish or dome how much would you charge
Hello there, may i know are there any codes to slow the servo motor degree spinning speed? mine is moving too quick to maneuver slowly degree by degree. thanks!
Hi Dejan. First thing - great tutorials. I follow your channel and I found here many interesting tips. I built similar robot to yours and I used your code to check how it works. I noticed that servo slows down from time to time. It does not move smoothly as in your video and tiny delays can be spotted. I think my servo is not damaged as it happens in random position. I read some tutorials and sometimes they reccomend voltage stabilisers. Do you think the voltage may be the problem?
When I make a separate programme for servo motor it runs smoothly but when I give command of full programme in that the servo motor rotates very very slowly and also stepwise very slow so what is the problem in this kindly provide me the solution . Thanks 🙏🙏
hi, would a Ping sensor work for this? wondering as it only has Ground, 5V and signal and the sensor you use has 4, including echo and trigger... thanks!
I used this video to make this. I’ve been using these kind of projects to help me through mental health problems. Doing things like this help me forget about negative stuff and focus on making something cool.
Thank you for this. It means more than you realise.
you should think about getting a 3D printer aswell. You can really sink in hours on fun projects were also your arduino can make some really fun things! good way to also learn circuitry. Can maybe help you alot of your well being!
@@mattlenn100 That's if people want to pay the price tag.
good job for finding alternate things to do shows great I.Q. much love from ohio
🤗
@@codingvio7383 printers are getting pretty cheap now
I spent 11 hours and could only come up with 1/100 of what you have displayed. It is a top of the line Sketch that I have seen so far , and very intuitive , making an autonomous robot has become fairly possible and simple . Thank you for sharing You are a gifted individual , Thank you
Stay blessed BRo
Hey 7 year old people
This is very cool!
A couple of suggestions for similar projects -
1 - an Arduino *sonar*. Would be very cool to test on a local lake!
2 - an Arduino ground-penetrating radar. Would be awesome for learning about local geology and maybe even finding fossils!
Great! It's works ...I'm 62 years old, and I am happy like a child...with this toy ...thanks!!!
I hope u still doing this stuff
Love this project! I made a similar radar with 4 ultrasonic distance sensors in 4 directions and changed the servo to a stepper motor, and 3D printed the case.
This is NOT a RADAR (RAdio Detection And Ranging) but a SONAR (SOund Navigation And Ranging).
Radar system operates in UHF or microwaves.
Radar works across the whole radio spectrum. See ITU FAT recommendations and look up over the horizon radar which uses HF.
@@electechyt Old but it says ultraSONIC right in the name. It uses sound waves making it Sonar.
looks like a radar to me
@@Bradiant exactly. It is SONAR.
Edit: You can even read the source code for this.
distance = calculateDistance()
And the function calculateDistance() uses the very sonar formula to compute distance if the duration is known by multiplying it with the speed of the particular sound used and dividing by 2 because it gets reflected to reach the "radar", travelling twice the same distance.
Really cool project! Here's an idea for you; convert the sonic sensor to a lidar sensor. Lidar is much more accurate so in theory you would be able to map the room on one plane(unless you add another servo for vertical panning) by keeping track of what angle your sensor is facing (theta) and multiplying the sine and cosine of the angle by the distance measure to find the components of vector displacement from the sensor. Then you would have visible room dimensions mapped out!
chain3519 i need to understand this please contact me
How can I contact you to know more about this
You projects are always out of the box. Perfect.
Your processing tutorial 06 is not enough, wish you make more on using it, explaining the most important functions
As someone that is pretty new to arduino you make this very clear and accessible. Thank you!!!!
I have just built this as my first Arduino project. Thank you for posting, it is fantastic!
Great project! I like how you built the code and described it. I look forward to recreating this project.
Even though this has been online for 8 years or so this still looks cool and is a great project to practice data transfer through a COM port. I just built it for myself for fun. Thank you.
Well done compadre, the layout of the video was on point. Short, helpful and easy to understand.
Simple and brilliant. Thank you very much for the video, you saved me a lot of work. And, of course, I'll give you credit (and publish the links to your site) on my class. Also, I apologize too for the geeks that felt the urgent need to remind you that it's a SONAR, not a RADAR. (SOuNd, not RADio Detection And Ranging)
I don't know how to thank you. you are the best, keep up the good work
+Dejan Nedelkovski THANK YOU SO MUCH FRIEND :D
Thanks man you speak very good for me i am a spain teenager who has fourteen years and i can understand you, thanks for speak slowly
hey i need to understand this please please contact me
Even though your English isn't perfect, I can understand what you're saying. Keep learning! youre doing good!
The code you use to calculate the distance is what I found online, however if you put it in a for loop 100 times and average out the readings, it is far more accurate.
Best learning platform for everyone thanks to "How to Mechatronics"
I should have been doing this rather than playing ps3...
I should be too rather than playing cs
are you doing this now instead of ps4?
Same lol i know how u feel, i wasted so much time on games instead of programming, now I'm 28 and wishing i would have started at 10 lol its gonna be a hard one to learn.
You excited for the ps5 😂😂
@@jarno_r question 9
My parents would be so proud... thanks man. You just got a new subscriber!
woow, great idea... congratulations, it stayed amazing
I have a question, assuming it rotates 180 degrees and it detects an object in front of the sensor, HOW can i print the angle of the object on the servo?
Beautiful project. Greetings from Italy!
Awesome project and great explanation. It's up and running on my desk now. Thanks!!
Jonas Werner hi how to make it display in our monitor
Been trying for 2 days now, but cant get it to work :(. The Cervo rotates very slowly, tried reducing the delay on the algorithm again and again, but with no sucess :(
I love you sir, This is what I was looking for, Thank you.
- Thumbs Up
...very cool project and simply and intuitively demonstrated. Thanks!
Air temperature affects speed of sound but only a little per +/- 5C.
Still, go measure outside when it is -10C or colder with formula for +20C indoors.
Servo in moving very slowly... What can i do? 😰😕
your tutorials for arduino very good
Very cool. Now make one with stereoscopic rangefinders, so it can detect depth too :)
can we use an arduino uno instead of mega for this project?????????
Yes, you can
Continue na pegada você vai longe, valeu mesmo!
Interesting project!
But I'm a bit confused, how is this a Radar and not a Sodar (A Sonic detection version of the Sonic/Sound navigation Sonar)?
I mean... it uses Sonic waves right? And not Radio waves? Or I'm I missing something?
LIDAR = Light Detection and Ranging (uses electromagnetic radiation)
RADAR = Radio Detection and Ranging (uses electromagnetic radiation)
SODAR = Sonic Detection and Ranging (uses acoustic wave (aka Sound) Larger than 20 kHz Sound Waves are known as Ultrasonic)
SONAR = Sonic/Sound Navigation and Ranging (uses Sonic and or Sound as it ranges through the whole frequency range (infrasonic->acoustic frequencies->ultrasonic)
... I could be wrong though... (which is why I wrote it as a question)
Cool project, and very nice editing of the video!
What is the maximum range for this sensor? Is it only for the 21"? Or will it go further than that?
You can increase the resolution of the scan, by using a gear, but also increase the speed to compensate.
what kind the viasualization use? visual basic, java or what? can share the code with us
where is the radar thingie at 3:20? I am new to Arduino and I make this and don't know where the radar screen is.
+Papy Nova (Kamo) I think he used it to keep it simple. The servo can just be clamped to +/- and the third pin to a digital out of the arduino. The servo only needs a PWM signal which you can create with a plain arduino without any other ICs.
For a stepper motor you need an IC/driver hardware which drives the motor which is basically the motor shield for arduino. You can also do some funky stuff with ICs on your own cause it draws too much power to directly source it from the digital or analog outputs.
This is freaking amazing !
It would be nice to extend this to detect soft matter or water. How do the values change in the radar if you put some objects there filled with water?
+Dejan Nedelkovski Assume you have water vapour between two radars. I know its concentration can be approximated.
Hi. What modifications do you think should be included to turn your radar into sonar project? I mean underwater presence sensor. Thanks and congratulations.
This was awesome! Thanks for making the video.
Very interesting and perfect explanation
+Dejan Nedelkovski hello sir Wat if we want to add few things .. I mean Wat if any object is in the radar range it shows up/detected in the radar chart that you have made a
Amazing project. GREAT job man !!
The problem with sonar/radar based on this kind of ultrasonic distance detector is very small angular resolution. This popular sonar is sensitive in angle about 30 degrees or something. So you cannot "see" things smaller than this.
I have subscribed! You are now my sensai
it's an active sonar not radar xP
If you tell me you love me, i'll tell you I love you too! ugh.
M R Gamer
Sounds kinda gay. "you stroke me off and I'll stroke you off" 😂
Assuming both are male.
NiceWhenEarned RudeMostlyElse i love me
He put the title as "Radar" to get more people to watch the video, so he gets more money out of it.
Proof of this can be found on his site. He names it Radar(sonar)
What is the maximal range of this prototype ? I will try to use it next week to get distances in real time. Is it easy to do it ?
But I don't need the automatic rotation .
Thank you sir, l could also create the radar because of you.i learned so many thing from you as a beginner,keep this up,the way that you are demostrating is interesting.thank you again.:-)
It's a sonar.
Good work, Dejan! I wonder if it would be possible to program many of the ultrasonic sensors into an array to gain higher resolution so that an image could be shown? Also, what is the output wattage of the sensors?
Really cool project! Thank you for sharing!
coming late to the party, but thanks mate ! really enjoyed building my first arduino project !
It's never too late, I'm glad you enjoyed it! :)
Thanks for the tutorial! I actually managed to make it 3D and then visualize it in Unity. Check out the video if you want to see how it turned out!
Could you send the link?....Thanks
Do you have any idea why the radar works only in one sense?, when the sensor is backward the radar is empty
whether the image output of the sonar is an application or it is made by the source code?
Hey guys, I've got a question, Where do I upload the second set of code to? I can't do it because then it would replace the second set of code now? How do I observe the data coming out and being plotted onto the graph..ie the Sonar? Do I turn on the serial Monitor to do that? What do I do ?
how can I make the output fit to my screen??
Can you write the material list?
Hello, just wondering but is there something emitting radio waves or is it just a camera seeing where things are?
It's not a camera, it's ultras sonic waves traveling through the air, hitting the object, and bouncing back to the sensor.
Developed a great electronic project for beginners thanks a lot.
Excellent video , I put on my laptop , but only half appears the radar resize 1280x768 which is the resolution of my pc , but keeps coming remembered only comes smaller window , which function can be changed to make it look full , Thank you! !
what a amazing project, thanks for sharing!
calculateDistance' was not declared in this scope
What am ı doing?
Declared calculateDistance.
int calculateDistance;
Nicely done! Thank you for sharing!
How in the world you connect a servo motor directly to arduino, considering that motor takes to much voltage and arduino pins only provides 30mA how the servo didnt burn the arduino? so if that's possible what are the motor drivers are made for?
so if the 40mA pin is just sending signal to servo and not exciting the coil I guess that specific servo has a motor driver inside which converts the arduino 40ma signal into a power signal to feed the coils , is it right?
Great project. I works on MAC, so I had to modify a couple of instructions of the processing program. The first one related the communication port (myPort = new Serial(this, "/dev/cu.usbmodem1421", 9600); , and the second one related the font (myFont = createFont("Georgia", 32);. I used your second release of the Processing program, to adapt the system to the screen resolution. Everything worked fine. Thank you very much.
What part of procesiing code do i need to chanve to maie the radar distance longer from 40cm to more?
I was thinking of something similar but with more power to be used as a fishing probe. Those that emit the signals in 85 and 200 kilocycles I imagine are piezo electric microphones so you should not have much problem in placing it in contact with water. What do you think Have you thought about taking it beyond?
Sir Dejan please help me out! Whats wrong with your code? myPort = new Serial(this,"COM4", 9600);
it says : Error Opening serial port COM4: Port not found?
please Sir help ? this code is for the processor
Fantastic craftsmanship! Thank you for your contribution to the community. +++++
Next time use em impulse to determine objects. Metall can reflect em waves... you can abuse this to determine its direction and distance extremely accurate since it its em waves travel with speed of light.
Say you were making this for school, how much voltage would you need battery wise to power the arduino and a 3.5 inch lcd. Would be really helpful as I'm building this for a school project.
+Dejan Nedelkovski would I need to programme any differently to get it to display onto the lcd?
what happens when you move the object it is detecting up, how could you make it possible, that the sonar still detcts it?`
In order to use the ultrasonic chip as an ultrasound device like ob/gyn doctors do would you need a different chip, an array of chips or to program the chip differently?
Hello. I have 1 problem. When I connect the sensor and the servo to the arduino uno, the servo motor goes very slowly, is there a problem with the power supply? Do I need to make some external power supply for the servo motor? I see that you also used Uno and these two in the project and it works at normal speed.
Браво Дејан! Не се познаваме ама дозволи да го изразам мојот восхит кон твојата работа! Случајно наидов на твојот профил. Имено, утрово добив известување по мејл дека некој од Јапонија станал мој „subscriber“ на мојот RUclips канал. Немам навика да гледам кој се тие што стануваат „претплатници“ на мојот канал, но денес, ете, погледнав да видам кој е тој јапонец. На неговиот профил забележав дека неодамна гледал некое од твоите видеа на RUclips. Го погледнав и јас и пријатно се изненадив кога видов дека си од Македонија, а разгледувајќи ги твоите други видеа, и твојата веб-страница видов колку интересни работи правиш! Уште еднаш БРАВО! Посакувам да има повеќе млади инженери како тебе во Македонија!
I have a question! Where can I get Processing IDE? What is it and how it works? I never saw it before?
***** Big thx! Got everything ! Will try you project RADAR it's really cool! Thx for you help again!
Hey, great work. I'd like to know thw beam width of the sensor. Thnx is advance.
Hi, I have followed arduino tutorial 06:Processing, with a view to doing the rader project, the arduino and Processing code has loaded and appears to work but I have no text I the Processing window, can you help
What makes you think an ultrasonic sensor is being used for Radar?
sir, can we do this using a stepper motor instead of a servo motor?
and also can we not use the arduino and use a electronic circuit to drive this?
how did you connect it to your tv? did you use some jacks or wires something? sorry im a complete beginner
He probably would have used a USB cable to connect the Arduino board to the Laptop and the Laptop might be hooked to the TV via a HDMI cable...Otherwise, the TV you're seeing could just be a monitor that he's connecting to...
Do we need any additional libraries in PROCESSING?
sir, half part of the radar is not visible
may i know how to resize or make it small so that the radar view fit on my monitor
If I wanted to get one from you like buy one from you already built and coded and ready to with the radar part with a 100 foot cable from the pcb board so I can mount the radar in my own man made dish or dome how much would you charge
Just want to let you know that this is a sonar because it uses sound waves instead of electromagnetic waves, like a radar does.
Hey, what's the L-shaped connector you used to connect the sensor?
which code should I use in arduino Ide the first or the second one?
Hello there, may i know are there any codes to slow the servo motor degree spinning speed? mine is moving too quick to maneuver slowly degree by degree. thanks!
You just have to increase the delay time in the loop section for controlling the servo motor.
Your servo motor is limited to 180 degree only? or 360?
there is nothing mentioned regarding connectivity to a screen in your project...how can the beginners come to know ? how to do it ?
hi. could you help me in wich part of the code i should modified to be able to read an object more than 40 cm. thank you sir
Hi Dejan. First thing - great tutorials. I follow your channel and I found here many interesting tips.
I built similar robot to yours and I used your code to check how it works. I noticed that servo slows down from time to time. It does not move smoothly as in your video and tiny delays can be spotted. I think my servo is not damaged as it happens in random position. I read some tutorials and sometimes they reccomend voltage stabilisers. Do you think the voltage may be the problem?
Very, very cool project I am new to Arduino and this looks like a nice little project I might do after I get some experience. Thanks.
When I make a separate programme for servo motor it runs smoothly but when I give command of full programme in that the servo motor rotates very very slowly and also stepwise very slow so what is the problem in this kindly provide me the solution . Thanks 🙏🙏
hi, would a Ping sensor work for this? wondering as it only has Ground, 5V and signal and the sensor you use has 4, including echo and trigger... thanks!
I copied and pasted the code and my servo will spin but the radar picture won't show up form processing.
Any ideas?
Bravo! *applause* What a neat thing to do with an Arduino. I have to try this. And I never knew about Processing.org. Thank you!!
Nice code realisation!