Thanks for all your videos. The waterproof sensor caught my attention and I put this on my list of things to do. William, USA
@turgu1
Ай бұрын
Please note that there is two kind of UART modes available: continuous (as demonstrated in your vidéo) and controlled (a character must be transmitted to the device to get a distance). Just got a controlled one from Amazon.
@johntierris
Ай бұрын
Great video as usual! Does anybody know if A0221AU is different than A02YYUW?
@lohikarhu734
6 ай бұрын
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
3 ай бұрын
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
4 ай бұрын
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
4 ай бұрын
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.
@PhG1961
7 ай бұрын
Great!!
@ziadbrakat5421
2 ай бұрын
What is the resolution of this sensor?
@mokhtarchekri6927
10 күн бұрын
السلام عليكم ابعتلي واحذه البلاد الجزائر
@nagababumarthi1942
7 ай бұрын
Pls make esp32 camera based object pick and place robot
@tambikhout9310
6 сағат бұрын
ALWAYES GIVE ME 0 DIS, ANY ADVICE
@repairstudio4940
7 ай бұрын
I cant even get my PN532 to work 😮💨
@Chuq00
7 ай бұрын
Can this measure water levels? Obviously doing math to measure the cm to liters as the levels increase or decrease.
@ElectroniClinic
7 ай бұрын
Ya it can. Next, I will use it for water level monitoring.
@Chuq00
7 ай бұрын
@@ElectroniClinic I can't wait to see
@tsabitahakmal6825
6 ай бұрын
can't wait cause I really need that too@@ElectroniClinic
Пікірлер: 19