Troubleshooting

A02YYUW with ESP8622

userHead Nathan3000 2023-04-02 22:33:06 369 Views3 Replies

Hello,

 

I am looking for an example of A02YYUW with an ESP8622 board.

 

Thanks in advance.

 

2023-05-10 18:04:24

The A02YYUW is just a Serial Port sensor. So the sample code of the Arduino could also used on the ESP8266.

wikipage:  https://wiki.dfrobot.com/_A02YYUW_Waterproof_Ultrasonic_Sensor_SKU_SEN0311#target_5

 

The only problem of this code is that the ESP8266 could not use the software Serial Library that used on the Arduino.

But you could found lots of SoftSerial Library for the ESP32/ESP8266 on the Github.

And here is what I found:

https://github.com/plerup/espsoftwareserial

 

So you just need to slightly change the sample of the wikipage.(Include the espsoftwareserial library, and Instantiate an object with a class from this library)

That should be good.

userHeadPic Yeez_B
2023-04-06 05:12:20

I dont know how you are programming your board, but maybe do it with Arduino IDE. Lot of examples 

userHeadPic Jukka.Luukkonen
2023-04-02 22:34:38

Sorry I meant ESP 8266 obviously…

userHeadPic Nathan3000