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
UA-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.
Que buena, gran aporte muchas gracias
@@avantcdmx2028La ignorancia es tan grande
Amazing video don't listen to people trying to discourage you.
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...
Now, try using two sensors and triagulate the object to generate a "double-axis" position
Exactly, then it would be a sonar!
#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");
}
Well done bro💪👑
It's amazing how ChatGPT can do the simplest tasks that you can get done quicker by looking up a tutorial.
Now ı can heck naasa
Dayyum bro I am with u
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😂
Now you can see where Aliens are hiding
Good project
Good job!
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.
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 😂❤
Good job❤
This was my Bsc Project1 :)😅
Could work better with infrared but whats the programmed code though
yay i can finally use this to make a small pantsir S1 anti-air to shoot down flies :))))
와~ 좋은 레이더군요!
Что-то мне подсказывает что это не твоя разработка
Естественно, он же негр! ☝
Вспоминаем видосы алекса
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.
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!
The Ping)) is an amazing module!
HC-SO4
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
When you only downloaded one sound effect
Wouldn’t be a radar if it’s using sound waves bro. This is sonar
Great invention for birdbox creatures
Excelente
How far could I get this to work? Any sensor upgrade to make this for boat purposes?
Radars are usually inside a protective white sphere or cone. I wonder how they filter off this protective cocoon from the radar signal?
good, congrats, bdw is a sonar
Genious are meteors made to burn to enlight their century. God bless you Brother for sharing your expertise.
This is how a Sensor reverse works in your car.
Wow❤❤❤
It's a infrared sensor
this is a sonar sensor using ultrasonic sound
Quá đẳng cấp
Can you try to build something like that with mmwave sensor?
Круто
Cool nice invention or re-invention
can I ask what algorithm I should use for this kind of project?
Thanl you!!!
Its possible triangular an object in movement?
Como se llama el sofware para imprimir los datos en esa interfas de scanner verde ???
Why the amgle is 15 to 120?, i get a took for dont doing the 190 angle complete
Nice toy, but if it works with SOuNd (even if humans can't hear that sound), it is SONar.
RADar works with RADio waves.
And for processing on android, what would it be like?
Kool😎
very nice
Хмм где-то тут прячется Алекс гайвер
Ага, я такой по его прошивке делал
Ну он слабый очень
@@l.r.o.channel6898а как с ним связаться?
Well, If they could build this stuff back in the 1941, Then it should be incredibly easy now
I need the full video of this with explanation ?
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
Thanks, cool video ! Subscribed!
Good one.. but just change the name to ultrasonic or sonar. , radar is based on radio waves
❤️❤️❤️
Cool! Maybe don't include the gun cocking sounds next time.
How many Americans are we going to hear before something happens?
Bilgisayarda ki program hangisi
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
With an inches distance? Who needs it?😂😂😂
شن وظفية الاداء هذه لو تكرمتو ؟
طبعا سؤال موجه لعرب يشاهد فيديو
Alex gyver project lol
Yes
what is the weights that this motor can hold.
Does it work for mosquitoes?🪖💣
Which platform did you use to read
How did he do that visualization? I really puts a nice bow on it
Try add a slip ring, make a mounting unit, add a small laser unit, then you can make a laser turrent.
To kill mosquitoes 😂?
Please record the full video
Shift+del
That is quite something
Can it detect distance?
Make some STM32 DIY
What's the name of that site?? May I know???
Stepper motor would be more efficient for this
where can I find ready-made codes
Is that the parallax sensor?
how the servo rotate slowly
Many countries need this technology due to tight budget since covid then wars
Lmao, shut the f up what is this comment
what
What is the name of the cable/connector ?
can i do this using ir sensor
good
how??
how can we get the coding to make this
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
Why it isn't sensing laptop? 🤔
Short range setting
İ did this when i am 7 years old (i swear)
👌👌👍
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
Sir, good day, give me the sketch please
I NEED THİS RADAR
Arayüz nasıl yaptın acaba ❤❤
👌
How did you do that and the com
а 3д сканер так сделать можно?
Is there a change to get the code?,because we want to make that as a school project
Just have a look at m.ua-cam.com/video/NOPacu3E1-4/v-deo.html
In the description is the code
Author! Do you have any more sounds in stock???
Tutorial please ❤
Search its on how to mechatronics
Ultasonic sensor hc-sr 04 and arduino
ZejQOX69K5M its url
ua-cam.com/video/NwmcNCvUcDc/v-deo.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
😂 ya esta casi listo el submarino
Dónde puedo comprar uno así?