DIY Radar With Ultrasonic Sensor And Chat-GPT Generated Arduino Code | Coders Cafe
ฝัง
- เผยแพร่เมื่อ 3 มี.ค. 2023
- 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐔𝐬 𝐎𝐧
Patreon : / coderscafetech
BuyMeACoffee : www.buymeacoffee.com/codersca...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐌𝐞𝐞𝐭 𝐓𝐡𝐞 𝐂𝐫𝐞𝐚𝐭𝐨𝐫𝐬
Nekhil Ravi (Hardware Development, Narration)
Shebin Jose Jacob (Software Development)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐖𝐞'𝐫𝐞 𝐅𝐚𝐢𝐫𝐥𝐲 𝐒𝐨𝐜𝐢𝐚𝐥 𝐏𝐞𝐨𝐩𝐥𝐞
Facebook : / coderscafetech
Instagram : / coderscafetech
Twitter : / coderscafetech
TH-cam : / @coderscafetech
Official Email : mail.coderscafe@gmail.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐆𝐞𝐚𝐫𝐬 𝐔𝐬𝐞𝐝
Shot On: Canon M50
Microphone: Boya M1
Tripod : DigiTek DTR 520 BH
Software: Adobe Premiere | Adobe Photoshop | Adobe Audition | Adobe After Effects
- - - - -
Music by: INOSSI
Listen: spoti.fi/2EzvEA6
Watch: • INOSSI - Moments (Offi...
- - - - - - วิทยาศาสตร์และเทคโนโลยี
It's a sonar, not a radar
Sonar is using sound wave to detect objects like bats, specifically used underwater cause radio waves cant travel in water. While radar uses radiowaves or electromagnet, radar send out radiowaves and once it detects object it reflect back to the radar so that it will show you on the screen. Radio waves and sound waves are different.
@@user-gs4ev5by5vdifferent but not so different considerinf youd need to have an electromagnet for both sonar and radar, you're just targeting the different frequency range they operate in.
@@user-gs4ev5by5vthat's an ultraSONIC sensor. Hence SONAR.
@@user-gs4ev5by5vwas this in reply to someone
@@user-gs4ev5by5vdid he say anything about them? He just said it's sonar
For a small project, nice work. The ultrasonic sensor emits sound waves, which are mechanical waves requiring a medium for propagation. Therefore, this project essentially functions as sonar. In contrast, radar uses electromagnetic waves, specifically radio waves. If an object is present, the radio waves reflect to the radar, allowing for object detection and distance determination.
In summary, radio waves (electromagnetic waves) can propagate in a vacuum and are limited in water, for example, which is the best option for radar. Unlike sound waves, which can propagate in water but not in a vacuum.
Loved this thank you brother 🙏🏽
Так же радар рассчитывает скорость объекта по Доплер смещению частоты❤
Ultrasound waves are electromagmetic ones, so as radio waves.
i think 360 degree serwo, or a motor with spinning sensor is more suitable for this build
Right and spinning wires as well!
@@b03tz есть такой вид контакта, как специальные площадки и металлические щётки, которые скользят по этим площадкам
@@b03tzuse a slip ring
Just install a second setup behind it it’ll be mirrored
@@Zomerlad yeah it is much easyest way to do it...
cant even detect the laptop in front of it 😂
Bro it's out of range, you feed it the max range to detect
Upto 4 metres range
@@HaseebAdnan015 cm
It very well can, but the Arduino ignores returns that far away. Just like a real life radar.
@@HaseebAdnan040cm, so i believe 0.4m, sir.
Now, try using two sensors and triagulate the object to generate a "double-axis" position
Exactly, then it would be a sonar!
Well done bro💪👑
Amazing video don't listen to people trying to discourage you.
The reloading sound not make sense 😐
Es que esta construyendo en Estados Unidos jajasksk
Seeing the interface I was expecting the alien motion detector sound😂
@@alguiennose8266😂
You are the fun police
Lol😂
Damnnn you glued the Arduino behind the sensor itself 😂
Now you can see where Aliens are hiding
ive been trying to make this work for hours. i have the processing code nearly done and calling on the right com port, however the display screen is not updating continiously it just freezes as soon as i run the code.
I honestly discourage people from using chat-gpt because coding is a good skill to have in itself.
Yeah, but bro.. saves SO much time 🎉
@@livetohash6152 The people needs to use it for have an idea how to fix the problem not to fix the problem
@@livetohash6152 Sometimes, but most times it draws you into a project before you realize the code is garbage, and you wasted a few months.
Not bad for debugging, but definitely people should try and solve issues themselves when they’re learning. But if my code doesn’t execute after 20 different tweaks I’m going to google or chat gpt or copilot lol
The Ping)) is an amazing module!
Radars are usually inside a protective white sphere or cone. I wonder how they filter off this protective cocoon from the radar signal?
와~ 좋은 레이더군요!
#include
const int trigPin = 9; // Trigger pin of ultrasonic sensor
const int echoPin = 10; // Echo pin of ultrasonic sensor
Servo servoMotor; // Servo motor object
void setup() {
Serial.begin(9600); // Start serial communication
servoMotor.attach(8); // Attach servo motor to pin 8
pinMode(trigPin, OUTPUT); // Set trigPin as OUTPUT
pinMode(echoPin, INPUT); // Set echoPin as INPUT
}
void loop() {
for (int angle = 0; angle = 0; angle -= 10) { // Sweep back from 180 to 0 degrees
scan(angle); // Perform the scan at the given angle
delay(50); // Small delay for smoother motion
}
}
void scan(int angle) {
int distance;
// Move the servo to the specified angle
servoMotor.write(angle);
delay(100); // Delay to allow the servo to reach the position
// Send a short ultrasonic pulse
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Read the distance from the ultrasonic sensor
duration = pulseIn(echoPin, HIGH);
// Calculate the distance in centimeters
distance = duration * 0.034 / 2;
// Print the angle and distance to the serial monitor
Serial.print("Angle: ");
Serial.print(angle);
Serial.print(" degrees, Distance: ");
Serial.print(distance);
Serial.println(" cm");
}
Many countries need this technology due to tight budget since covid then wars
Lmao, shut the f up what is this comment
Tutorial please ❤
Search its on how to mechatronics
Ultasonic sensor hc-sr 04 and arduino
ZejQOX69K5M its url
th-cam.com/video/NwmcNCvUcDc/w-d-xo.htmlsi=I6YUrGNAZS13TdUk
The link for tutorials please
i think you can just use a normal ultrasnoic tutorial - if its giving u a distance value u beep it and if u get infinty (or no value , not sure how the api works) dont do anything
The sound effects were artificially produced, an ultrasonic sensor and servo motor doesn't sound like that.
wires don't sound like guns when you plug them in either
Monkey
If you are a soldier hiding in a house, and if enemy soldiers come to you, you turn on this device called radar and see how many soldiers there are
I need the full video of this with explanation ?
can I ask what algorithm I should use for this kind of project?
It’s inaccurate too. You’re just improvising 😅. Cool though.
The sonar wave is also traversal so it’ll get reflected best at shortest reflecting distance to the receiver and not exactly a forward direct since the target isn’t planar.
What you experience is stealth behavior but on a lower resolution. Reflecting the waves away from the receiver is the highest priority 😂❤
When you only downloaded one sound effect
❤❤❤
Which platform did you use to read
It's a infrared sensor
this is a sonar sensor using ultrasonic sound
Quá đẳng cấp
What's the name of that site?? May I know???
Excelente
Como se llama el sofware para imprimir los datos en esa interfas de scanner verde ???
very nice
Wouldn’t be a radar if it’s using sound waves bro. This is sonar
Nice toy, but if it works with SOuNd (even if humans can't hear that sound), it is SONar.
RADar works with RADio waves.
yay i can finally use this to make a small pantsir S1 anti-air to shoot down flies :))))
Well, If they could build this stuff back in the 1941, Then it should be incredibly easy now
Try add a slip ring, make a mounting unit, add a small laser unit, then you can make a laser turrent.
To kill mosquitoes 😂?
Thanks, cool video ! Subscribed!
Good one.. but just change the name to ultrasonic or sonar. , radar is based on radio waves
Why it is not covering the full 180 degree??
Cuz the servo motor cant turn more than a 180 degrees. He can use another motor but for that you will need drivers that are expensive. Servo motors are cheapand easy to program
@@BarbaroR4alternatively: stepper motor and then just add a stop switch somewhere
Many hobby servos can do 180° and they are dirt cheap
Haven't messed with servos at all, but that servo looks like the type to not be able to do 180° unless it has some specific input I do not know of (maybe a raw square wave?)
It’s chat GPT code
How did he do that visualization? I really puts a nice bow on it
Thanl you!!!
What is the name of the cable/connector ?
This is how a Sensor reverse works in your car.
Genious are meteors made to burn to enlight their century. God bless you Brother for sharing your expertise.
Such a short range
But it was clean and sweet 👍🏻
The short range is just coming from the radar UI. The sensor itself can recognize items up to 3 meters away
👍
Please record the full video
Well done bro👏
What is the software you used for digital picture
Processing IDE
@@CodersCafeTech than you
Great invention for birdbox creatures
How to do this bro
Is that the parallax sensor?
Cool! Maybe don't include the gun cocking sounds next time.
where can I find ready-made codes
Wow❤❤❤
what is the weights that this motor can hold.
good, congrats, bdw is a sonar
firing Ak 47 gun 😂
Cool nice invention or re-invention
Что-то мне подсказывает что это не твоя разработка
Естественно, он же негр! ☝
Вспоминаем видосы алекса
Is there a change to get the code?,because we want to make that as a school project
Just have a look at m.th-cam.com/video/NOPacu3E1-4/w-d-xo.html
In the description is the code
How do you get the sonar graphic on the PC screen?
The image is generated using processing, you can find the code on the web, search Arduino ultrasonic sensor with processing
Which code of Arduino do u use for it
it is basically a c language but you have to know its documentation and library first
@@ec_harshitsrivastava_be21e67c++
My man, why would you attach the servo on a breadboard?
My man, it's just a prototype
It's just rested upon it
That is quite something
Alex gyver project lol
Yes
Does it work for mosquitoes?🪖💣
Así comenzó skynet 😂
Author! Do you have any more sounds in stock???
Хмм где-то тут прячется Алекс гайвер
Ага, я такой по его прошивке делал
Ну он слабый очень
@@l.r.o.channel6898а как с ним связаться?
👌👌👍
哪里可以买到了呢?
good
How can I make it??
Go to 116 in processing code and change 0.215 to 0.195
Sir, good day, give me the sketch please
Arayüz nasıl yaptın acaba ❤❤
Dónde puedo comprar uno así?
а 3д сканер так сделать можно?
Bilgisayarda ki program hangisi
How far away can It detect objects
40 centimetres
@@merc622That's wrong. The sensor itself can detect objects up to ~ 4 meters. It's the HC-sr04
Full video link
Can u provide the things used
can i do this using ir sensor
laptop to radr konsi cabel hai
wow amazing
Where is the code ?
code program?
Bro, esko mai BGMI 😂me lekar jaunga. 🎉🎉🎉
pro!
😂 ya esta casi listo el submarino
Bro which sensor is used and how to nake this project please make full video
Sensor is hc-sr04
Where can i get the code?
Pistol reload sound was hoho fuxkkd up
How many Americans are we going to hear before something happens?
What is the program in laptop ?
it is the arduino ide
What's the app
Make some STM32 DIY
How did you do that and the com