A01NYUB Waterproof Ultrasonic Sensor
Moderators: grovkillen, Stuntteam, TD-er
A01NYUB Waterproof Ultrasonic Sensor
Hello all!
I would like to commission the following sensor in ESPEasy:
A01NYUB Waterproof Ultrasonic Sensor (https://wiki.dfrobot.com/A01NYUB%20Wate ... 3#target_1).
It communicates via UART, but I have not managed to get it working. The sensor works and when put into operation with the Arduino script on the above page on the ESP8266, it works.
I can't find a suitable sensor in ESPEasy that will give me the serial value that the sensor provides (distance in centimeters) so that I can send the value to Domoticz via MQTT.
How can I get values that come in serially? I thought this is like HC-SR04....
i would be happy to get some support.
best regards,
Peter
I would like to commission the following sensor in ESPEasy:
A01NYUB Waterproof Ultrasonic Sensor (https://wiki.dfrobot.com/A01NYUB%20Wate ... 3#target_1).
It communicates via UART, but I have not managed to get it working. The sensor works and when put into operation with the Arduino script on the above page on the ESP8266, it works.
I can't find a suitable sensor in ESPEasy that will give me the serial value that the sensor provides (distance in centimeters) so that I can send the value to Domoticz via MQTT.
How can I get values that come in serially? I thought this is like HC-SR04....
i would be happy to get some support.
best regards,
Peter
Re: A01NYUB Waterproof Ultrasonic Sensor
I think the SDS011 plugin is one of the simplest plugins using serial.
Maybe that can be useful as a template for your plugin?
Maybe that can be useful as a template for your plugin?
Re: A01NYUB Waterproof Ultrasonic Sensor
Hello,
thank you for your quick reply!
I have now selected the device Dust - SDS011/018/198 and entered HWSerial with RX: GPIO-3 (D9) TX: GPIO-1 (D10). Unfortunately, the value is only 0.00. I have already exchanged the cables of TX/RX, but without success.
PEter
thank you for your quick reply!
I have now selected the device Dust - SDS011/018/198 and entered HWSerial with RX: GPIO-3 (D9) TX: GPIO-1 (D10). Unfortunately, the value is only 0.00. I have already exchanged the cables of TX/RX, but without success.
PEter
Re: A01NYUB Waterproof Ultrasonic Sensor
I think we're missing each others point.
I tried to explain which plugin source code was probably the simplest to start tinkering with to make it work with your sensor.
Meaning you need to code it, compile it etc.
Currently we don't have a plugin for your sensor available (as far as I know)
I tried to explain which plugin source code was probably the simplest to start tinkering with to make it work with your sensor.
Meaning you need to code it, compile it etc.
Currently we don't have a plugin for your sensor available (as far as I know)
Re: A01NYUB Waterproof Ultrasonic Sensor
That's right, I think we've been talking past each other.
I am not a programmer, but I can transfer scripts in Arduino to the ESP. Certainly not write a plugin.
The A01NYUB sensor outputs the distance it measures in cm. so it writes e.g. 117
This is the distance in CM, i.e. 1.17 meters or 117 cm.
I am just wondering that there is no dummy sensor here that displays everything that comes in serially.
What about the Device: Communication - Serial Server can it not display incoming serial values?
I am not a programmer, but I can transfer scripts in Arduino to the ESP. Certainly not write a plugin.
The A01NYUB sensor outputs the distance it measures in cm. so it writes e.g. 117
This is the distance in CM, i.e. 1.17 meters or 117 cm.
I am just wondering that there is no dummy sensor here that displays everything that comes in serially.
What about the Device: Communication - Serial Server can it not display incoming serial values?
Re: A01NYUB Waterproof Ultrasonic Sensor
You could try the Serial Proxy plugin.
That one considers a line of ASCII text (with line ending) as a string message and sends it to the first enabled MQTT controller.
That one considers a line of ASCII text (with line ending) as a string message and sends it to the first enabled MQTT controller.
Re: A01NYUB Waterproof Ultrasonic Sensor
I have not found a serial proxy. Now I have flashed the ESP_Easy_mega_20210114_normal_ESP8266_1M.bin to the ESP, here the plugin is not visible either.
Can you please show me where I can find it on the WebGUI? Maybe I'm just overlooking it. Thanks a lot!
Can you please show me where I can find it on the WebGUI? Maybe I'm just overlooking it. Thanks a lot!
Re: A01NYUB Waterproof Ultrasonic Sensor
Since it is still highly experimental, it is not yet included in the regular builds
I can make a test build for you, what size of flash do you use? (ESP8266 I presume)
I can make a test build for you, what size of flash do you use? (ESP8266 I presume)
Re: A01NYUB Waterproof Ultrasonic Sensor
I use the 1MB ESP8266 here.
Thank you very much for your support
Thank you very much for your support
Re: A01NYUB Waterproof Ultrasonic Sensor
Thanks, is installed, but I could not test yet, have to go to the office. I will let you know when I could test further.
Re: A01NYUB Waterproof Ultrasonic Sensor
Hi,
I have now had some time to research further.
There should be some data coming in, but I don't really see the values.
Here is the output and the settings:
I have now had some time to research further.
There should be some data coming in, but I don't really see the values.
Here is the output and the settings:
Re: A01NYUB Waterproof Ultrasonic Sensor
Do you have an enabled MQTT controller?
This plugin doesn't (yet) allow for selecting a controller, it is hard coded to send it to the first enabled MQTT controller. (since it is using the output type "String" which isn't yet supported in the rest of the ESPEasy code)
This plugin doesn't (yet) allow for selecting a controller, it is hard coded to send it to the first enabled MQTT controller. (since it is using the output type "String" which isn't yet supported in the rest of the ESPEasy code)
Re: A01NYUB Waterproof Ultrasonic Sensor
Thank you! I tried it with and without controller, because I actually wanted to see what arrives natively at the device in the ESPEasy. I managed only once to send a value to Domoticz, which was also plausible. However, I found that the EPS8266 freezes after a few minutes when SerialProxy is active. Additionally, I tested this on different boards. On all of them this occurs as well. It's not finished yet, the plugin, I understand that and wait until it's finished.
Re: A01NYUB Waterproof Ultrasonic Sensor
How many messages are being received and at what interval?
You may want to tweak the controller queue settings too to make sure you're not running out of resources on the ESP.
You may want to tweak the controller queue settings too to make sure you're not running out of resources on the ESP.
Re: A01NYUB Waterproof Ultrasonic Sensor
could not find messages per second but nonly this:
Output Communication
When "RX" floats or input High level, the module outputs processed value, the data is more steady, response time: 150-300ms; when input Low level, the module outputs real-time value, response time: 150ms.
UART Data bit Stop bit Parity Band rate
TTL level 8 1 none 9600bps
UART Output Form
Frame Data Description Byte
Header 0xFF 1 byte
DATA_H Distance Data High 8-bits 1 byte
DATA_L Distance Data Low 8-bits 1 byte
SUM Checksum 1 byte
UART Output
Header DATA_H DATA_L SUM
0xFF 0x07 0xA1 0xA7
from https://wiki.dfrobot.com/A01NYUB%20Wate ... %20SEN0313
Output Communication
When "RX" floats or input High level, the module outputs processed value, the data is more steady, response time: 150-300ms; when input Low level, the module outputs real-time value, response time: 150ms.
UART Data bit Stop bit Parity Band rate
TTL level 8 1 none 9600bps
UART Output Form
Frame Data Description Byte
Header 0xFF 1 byte
DATA_H Distance Data High 8-bits 1 byte
DATA_L Distance Data Low 8-bits 1 byte
SUM Checksum 1 byte
UART Output
Header DATA_H DATA_L SUM
0xFF 0x07 0xA1 0xA7
from https://wiki.dfrobot.com/A01NYUB%20Wate ... %20SEN0313
Who is online
Users browsing this forum: No registered users and 42 guests