Add A22YYUV as a variant of A02YYUV ultrasonic sensor #3441
Unanswered
PhracturedBlue
asked this question in
Component enhancements
Replies: 1 comment
-
|
I stumbled upon your request while looking into this myself. I actually wrote a custom component to handle various DYP UART sensors (including the A22, though I originally built it for the A13). Your post prompted me to finally submit it as a Pull Request: esphome/esphome#12761 It is still a work in progress, but I wanted to drop the link here so you can follow the development. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
a02yyuv
Link to component documentation on our website
https://esphome.io/components/sensor/a02yyuw/
Describe the enhancement
DYP has a few variants of waterproof sensors that speak the same UART protocol, but use 115200bps instead of 9600.
I can get these working by simply duplicating the A02YYUV component and changing the 9600 to 115200 in the sensor.py code.
I can create a pull request, but I'm not sure what the recommended configuration should be. Should I just allow overriding the baud rate? or maybe add a new variant that changes the baud rate?
Use cases
There are other DYP ultrasonic waterproof sensors that could be supported with the same code using a minor change
Anything else?
Datasheet:
https://www.dypcn.com/uploads/A22-Datasheet1.pdf
Beta Was this translation helpful? Give feedback.
All reactions