Hi, I am trying to use the A02YYUW Waterproof Ultrasonic Sensor (SKU:SEN0311) with a 30 Pin ESP-WROOM-32 chip, and I am trying to modify the Arduino sketch example so it will work ...
JaneYu 2019-11-10 03:54:10 11 Views40 Replies Hi, I am trying to use the A02YYUW Waterproof Ultrasonic Sensor
(SKU:SEN0311) with a 30 Pin ESP-WROOM-32 chip, and I am trying to modify
the Arduino sketch example so it will work with the ESP32, but after
several hours I haven't been able to do it. Does anybody have a
suggestion for this? This is the serial library I am using: https://github.com/akshayba....
Thanks
Hello, does it work to evaluate the distance between the sensor and water surface ?
JaneYu Yes, this sensor measures the distance from the sensor to the water surface.
Ultrasonic transducers generally do not deteriorate in performance with extended use.
JaneYu Unfortunately finding exactly this socket is almost impossible.
I found a similar plug (PAP-04V-S JST), but I cant find a suitable socket for it.
If anyone has a specific part number, please share.
JaneYu I would like to know the formula for the distance measurement value of this sensor.
There is an error according to the temperature, so I'd like to correct it.
thank you
JaneYu I'm using the sensor with the DFRobot code to measure the water level in my hydroponic tank and it works most of the time. However, several times a day it will start returning distances that are way off (by a factor of 3). When this happens I just remove the sensor from the tank lid and point it at something else and then it starts reading accurately again. The sensor is not actually in the tank but pointing down into the tank through 2 holes in the lid so too much water is not an issue. Does anyone have any idea what the problem might be?
JaneYu Hello.
Can you tell me what sound speed value this sensor uses?
i'd like to find the difference in sound velocity with temperature.
JaneYu Is it possible to get it with longer cable?
JaneYu This sensor shipped with the PH2.0 Female to dupond female wire.
So you could make it longer by using the dupond male wire.
But since the UART of this sensor is at TTL level, it can only transmit a distance of a few meters.
And please use high quality wire.
https://uploads.disquscdn.c...
Can the dfrobot a02yyuw run on the Pi Pico W?
JaneYu Sorry, the library we developed for this sensor is not compatible with the Pi Pico W. You may have to develop your own library according to the protocal.
I can't figure out how to program the DFRobot A02YYUW Waterproof Ultrasonic Sensor to use with my Pi Pico W.
Is it possible to do it in Micropython? I have no problem connecting a "normal" HC-SR04 to the Pi Pico with Micropython, but cannot define the UART TX/RX for my DFRobot A02YYUW .
I will be glad for help.
JaneYu Can I detect the distance of obstacles underwater with the help of the A2YYUW sensor ?
JaneYu Is it possible to use 2 A02YYUW with 1 raspberry pi 3b ? Thx
JaneYu Hi, Yes, Raspberry PI can communicate over multiple serial ports.
Hello!
Is there any way to get the measured time of flight ?
Thanks
JaneYu You can combine the RTC module to record the time when the distance from the ground is greater than a certain value, which is the flight time of the UAV.
I use this code in esphome:
https://community.home-assi...
The connections are as in the image. https://uploads.disquscdn.c...
uart:
id: uart_bus
tx_pin: 4 # Transmit Pin: 4 (D2)
rx_pin: 5 # Receive Pin: 5 (D1)
baud_rate: 9600
JaneYu I've been trying to find a way to read directly from serial on an ESP8266 device. The example uses SoftwareSerial and I believe it's the cause of intermittent issues I'm getting such as what appears to be halts on the device. Does anyone have sample code to read from this device directly using UART pins?
JaneYu Hi I am using the sample code provided by you and it is working fine but when I add some delay at the end of the code I am not getting the correct values. As I need to perform more task they will add some delay. Any suggestions how I can get the correct values.
Thank you in advance.
JaneYu Will the sensor operate correctly if there is water on the ultrasonic heads? I want to put this underneath the lid of a enclosed water tank to measure the water volume. Since the the tank is closed, water vapor coagulates on the lid over time -- and I expect it to be all over the sensor head as well.
JaneYu If the sensor probe condenses with large water droplets, it may cause erroneous readings


