DIY Radar With Ultrasonic Sensor And Chat-GPT Generated Arduino Code | Coders Cafe

Поделиться
HTML-код
  • Опубликовано: 16 дек 2024

Комментарии • 609

  • @PatrykStm
    @PatrykStm Год назад +4111

    It's a sonar, not a radar

    • @JesryDimate-m9v
      @JesryDimate-m9v Год назад +322

      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.

    • @justalexproject
      @justalexproject Год назад +52

      ​@@JesryDimate-m9vdifferent 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.

    • @themagician2008
      @themagician2008 Год назад

      ​@@JesryDimate-m9vthat's an ultraSONIC sensor. Hence SONAR.

    • @TheNapalmFTW
      @TheNapalmFTW Год назад

      ​@@JesryDimate-m9vwas this in reply to someone

    • @EAGLEYE-ow7vf
      @EAGLEYE-ow7vf Год назад

      ​@@JesryDimate-m9vdid he say anything about them? He just said it's sonar

  • @younesd6298
    @younesd6298 11 месяцев назад +702

    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.

  • @AllahumaAlFirdaws
    @AllahumaAlFirdaws 11 месяцев назад +196

    Amazing video don't listen to people trying to discourage you.

    • @lamda9914
      @lamda9914 3 месяца назад +5

      This is a plagiarized video

  • @pablomonteiro8330
    @pablomonteiro8330 Год назад +272

    Now, try using two sensors and triagulate the object to generate a "double-axis" position

    • @varunahlawat169
      @varunahlawat169 11 месяцев назад +16

      Exactly, then it would be a sonar!

    • @mohitsethi-w7k
      @mohitsethi-w7k 4 месяца назад +5

      ​@@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.

    • @Felipe_2097
      @Felipe_2097 3 месяца назад +1

      That d be biangulate, no?

    • @BillyOrBobbyOrSomething
      @BillyOrBobbyOrSomething 8 дней назад

      Oh so that’s how it’s done. Always wondered that in the back of my head but never got around to researching it

  • @kiriolvishnergo6140
    @kiriolvishnergo6140 Год назад +246

    i think 360 degree serwo, or a motor with spinning sensor is more suitable for this build

    • @b03tz
      @b03tz Год назад +11

      Right and spinning wires as well!

    • @kiriolvishnergo6140
      @kiriolvishnergo6140 Год назад +4

      @@b03tz есть такой вид контакта, как специальные площадки и металлические щётки, которые скользят по этим площадкам

    • @Howhungry1234
      @Howhungry1234 Год назад +4

      ​@@b03tzuse a slip ring

    • @Zomerlad
      @Zomerlad 11 месяцев назад +2

      Just install a second setup behind it it’ll be mirrored

    • @kiriolvishnergo6140
      @kiriolvishnergo6140 11 месяцев назад +2

      @@Zomerlad yeah it is much easyest way to do it...

  • @ellorord5968
    @ellorord5968 10 месяцев назад +104

    #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");
    }

  • @definatlynotmax
    @definatlynotmax Месяц назад

    That's cool! It even shows the distance and I like how compact it is compared to the other ones

  • @Bws098
    @Bws098 Месяц назад +2

    Nice project. Keep it up. Subscribed. :)

  • @theroboholics7268
    @theroboholics7268 2 месяца назад +2

    another cool stuff, like it. expand function more pls

  • @RuanoProductions
    @RuanoProductions Год назад +315

    The reloading sound not make sense 😐

    • @alguiennose8266
      @alguiennose8266 Год назад +30

      Es que esta construyendo en Estados Unidos jajasksk

    • @Jexinator
      @Jexinator Год назад +7

      Seeing the interface I was expecting the alien motion detector sound😂

    • @plabanadhikary
      @plabanadhikary Год назад +2

      ​@@alguiennose8266😂

    • @slowly_r7849
      @slowly_r7849 Год назад +7

      You are the fun police

    • @Hmx_mrx
      @Hmx_mrx Год назад +1

      Lol😂

  • @RicardoReyes-hl6be
    @RicardoReyes-hl6be 4 месяца назад +17

    I have no idea what's this because am still a beginner but looks cool

    • @thecorraleseffect1182
      @thecorraleseffect1182 Месяц назад

      You can get to this point very quickly with practice. Arduino has tutorials build in to the IDE. They are get for beginners or learning a specific topic!

  • @davidpastia-gh2jq
    @davidpastia-gh2jq Год назад +50

    Well done bro💪👑

  • @vinny142
    @vinny142 6 месяцев назад +5

    It's amazing how ChatGPT can do the simplest tasks that you can get done quicker by looking up a tutorial.

  • @brandonly27
    @brandonly27 8 дней назад

    It's interesting how the Arduino controllers, themselves, now have gotten smaller than the sensors themselves.

  • @M1551NGN0
    @M1551NGN0 7 месяцев назад +3

    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

    • @amadouelcapotoure189
      @amadouelcapotoure189 6 месяцев назад +1

      Looks like electrical engineering

    • @M1551NGN0
      @M1551NGN0 6 месяцев назад

      @@amadouelcapotoure189 oh I see, thanks a lot!

  • @Clover501
    @Clover501 Год назад +30

    The sound effects were artificially produced, an ultrasonic sensor and servo motor doesn't sound like that.

  • @1998hondaprelude7
    @1998hondaprelude7 9 месяцев назад

    yay i can finally use this to make a small pantsir S1 anti-air to shoot down flies :))))

  • @rikarika-k8b
    @rikarika-k8b Месяц назад

    Awesome bro!!
    If you dont mind, could you tell me what code you used on that radar?
    So intetrsting!!!

  • @Jason-o5s
    @Jason-o5s 2 месяца назад

    Cheer~~~a system for detecting the presence, direction, distance, and speed of aircraft, ships, and other objects, by sending out pulses of high-frequency electromagnetic waves that are reflected off the object back to the source.😊

  • @TG_EditX_
    @TG_EditX_ 11 месяцев назад +2

    Such a short range
    But it was clean and sweet 👍🏻

    • @V1nc3nt00
      @V1nc3nt00 10 месяцев назад

      The short range is just coming from the radar UI. The sensor itself can recognize items up to 3 meters away

  • @techwith_Aamir
    @techwith_Aamir Год назад +8

    Why it is not covering the full 180 degree??

    • @BarbaroR4
      @BarbaroR4 Год назад +1

      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

    • @GamingwithPortals
      @GamingwithPortals Год назад +3

      @@BarbaroR4alternatively: stepper motor and then just add a stop switch somewhere

    • @TheFoxranger
      @TheFoxranger Год назад +3

      Many hobby servos can do 180° and they are dirt cheap

    • @mka8915
      @mka8915 Год назад

      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?)

    • @BlackDub21
      @BlackDub21 Год назад +5

      It’s chat GPT code

  • @sudippaul4487
    @sudippaul4487 5 месяцев назад

    Amazing video ❤

  • @cyrillekaouche-ps7jq
    @cyrillekaouche-ps7jq Год назад +2

    Genious are meteors made to burn to enlight their century. God bless you Brother for sharing your expertise.

  • @andreventura4137
    @andreventura4137 2 месяца назад

    The computer does not exist on the radar.😂
    But on the same time is a small and a nice work, congrats.😉

  • @esm720
    @esm720 Год назад +26

    I honestly discourage people from using chat-gpt because coding is a good skill to have in itself.

    • @livetohash6152
      @livetohash6152 10 месяцев назад +3

      Yeah, but bro.. saves SO much time 🎉

    • @putakusinvida7501
      @putakusinvida7501 9 месяцев назад

      ​@@livetohash6152 The people needs to use it for have an idea how to fix the problem not to fix the problem

    • @_EasyOnEasy_
      @_EasyOnEasy_ 8 месяцев назад

      @@livetohash6152 Sometimes, but most times it draws you into a project before you realize the code is garbage, and you wasted a few months.

    • @thatboyzerk1680
      @thatboyzerk1680 7 месяцев назад +6

      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

    • @genma986
      @genma986 5 месяцев назад +1

      You gotta work your own brain, people are just going to get lazy with gpt doing all of the thinking.

  • @chriszenker6890
    @chriszenker6890 3 месяца назад

    Not bad! Did you test until what distance it is accurate by any chance?

  • @leilanielectronics
    @leilanielectronics 10 месяцев назад

    The Ping)) is an amazing module!

  • @vorhautmanager
    @vorhautmanager 5 дней назад

    From Elegoo Tank🤝🏻

  • @SlimiSlime
    @SlimiSlime 9 месяцев назад +2

    Was programming too hard for you to figure out like the rest of us?

    • @itoibo4208
      @itoibo4208 8 месяцев назад

      They probably used some premade libraries and code. There is a lot of great arduino code out there.

    • @SlimiSlime
      @SlimiSlime 8 месяцев назад

      @@itoibo4208 it says made with chatgpt

  • @AfeMar1221
    @AfeMar1221 5 месяцев назад

    This was my Bsc Project1 :)😅

  • @ChubzillaAnimations
    @ChubzillaAnimations 20 дней назад

    I need to put this in an animatronic so when it sees only one person in the room it jumpscares them

  • @rainbowseal69
    @rainbowseal69 Год назад +2

    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 😂❤

  • @prezz118
    @prezz118 10 месяцев назад +1

    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.

  • @Ash_G
    @Ash_G 7 месяцев назад

    Radars are usually inside a protective white sphere or cone. I wonder how they filter off this protective cocoon from the radar signal?

    • @medulla0blongata65
      @medulla0blongata65 2 месяца назад

      THIS IS A LIDAR. infared light. NOT A SONAR OR RADAR

    • @Ash_G
      @Ash_G 2 месяца назад

      @@medulla0blongata65 Have you lost the ability to read? The video TITLE says radar with an ultrasonic sensor. Where does it say laser pulses??

    • @Ash_G
      @Ash_G Месяц назад

      @BanterMaestro2-y9z Nice. I love it when replies make sense at a code implementation level.

  • @user-qu6jc2dc8m
    @user-qu6jc2dc8m 4 месяца назад

    I did it for my semester project without chatgpt back in 2017

  • @olli1068
    @olli1068 11 месяцев назад

    Nice toy, but if it works with SOuNd (even if humans can't hear that sound), it is SONar.
    RADar works with RADio waves.

    • @medulla0blongata65
      @medulla0blongata65 2 месяца назад

      You know what's crazy. This uses infrared light to detect distance, therefore making it a LIDAR!

  • @kanikaadhikari6747
    @kanikaadhikari6747 Год назад +1

    I am facing the issue in serial monitor in my esp32 wroom board. My serial monitor only shows the special characters. I tried many times using mane frequency 9600 and others but result 0. Please tell me how can I solve the issue.
    I am using M1 mac.

    • @CodersCafeTech
      @CodersCafeTech  Год назад

      What code are you uploading?

    • @kanikaadhikari6747
      @kanikaadhikari6747 Год назад

      @@CodersCafeTech any code which need to display something in serial monitor

    • @kanikaadhikari6747
      @kanikaadhikari6747 Год назад

      @@CodersCafeTech a simple code to print "hello" the hello is not displaying. It displays the special characters not the input or output

    • @RoboticAIprojects
      @RoboticAIprojects 11 месяцев назад

      Check baud rate in arduino code and keep same baud rate in serail monitor also

    • @drayhancolak
      @drayhancolak 9 месяцев назад

      Check the serial baud rate it should be same with declared in code

  • @serafimh516
    @serafimh516 2 месяца назад

    Amazing video

  • @Aka3nD
    @Aka3nD 7 месяцев назад +2

    Could work better with infrared but whats the programmed code though

  • @OceWhat12345
    @OceWhat12345 11 месяцев назад

    Try add a slip ring, make a mounting unit, add a small laser unit, then you can make a laser turrent.

    • @nourdraw1548
      @nourdraw1548 11 месяцев назад

      To kill mosquitoes 😂?

  • @Frosted-flame
    @Frosted-flame Месяц назад +1

    Can you tell me what that part is called I need it for my robot

  • @peterkavanagh64
    @peterkavanagh64 Месяц назад

    Try I removed the five devices replaced my five redundant items with one now abilty to work and maintain. That market listens more.

  • @kishorkumarkeekan8649
    @kishorkumarkeekan8649 5 месяцев назад

    All look good on table....but what is the use of this !?. If you do some home or industrial appliance .. it's good

  • @cyberpsion
    @cyberpsion 14 дней назад

    Laptop: I have mastering art of disappearing

  • @wscamel226
    @wscamel226 10 месяцев назад +1

    Well, If they could build this stuff back in the 1941, Then it should be incredibly easy now

  • @Cinilkin
    @Cinilkin Год назад +4

    Now you can see where Aliens are hiding

  • @justin_ebenazar
    @justin_ebenazar 9 месяцев назад +3

    It's a infrared sensor

    • @itoibo4208
      @itoibo4208 8 месяцев назад +3

      this is a sonar sensor using ultrasonic sound

    • @medulla0blongata65
      @medulla0blongata65 2 месяца назад

      @@itoibo4208 no

    • @itoibo4208
      @itoibo4208 2 месяца назад

      @@medulla0blongata65 lol it says it in the title

  • @zimiie..1650
    @zimiie..1650 4 месяца назад

    What software did you used for the sonar display?

  • @boburmurodov8150
    @boburmurodov8150 Год назад +9

    My man, why would you attach the servo on a breadboard?

  • @ЯрославРесницкий-ы6г

    Что-то мне подсказывает что это не твоя разработка

    • @Floki_As
      @Floki_As Год назад

      Естественно, он же негр! ☝

    • @Бабайка-1
      @Бабайка-1 Год назад +4

      Вспоминаем видосы алекса

  • @kandymahanama7796
    @kandymahanama7796 5 месяцев назад

    Good job❤

  • @تشاوو02
    @تشاوو02 5 месяцев назад +1

    شن وظفية الاداء هذه لو تكرمتو ؟
    طبعا سؤال موجه لعرب يشاهد فيديو

    • @FouziDozi-r2y
      @FouziDozi-r2y Месяц назад +1

      حساس لقياس المسافات ...تحية لك من الجزائر

    • @تشاوو02
      @تشاوو02 Месяц назад

      @FouziDozi-r2y شكر تحيات لك من ليبيا

  • @NoeSage
    @NoeSage 6 месяцев назад

    Can you try to build something like that with mmwave sensor?

  • @christopher5487
    @christopher5487 6 месяцев назад

    How far could I get this to work? Any sensor upgrade to make this for boat purposes?

    • @medulla0blongata65
      @medulla0blongata65 2 месяца назад

      a lot more money... to buy a real radar meant for boats. And skip out on this LIDAR, since it will only detect boats less than a foot away in clear weather...

  • @eymanxgamer
    @eymanxgamer 3 месяца назад

    Can be use for ghost detector right?😅

  • @gibson2049
    @gibson2049 6 месяцев назад +2

    Good project

  • @DanielGomez-yz1mw
    @DanielGomez-yz1mw 5 месяцев назад

    Good job!

  • @miguelposada4806
    @miguelposada4806 Год назад +10

    How do you get the sonar graphic on the PC screen?

    • @MediaKasta
      @MediaKasta Год назад +1

      The image is generated using processing, you can find the code on the web, search Arduino ultrasonic sensor with processing

  • @robertobayos2946
    @robertobayos2946 10 месяцев назад

    can I ask what algorithm I should use for this kind of project?

  • @KokokokqoqJ
    @KokokokqoqJ День назад

    Can u use it for mesh mapping

  • @jomogatua3966
    @jomogatua3966 Год назад

    Great invention for birdbox creatures

  • @gamerfloyt4990
    @gamerfloyt4990 Год назад +2

    When you only downloaded one sound effect

  • @abraham7573
    @abraham7573 8 месяцев назад

    Cool! Maybe don't include the gun cocking sounds next time.

  • @leftysmalls
    @leftysmalls 7 месяцев назад

    How did he do that visualization? I really puts a nice bow on it

  • @johanneskriechhammer2579
    @johanneskriechhammer2579 10 месяцев назад

    Is there a change to get the code?,because we want to make that as a school project

    • @V1nc3nt00
      @V1nc3nt00 10 месяцев назад

      Just have a look at m.ruclips.net/video/NOPacu3E1-4/видео.html
      In the description is the code

  • @Ux-720.
    @Ux-720. Год назад +1

    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

  • @hustla818
    @hustla818 Год назад +5

    What's the use for a radar that has a range of 1 foot

    • @donji1235b
      @donji1235b Год назад +13

      Can be used to detect mosquitoes😂😂😂

    • @dasig3010
      @dasig3010 Год назад

      @@donji1235b hahaha

  • @TwinklingStar0420
    @TwinklingStar0420 5 месяцев назад

    I did this project in mu first semester of Engineering

  • @saifrehman6665
    @saifrehman6665 Месяц назад

    Which software is this? Which is showing display?

  • @nooffensemeantbut1597
    @nooffensemeantbut1597 Год назад +1

    question: Is it possible to make a realistic radar mock-up (like the ones they used in aviation) using arduino and raspberry pi? Please help, I really need others' opinion. :>

    • @Kattoe
      @Kattoe Год назад

      The one in this video was pretty realistic

  • @DMA-kc4uf
    @DMA-kc4uf 2 месяца назад

    Great 👍🏻

  • @luna2049Rush
    @luna2049Rush Год назад +1

    This is how a Sensor reverse works in your car.

  • @LordHonkk
    @LordHonkk 4 месяца назад

    If you are getting robbed, this may save your life

  • @JOSE_RMC
    @JOSE_RMC 6 месяцев назад

    And for processing on android, what would it be like?

  • @FEFU977
    @FEFU977 Год назад +3

    Does it work for mosquitoes?🪖💣

  • @Saaaad.S
    @Saaaad.S 3 месяца назад

    What are those clips used at the end of the wire called?

  • @hdrtronic18
    @hdrtronic18 Год назад +1

    good, congrats, bdw is a sonar

  • @AdityaNaman-hc5ge
    @AdityaNaman-hc5ge Месяц назад +1

    Item required list ???

  • @darlingprasad7389
    @darlingprasad7389 10 месяцев назад

    This is useful for my project bro

  • @VishnurajCr-m5y
    @VishnurajCr-m5y 11 месяцев назад

    Which platform did you use to read

  • @sangeethpriyan50
    @sangeethpriyan50 Год назад +1

    I need the full video of this with explanation ?

  • @AFAK-DEFENSE
    @AFAK-DEFENSE 2 дня назад

    Cnc machine is nice project to do

  • @staryparth
    @staryparth Год назад +3

    Which code of Arduino do u use for it

    • @ec_harshitsrivastava_be21e67
      @ec_harshitsrivastava_be21e67 Год назад

      it is basically a c language but you have to know its documentation and library first

    • @ItsCOMMANDer_
      @ItsCOMMANDer_ 10 месяцев назад

      ​@@ec_harshitsrivastava_be21e67c++

  • @scottwithers7385
    @scottwithers7385 11 месяцев назад +2

    How far away can It detect objects

    • @merc622
      @merc622 11 месяцев назад

      40 centimetres

    • @V1nc3nt00
      @V1nc3nt00 10 месяцев назад

      ​@@merc622That's wrong. The sensor itself can detect objects up to ~ 4 meters. It's the HC-sr04

  • @yourfactstory
    @yourfactstory Год назад +1

    Thanks, cool video ! Subscribed!

  • @swapnilhajare7525
    @swapnilhajare7525 Год назад +2

    Why it isn't sensing laptop? 🤔

  • @st1ckyo
    @st1ckyo 8 месяцев назад

    Author! Do you have any more sounds in stock???

  • @putakusinvida7501
    @putakusinvida7501 9 месяцев назад

    Why the amgle is 15 to 120?, i get a took for dont doing the 190 angle complete

  • @InamAli-f1v
    @InamAli-f1v 8 месяцев назад +1

    Wow❤❤❤

  • @sweetkiller3702
    @sweetkiller3702 Месяц назад

    Can I get the link for the whole video??

  • @kyozanuro
    @kyozanuro 2 месяца назад

    What is the maximum distance can it scan?

  • @Chronos-s7w
    @Chronos-s7w Год назад +2

    What application software did you use?the blue one?

  • @external316
    @external316 Год назад +1

    How many Americans are we going to hear before something happens?

  • @هنرجس
    @هنرجس 2 месяца назад +1

    I need the code and know how to work

  • @joaquimalves5781
    @joaquimalves5781 26 дней назад

    Qual sensor persegue uma bolinha?

  • @user-Tree-Frog_Egg
    @user-Tree-Frog_Egg Год назад

    와~ 좋은 레이더군요!

  • @HaoginlenKhongsai
    @HaoginlenKhongsai Месяц назад

    Impressive

  • @JunnarkarDjs2212
    @JunnarkarDjs2212 Год назад

    Bro which sensor is used and how to nake this project please make full video

    • @mmikhai
      @mmikhai Год назад

      Sensor is hc-sr04

  • @YallBhai
    @YallBhai 3 месяца назад

    Scanner ❎️Ghost finder ✅️

  • @sweetmother4653
    @sweetmother4653 Год назад

    Cool nice invention or re-invention