A02YYUW waterproof Ultrasonic Sensor UART and PWM with ESP32

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ค. 2024
  • A02YYUW waterproof Ultrasonic Sensor UART and PWM, with ESP32
    Read article:
    www.electroniclinic.com/a02yy...
    A02YYUW Waterproof Ultrasonic Sensor, Getting Started Tutorial:
    • Waterproof Ultrasonic ...
    Watch the same video in Hindi Urdu:
    • Waterproof Ultrasonic ...
    Support me on Patreon and get access to hundreds of projects:
    / electroniclinic
    Subscribe to my New TH-cam Channel, if you want to watch my videos in Hindi/Urdu
    / @letsgetstartedd
    Project Description:
    ******
    If I made this mistake, then I'm sure it's something that could happen to you at some point too. These are both A02YYUW waterproof ultrasonic sensors; but still, they are not the same. Because one of them is a UART type and the other one is PWM. Which one is the best out of these two, I will explain this in a minute.
    Design-wise, they are exactly the same, their front, their backside, even their wires are the same. Just by looking at these sensors, you can’t tell which one is the UART and which one is the PWM.
    How did I find out, well let me tell you. I had already made a detailed video about the UART version of the A02YYUW Waterproof ultrasonic sensor.
    After a few days, I needed some more Ultrasonic Sensors so I went on Amazon and purchased 5 ultrasonic sensors. At that time, I didn’t even know there was a PWM version of this Ultrasonic sensor. So, I placed the order without checking.
    Anyway, when I received the ultrasonic sensors and connected them to the board, the Serial monitor was not giving me any output. At first, I thought maybe this ultrasonic sensor was faulty. So, I tried another sensor, but I didn’t get any output from that one either. Just like this, I tested all the Ultrasonic sensors one by one.
    And when I would connect the UART version of the A02YYUW Ultrasonic Sensor, it would work perfectly.
    Anyway, to confirm those ultrasonic sensors, I went back to Amazon and when I saw, there were two types: PWM and UART. So, it was totally my mistake because I wasn’t aware of the versions.
    ******
    Amazon Purchase links:
    ********
    ESP32 WiFi + Bluetooth Module (My recommendation), more IO pins, improved speed, and supports a Lipo Battery:
    amzn.to/3v40DkE
    SIM7600G 4G LTE Module
    amzn.to/3tXTkuq
    Other must-have Tools and Components:
    Arduino Uno, Nano, Mega, Micro "All types of Arduino Boards":
    amzn.to/3fk5OTi
    Top Arduino Sensors:
    amzn.to/3vZbnfM
    Super Starter kit for Beginners
    amzn.to/3cq56C5
    Top Oscilloscopes
    amzn.to/3ctF3d8
    Variable Supply:
    amzn.to/2PEAqE7
    Digital Multimeter:
    amzn.to/2QGRPg1
    Top Soldering iron kits: "best"
    amzn.to/39nqDtb
    Top Portable drill machines:
    amzn.to/3suQMh7
    Jumper Wires:
    amzn.to/2NYPEDA
    3D printers:
    amzn.to/3ruG1dt
    CNC Machines:
    amzn.to/3cuZWVv
    Electronics Accessories:
    amzn.to/3sueV7z
    Hardware Tools:
    amzn.to/3m9UhaN
    DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
    ****************
    For more Projects and tutorials visit my Websites
    Electronic Clinic:
    www.electroniclinic.com/
    Programming Digest:
    programmingdigest.com/
    Follow me on Instagram:
    / electroniclinic
    Follow my Facebook Page Electronic Clinic:
    web. profile.php?...
    Follow my Facebook Group, Arduino Projects:
    / 190031841821771
    Email:
    stu_engineering@yahoo.com
    About the Electronic Clinic:
    Electronic Clinic helps the students and other professionals to learn electronics, designing, and programming. Electronic Clinic has tutorials on Arduino, Arduino Nano, Raspberry PI, image processing, gsm based projects, Bluetooth based projects, esp8266 projects, Nodemcu projects, robotics, desktop application designing and programming, PLC, SCADA, RC Planes, Electronics, Power Generation, HMI, and much more. Check my Playlists.
    #A02YYUW #Waterproof #ultrasonicsensor
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 9

  • @lint2023
    @lint2023 หลายเดือนก่อน +2

    Thanks for all your videos. The waterproof sensor caught my attention and I put this on my list of things to do.
    William, USA

  • @lohikarhu734
    @lohikarhu734 หลายเดือนก่อน +1

    I like the pwm version better, as it is much more deterministic...it guarantees that you get a return value in less than about 40 ms, and usually shorter...also, if you use a hardware timer, instead of software, you only need to wait for its indication or interrupt...the hardware timers are usually closer than 100 ns per tick, so the resolution is then as short as 0.02 mm ...uncertainty much greater than that, but you get the idea.
    For example,
    Max delay from falling edge of trigger to rising edge of distance pulse 17 ms
    Then 5,75 μs per millimeter distance,
    For target at 50 cm,
    17 ms delay + (57,5 x 50) μs = 2,875 ms for total time of 19,875 ms
    Since the "no target found" gives a 35 ms pulse, you have a 52 ms worst case time from trigger to event end, but, if you know a maximum distance limit for your application, you could use a second timer channel to give an interrupt if the measurement time is exceeded ...so, for, say 100 cm max target,
    the 'distance watchdog timer is set for start on rising edge of measurement pulse, and timeout set to be 5750 μs, thus, if you ping the detector, you would get a "no target" interrupt, or status bit, after 22.75 ms....much, much better than waiting the 45-60 ms + data word time, with uart...just thinking...
    (I've been doing real-time microcontroller work for going on 45 years, was a Motorola application engineer for several years)

  • @PhG1961
    @PhG1961 หลายเดือนก่อน +1

    Great!!

  • @nagababumarthi1942
    @nagababumarthi1942 หลายเดือนก่อน

    Pls make esp32 camera based object pick and place robot

  • @repairstudio4940
    @repairstudio4940 หลายเดือนก่อน

    I cant even get my PN532 to work 😮‍💨

  • @Chuq00
    @Chuq00 หลายเดือนก่อน

    Can this measure water levels? Obviously doing math to measure the cm to liters as the levels increase or decrease.

    • @ElectroniClinic
      @ElectroniClinic  หลายเดือนก่อน +1

      Ya it can. Next, I will use it for water level monitoring.

    • @Chuq00
      @Chuq00 หลายเดือนก่อน

      @@ElectroniClinic I can't wait to see

    • @tsabitahakmal6825
      @tsabitahakmal6825 หลายเดือนก่อน

      can't wait cause I really need that too@@ElectroniClinic