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...
    - - - - -
  • Наука та технологія

КОМЕНТАРІ • 473

  • @PatrykStm
    @PatrykStm 9 місяців тому +2915

    It's a sonar, not a radar

    • @user-gs4ev5by5v
      @user-gs4ev5by5v 9 місяців тому +249

      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 9 місяців тому +36

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

    • @themagician2008
      @themagician2008 8 місяців тому

      ​@@user-gs4ev5by5vthat's an ultraSONIC sensor. Hence SONAR.

    • @TheNapalmFTW
      @TheNapalmFTW 8 місяців тому

      ​@@user-gs4ev5by5vwas this in reply to someone

    • @EAGLEYE-ow7vf
      @EAGLEYE-ow7vf 8 місяців тому

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

  • @younesd6298
    @younesd6298 6 місяців тому +264

    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.

    • @deelaureanolaureano7307
      @deelaureanolaureano7307 4 місяці тому +1

      Loved this thank you brother 🙏🏽

    • @user-sj8bh4fd3g
      @user-sj8bh4fd3g 4 місяці тому +1

      Так же радар рассчитывает скорость объекта по Доплер смещению частоты❤

    • @avantcdmx2028
      @avantcdmx2028 3 місяці тому

      Ultrasound waves are electromagmetic ones, so as radio waves.

    • @LUIGUIFIDELAPAZACHIPANA
      @LUIGUIFIDELAPAZACHIPANA 3 дні тому

      Que buena, gran aporte muchas gracias

    • @LUIGUIFIDELAPAZACHIPANA
      @LUIGUIFIDELAPAZACHIPANA 3 дні тому +1

      ​@@avantcdmx2028La ignorancia es tan grande

  • @NEXUS_MOHD
    @NEXUS_MOHD 6 місяців тому +105

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

  • @kiriolvishnergo6140
    @kiriolvishnergo6140 8 місяців тому +193

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

    • @b03tz
      @b03tz 7 місяців тому +9

      Right and spinning wires as well!

    • @kiriolvishnergo6140
      @kiriolvishnergo6140 7 місяців тому +4

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

    • @Howhungry1234
      @Howhungry1234 7 місяців тому +4

      ​@@b03tzuse a slip ring

    • @Zomerlad
      @Zomerlad 6 місяців тому +2

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

    • @kiriolvishnergo6140
      @kiriolvishnergo6140 6 місяців тому +2

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

  • @pablomonteiro8330
    @pablomonteiro8330 7 місяців тому +132

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

    • @varunahlawat169
      @varunahlawat169 6 місяців тому +7

      Exactly, then it would be a sonar!

  • @ellorord5968
    @ellorord5968 5 місяців тому +29

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

  • @davidpastia-gh2jq
    @davidpastia-gh2jq Рік тому +46

    Well done bro💪👑

  • @vinny142
    @vinny142 27 днів тому +2

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

  • @Ocelot851
    @Ocelot851 Місяць тому +11

    Now ı can heck naasa

  • @RuanoProductions
    @RuanoProductions 9 місяців тому +286

    The reloading sound not make sense 😐

    • @alguiennose8266
      @alguiennose8266 8 місяців тому +22

      Es que esta construyendo en Estados Unidos jajasksk

    • @Jexinator
      @Jexinator 8 місяців тому +6

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

    • @plabanadhikary
      @plabanadhikary 8 місяців тому +2

      ​@@alguiennose8266😂

    • @slowly_r7849
      @slowly_r7849 8 місяців тому +5

      You are the fun police

    • @hmx_mrx
      @hmx_mrx 7 місяців тому +1

      Lol😂

  • @Cinilkin
    @Cinilkin 8 місяців тому +4

    Now you can see where Aliens are hiding

  • @gibson2049
    @gibson2049 Місяць тому +2

    Good project

  • @DanielGomez-yz1mw
    @DanielGomez-yz1mw 5 днів тому

    Good job!

  • @esm720
    @esm720 7 місяців тому +23

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

    • @livetohash6152
      @livetohash6152 4 місяці тому +2

      Yeah, but bro.. saves SO much time 🎉

    • @putakusinvida7501
      @putakusinvida7501 4 місяці тому

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

    • @_EasyOnEasy_
      @_EasyOnEasy_ 3 місяці тому

      @@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 2 місяці тому +2

      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 10 днів тому +1

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

  • @rainbowseal69
    @rainbowseal69 8 місяців тому +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 😂❤

  • @kandymahanama7796
    @kandymahanama7796 9 днів тому

    Good job❤

  • @AfeMar1221
    @AfeMar1221 7 днів тому

    This was my Bsc Project1 :)😅

  • @Aka3nD
    @Aka3nD Місяць тому +2

    Could work better with infrared but whats the programmed code though

  • @1998hondaprelude7
    @1998hondaprelude7 4 місяці тому

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

  • @user-Tree-Frog_Egg
    @user-Tree-Frog_Egg 8 місяців тому

    와~ 좋은 레이더군요!

  • @user-fn1wr5tm1c
    @user-fn1wr5tm1c 8 місяців тому +13

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

    • @Floki_As
      @Floki_As 8 місяців тому

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

    • @Бабайка-1
      @Бабайка-1 8 місяців тому +3

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

  • @prezz118
    @prezz118 5 місяців тому +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.

  • @M1551NGN0
    @M1551NGN0 Місяць тому +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

  • @leilanielectronics
    @leilanielectronics 5 місяців тому

    The Ping)) is an amazing module!

  • @Clover501
    @Clover501 8 місяців тому +27

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

  • @gamerfloyt4990
    @gamerfloyt4990 7 місяців тому +1

    When you only downloaded one sound effect

  • @Usrthsbcufeh
    @Usrthsbcufeh 9 місяців тому +3

    Wouldn’t be a radar if it’s using sound waves bro. This is sonar

  • @jomogatua3966
    @jomogatua3966 7 місяців тому

    Great invention for birdbox creatures

  • @Sanctispiritucom
    @Sanctispiritucom 9 місяців тому

    Excelente

  • @christopher5487
    @christopher5487 Місяць тому

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

  • @Ash_G
    @Ash_G 2 місяці тому

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

  • @hdrtronic18
    @hdrtronic18 8 місяців тому +1

    good, congrats, bdw is a sonar

  • @cyrillekaouche-ps7jq
    @cyrillekaouche-ps7jq 7 місяців тому +2

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

  • @luna2049Rush
    @luna2049Rush 8 місяців тому +1

    This is how a Sensor reverse works in your car.

  • @user-kc5fw5xy5u
    @user-kc5fw5xy5u 3 місяці тому +1

    Wow❤❤❤

  • @justin_ebenazar
    @justin_ebenazar 4 місяці тому +2

    It's a infrared sensor

    • @itoibo4208
      @itoibo4208 3 місяці тому +3

      this is a sonar sensor using ultrasonic sound

  • @cuocsongsacmau3331
    @cuocsongsacmau3331 9 місяців тому +1

    Quá đẳng cấp

  • @NoeSage
    @NoeSage 27 днів тому

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

  • @user-xq1cq3uj1l
    @user-xq1cq3uj1l Місяць тому

    Круто

  • @sweetmother4653
    @sweetmother4653 6 місяців тому

    Cool nice invention or re-invention

  • @robertobayos2946
    @robertobayos2946 5 місяців тому

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

  • @danielmarquez8060
    @danielmarquez8060 8 місяців тому

    Thanl you!!!

  • @mijailozivkovich9871
    @mijailozivkovich9871 Місяць тому

    Its possible triangular an object in movement?

  • @ELEDAi
    @ELEDAi 8 місяців тому +1

    Como se llama el sofware para imprimir los datos en esa interfas de scanner verde ???

  • @putakusinvida7501
    @putakusinvida7501 4 місяці тому

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

  • @olli1068
    @olli1068 6 місяців тому

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

  • @JOSE_RMC
    @JOSE_RMC Місяць тому

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

  • @leilanielectronics
    @leilanielectronics 5 днів тому

    Kool😎

  • @Lalukanhar878
    @Lalukanhar878 8 місяців тому

    very nice

  • @zizazr
    @zizazr 9 місяців тому +16

    Хмм где-то тут прячется Алекс гайвер

    • @l.r.o.channel6898
      @l.r.o.channel6898 8 місяців тому +1

      Ага, я такой по его прошивке делал

    • @user-by5gc4bn8e
      @user-by5gc4bn8e 8 місяців тому +1

      Ну он слабый очень

    • @user-hy1iu3wk9h
      @user-hy1iu3wk9h 7 місяців тому

      ​@@l.r.o.channel6898а как с ним связаться?

  • @wscamel226
    @wscamel226 5 місяців тому +1

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

  • @sangeethpriyan50
    @sangeethpriyan50 8 місяців тому +1

    I need the full video of this with explanation ?

  • @techwith_Aamir
    @techwith_Aamir 10 місяців тому +9

    Why it is not covering the full 180 degree??

    • @BarbaroR4
      @BarbaroR4 8 місяців тому +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 8 місяців тому +2

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

    • @TheFoxranger
      @TheFoxranger 8 місяців тому +3

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

    • @mka8915
      @mka8915 8 місяців тому

      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 8 місяців тому +3

      It’s chat GPT code

  • @yourfactstory
    @yourfactstory 8 місяців тому +1

    Thanks, cool video ! Subscribed!

  • @ashwinyellur8361
    @ashwinyellur8361 6 місяців тому

    Good one.. but just change the name to ultrasonic or sonar. , radar is based on radio waves

  • @abhashhardaha7691
    @abhashhardaha7691 10 місяців тому +1

    ❤️❤️❤️

  • @abraham7573
    @abraham7573 3 місяці тому

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

  • @external316
    @external316 7 місяців тому +1

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

  • @user-zb4ub5se9w
    @user-zb4ub5se9w 4 місяці тому

    Bilgisayarda ki program hangisi

  • @Ux-720.
    @Ux-720. 7 місяців тому +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

  • @rolandoreyes5291
    @rolandoreyes5291 Місяць тому

    With an inches distance? Who needs it?😂😂😂

  • @user-sy3zf4on1x
    @user-sy3zf4on1x 7 днів тому

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

  • @degramod
    @degramod 8 місяців тому +4

    Alex gyver project lol

  • @Iv4u2
    @Iv4u2 7 місяців тому

    what is the weights that this motor can hold.

  • @FEFU977
    @FEFU977 8 місяців тому +3

    Does it work for mosquitoes?🪖💣

  • @user-oh8ys8yn3g
    @user-oh8ys8yn3g 6 місяців тому

    Which platform did you use to read

  • @leftysmalls
    @leftysmalls 2 місяці тому

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

  • @OceWhat12345
    @OceWhat12345 6 місяців тому

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

    • @nourdraw1548
      @nourdraw1548 6 місяців тому

      To kill mosquitoes 😂?

  • @user-rp9cc1cf1k
    @user-rp9cc1cf1k 2 місяці тому

    Please record the full video

  • @fusk40rus
    @fusk40rus 3 місяці тому +1

    Shift+del

  • @bon3scrush3r
    @bon3scrush3r 7 місяців тому

    That is quite something

  • @abdullahyldz8123
    @abdullahyldz8123 Місяць тому

    Can it detect distance?

  • @naveenaathithya5278
    @naveenaathithya5278 3 місяці тому

    Make some STM32 DIY

  • @positiveme6186
    @positiveme6186 8 місяців тому +1

    What's the name of that site?? May I know???

  • @catvids510
    @catvids510 25 днів тому

    Stepper motor would be more efficient for this

  • @user-fm5lw3hq8v
    @user-fm5lw3hq8v 3 місяці тому

    where can I find ready-made codes

  • @fish3010
    @fish3010 9 місяців тому

    Is that the parallax sensor?

  • @akubukanorangwoi1614
    @akubukanorangwoi1614 Місяць тому

    how the servo rotate slowly

  • @TNG88
    @TNG88 4 місяці тому +1

    Many countries need this technology due to tight budget since covid then wars

    • @lwo7736
      @lwo7736 2 місяці тому

      Lmao, shut the f up what is this comment

    • @addisonm6465
      @addisonm6465 5 днів тому +2

      what

  • @mathieuhenrissat1449
    @mathieuhenrissat1449 3 місяці тому

    What is the name of the cable/connector ?

  • @user-kg7xs1ph3x
    @user-kg7xs1ph3x 5 місяців тому

    can i do this using ir sensor

  • @user-ef4ul7xv9k
    @user-ef4ul7xv9k 7 місяців тому

    good

  • @huynguyenquang4730
    @huynguyenquang4730 4 місяці тому +1

    how??

  • @mananmahawar5611
    @mananmahawar5611 24 дні тому

    how can we get the coding to make this

  • @slimislime
    @slimislime 4 місяці тому +1

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

    • @itoibo4208
      @itoibo4208 3 місяці тому

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

    • @slimislime
      @slimislime 3 місяці тому

      @@itoibo4208 it says made with chatgpt

  • @swapnilhajare7525
    @swapnilhajare7525 8 місяців тому +2

    Why it isn't sensing laptop? 🤔

  • @mediabeeOfficial
    @mediabeeOfficial Місяць тому +1

    İ did this when i am 7 years old (i swear)

  • @taherelassal4241
    @taherelassal4241 4 місяці тому

    👌👌👍

  • @TG_EditX_
    @TG_EditX_ 5 місяців тому +2

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

    • @V1nc3nt00
      @V1nc3nt00 5 місяців тому

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

  • @user-mt6xh5pb5y
    @user-mt6xh5pb5y Рік тому +2

    Sir, good day, give me the sketch please

  • @samiertugrulakar9935
    @samiertugrulakar9935 4 місяці тому

    I NEED THİS RADAR

  • @MehmetAlii_1
    @MehmetAlii_1 2 місяці тому

    Arayüz nasıl yaptın acaba ❤❤

  • @ShaxruzSalimov-mx9mu
    @ShaxruzSalimov-mx9mu 17 днів тому

    👌

  • @aayans.m.v3133
    @aayans.m.v3133 11 місяців тому

    How did you do that and the com

  • @bolttv3197
    @bolttv3197 Рік тому

    а 3д сканер так сделать можно?

  • @johanneskriechhammer2579
    @johanneskriechhammer2579 5 місяців тому

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

    • @V1nc3nt00
      @V1nc3nt00 5 місяців тому

      Just have a look at m.ua-cam.com/video/NOPacu3E1-4/v-deo.html
      In the description is the code

  • @st1ckyo
    @st1ckyo 3 місяці тому

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

  • @theeverythingguy4913
    @theeverythingguy4913 Рік тому +127

    Tutorial please ❤

    • @TECHiHOBBYIST
      @TECHiHOBBYIST Рік тому +13

      Search its on how to mechatronics

    • @TECHiHOBBYIST
      @TECHiHOBBYIST Рік тому +20

      Ultasonic sensor hc-sr 04 and arduino
      ZejQOX69K5M its url

    • @JRHouben
      @JRHouben 8 місяців тому

      ua-cam.com/video/NwmcNCvUcDc/v-deo.htmlsi=I6YUrGNAZS13TdUk

    • @Erilul
      @Erilul 7 місяців тому +2

      The link for tutorials please

    • @jonathan-._.-
      @jonathan-._.- 6 місяців тому

      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

  • @AndresMartinez-vt7nk
    @AndresMartinez-vt7nk 8 місяців тому

    😂 ya esta casi listo el submarino

  • @josemariacoronado6241
    @josemariacoronado6241 7 місяців тому

    Dónde puedo comprar uno así?