DIY Radar With Ultrasonic Sensor And Chat-GPT Generated Arduino Code | Coders Cafe
HTML-код
- Опубликовано: 9 сен 2024
- 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐔𝐬 𝐎𝐧
Patreon : / coderscafetech
BuyMeACoffee : www.buymeacoff...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐌𝐞𝐞𝐭 𝐓𝐡𝐞 𝐂𝐫𝐞𝐚𝐭𝐨𝐫𝐬
Nekhil Ravi (Hardware Development, Narration)
Shebin Jose Jacob (Software Development)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
𝐖𝐞'𝐫𝐞 𝐅𝐚𝐢𝐫𝐥𝐲 𝐒𝐨𝐜𝐢𝐚𝐥 𝐏𝐞𝐨𝐩𝐥𝐞
Facebook : / coderscafetech
Instagram : / coderscafetech
Twitter : / coderscafetech
RUclips : / @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...
- - - - -
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.
Que buena, gran aporte muchas gracias
@@avantcdmx2028La ignorancia es tan grande
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
Amazing video don't listen to people trying to discourage you.
This is a plagiarized video
Now, try using two sensors and triagulate the object to generate a "double-axis" position
Exactly, then it would be a sonar!
@@varunahlawat169 can u share resources, where i can learn build this small sonar project. I have found a Radar one already. And a video where creator talks about Triagulate and builds a airsoft motion detection Turret.
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...
#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");
}
thx for the code
I have no idea what's this because am still a beginner but looks cool
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😂
Well done bro💪👑
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 😂❤
It's amazing how ChatGPT can do the simplest tasks that you can get done quicker by looking up a tutorial.
Genious are meteors made to burn to enlight their century. God bless you Brother for sharing your expertise.
Good project
Now ı can heck naasa
Dayyum bro I am with u
Nice toy, but if it works with SOuNd (even if humans can't hear that sound), it is SONar.
RADar works with RADio waves.
Now you can see where Aliens are hiding
yay i can finally use this to make a small pantsir S1 anti-air to shoot down flies :))))
This was my Bsc Project1 :)😅
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
You gotta work your own brain, people are just going to get lazy with gpt doing all of the thinking.
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
I did it for my semester project without chatgpt back in 2017
Could work better with infrared but whats the programmed code though
Umm is it alright if I ask you what you did in your bachelors? Because I'm interested in learning such content and am soon getting into an engineering college and looking forward to working hard for a career in Robotics, so that's why asking your qualifications
Looks like electrical engineering
@@amadouelcapotoure189 oh I see, thanks a lot!
Amazing video ❤
Good job!
Good one.. but just change the name to ultrasonic or sonar. , radar is based on radio waves
All look good on table....but what is the use of this !?. If you do some home or industrial appliance .. it's good
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
The Ping)) is an amazing module!
HC-SO4
Radars are usually inside a protective white sphere or cone. I wonder how they filter off this protective cocoon from the radar signal?
Great invention for birdbox creatures
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
Many countries need this technology due to tight budget since covid then wars
Lmao, shut the f up what is this comment
what
Super
good, congrats, bdw is a sonar
Try add a slip ring, make a mounting unit, add a small laser unit, then you can make a laser turrent.
To kill mosquitoes 😂?
Can be use for ghost detector right?😅
When you only downloaded one sound effect
Good job❤
Wow❤❤❤
Что-то мне подсказывает что это не твоя разработка
Естественно, он же негр! ☝
Вспоминаем видосы алекса
What software did you used for the sonar display?
It's a infrared sensor
this is a sonar sensor using ultrasonic sound
Cool! Maybe don't include the gun cocking sounds next time.
Can you try to build something like that with mmwave sensor?
I did this project in mu first semester of Engineering
Well, If they could build this stuff back in the 1941, Then it should be incredibly easy now
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.
Cool nice invention or re-invention
Kool😎
What are those clips used at the end of the wire called?
Oh, new radar
This is how a Sensor reverse works in your car.
Stepper motor would be more efficient for this
Thanks, cool video ! Subscribed!
Scanner ❎️Ghost finder ✅️
Cool
This is more like lidar, is that a camera, if yes it’s lidar
Shift+del
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 done one that draws shape bob mk2
Tutorial please ❤
Search its on how to mechatronics
Ultasonic sensor hc-sr 04 and arduino
ZejQOX69K5M its url
ruclips.net/video/NwmcNCvUcDc/видео.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
How far could I get this to work? Any sensor upgrade to make this for boat purposes?
How did he do that visualization? I really puts a nice bow on it
If you are getting robbed, this may save your life
Excelente
Is the code of machine learning
Its possible triangular an object in movement?
And for processing on android, what would it be like?
My man, why would you attach the servo on a breadboard?
My man, it's just a prototype
It's just rested upon it
Damnnn you glued the Arduino behind the sensor itself 😂
와~ 좋은 레이더군요!
Please record the full video
Хмм где-то тут прячется Алекс гайвер
Ага, я такой по его прошивке делал
Ну он слабый очень
@@l.r.o.channel6898а как с ним связаться?
A DIY radar with ultrasonic sensors works by emitting ultrasonic waves, measuring the time for them to bounce back, and calculating the distance to detect objects in its environment
I need the full video of this with explanation ?
can I ask what algorithm I should use for this kind of project?
yo guys irl raycasting just dropped
Sir full video plz
Does it work for mosquitoes?🪖💣
Why call it radar when it is sonar?
Make some STM32 DIY
With an inches distance? Who needs it?😂😂😂
Go to 116 in processing code and change 0.215 to 0.195
Was programming too hard for you to figure out like the rest of us?
They probably used some premade libraries and code. There is a lot of great arduino code out there.
@@itoibo4208 it says made with chatgpt
CAN WE INCREASE ITS RANGE
İ did this when i am 7 years old (i swear)
Thanl you!!!
شن وظفية الاداء هذه لو تكرمتو ؟
طبعا سؤال موجه لعرب يشاهد فيديو
How many Americans are we going to hear before something happens?
Como se llama el sofware para imprimir los datos en esa interfas de scanner verde ???
You could use normal motor and lable start position
What's the use for a radar that has a range of 1 foot
Can be used to detect mosquitoes😂😂😂
@@donji1235b hahaha
Why the amgle is 15 to 120?, i get a took for dont doing the 190 angle complete
Круто
Where can I find the code for this?
Distance display is not in the correct position, common chat got mistakes for gui
Author! Do you have any more sounds in stock???
good
That is quite something