A02YYUW waterproof Ultrasonic Sensor UART and PWM with ESP32

  Рет қаралды 3,739

Electronic Clinic

Electronic Clinic

Күн бұрын

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 ...
IoT based Water Level monitoring using ESP32, A02YYUW, and Blynk:
• Water Level Monitoring...
Support me on Patreon and get access to hundreds of projects:
/ electroniclinic
Subscribe to my New KZfaq 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

Пікірлер: 13
@lint2023
@lint2023 4 ай бұрын
Thanks for all your videos. The waterproof sensor caught my attention and I put this on my list of things to do. William, USA
@PhG1961
@PhG1961 4 ай бұрын
Great!!
@lohikarhu734
@lohikarhu734 4 ай бұрын
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)
@erkkameskanen1405
@erkkameskanen1405 26 күн бұрын
Yeah, and wonder how UART will handle readings accuracu when temperature fluctuates 10 - 100C with relative humidity close to 100% all the time. With PWM one can implement a function to mitigate these changes in environmental variables.
@ochjoo77
@ochjoo77 2 ай бұрын
Thanks for the video, just have one note: when using a lot of different sensors and multiple of these ultrasonic sensors on a single board you run into lots of troubles with the uart,even if the board supports multiple uart, I found that it makes the board (esp32) very buggy and unreliable. Pwm should be better in this case as there is hardware support multiple pwm inputs so its not as taxing on the board really.
@ElectroniClinic
@ElectroniClinic 2 ай бұрын
i have been using the UART version and its working exceptionally well, even in my yesterday's video based on the Hydroponic system, it performed very well with high accuracy. I used it with the so many other sensors and wifi connectivity at the same time. you can check out that video.
@ziadbrakat5421
@ziadbrakat5421 12 күн бұрын
What is the resolution of this sensor?
@nagababumarthi1942
@nagababumarthi1942 4 ай бұрын
Pls make esp32 camera based object pick and place robot
@repairstudio4940
@repairstudio4940 4 ай бұрын
I cant even get my PN532 to work 😮‍💨
@Chuq00
@Chuq00 4 ай бұрын
Can this measure water levels? Obviously doing math to measure the cm to liters as the levels increase or decrease.
@ElectroniClinic
@ElectroniClinic 4 ай бұрын
Ya it can. Next, I will use it for water level monitoring.
@Chuq00
@Chuq00 4 ай бұрын
@@ElectroniClinic I can't wait to see
@tsabitahakmal6825
@tsabitahakmal6825 4 ай бұрын
can't wait cause I really need that too@@ElectroniClinic
Water Level Monitoring with Ultrasonic Sensor A02YYUW, ESP32, & Blynk
10:39
Waterproof Ultrasonic Distance Sensors - JSN-SR04T & A02YYUW 💧☔
32:11
DroneBot Workshop
Рет қаралды 178 М.
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 36 МЛН
Waterproof Ultrasonic Sensor A02YYUW with Arduino, ESP32, & ESP8266
11:46
Real Time GPS Tracker using SIM7600G 4G LTE, ESP32, and Adafruit Map
9:26
Electronic Clinic
Рет қаралды 3,2 М.
Waterproof Ultrasonic Sensor A02YYUW UART and PWM in Hindi Urdu
6:29
Let's Get Started
Рет қаралды 202
Experiment: Waterproof Ultrasonic Transducer JSN-SR04T-2.0
12:32
Becky Wonders (Becky Marshall Design)
Рет қаралды 38 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 559 М.
Waterproof Ultrasonic Sensor with Arduino for distance measurement
11:17
Electronic Clinic
Рет қаралды 26 М.
Distance Measurement / Ultrasonic Sensor / AJ-SR04M
6:11
0033mer
Рет қаралды 4,8 М.
The Inductive and Capacitive Sensor | Different types and applications
9:12
Mechatronic Neheyler in English
Рет қаралды 138 М.
Offline Voice Recognition Sensor
8:40
Mellow_Labs
Рет қаралды 17 М.
Wireless Water Level Indicator using LoRa and ESP32 | TTGO LoRa32
12:08
Electronic Clinic
Рет қаралды 49 М.
Это - iPhone 16!
16:29
Rozetked
Рет қаралды 184 М.