TroubleshootingArduino

A02YYUW with Mega 2560

userHead A900 2022-05-23 01:50:54 1265 Views3 Replies

So ive been using the A02YYUW sensor with a aruino uno for a while and it was working but ive moved the code across to the Mega 2560 and cant get it to run. Im using the example code from the WIKI.

 

Ive tried hardware serial as well as softwareSerial and ive tried 2 sensors i have.

 

Does anyone have any ideas for the Mega?

2023-02-09 11:56:43

Hi

Could you please check whether the band rate is 9600? the sensor only work in this baurd rate.

Hope it can help.

userHeadPic Tonny12138
2022-06-03 23:21:19

IM aware of its specs I'm just struggling to get it to work on a mega. I've got Blynk running and other code. But even if I strip out the other code leaving only the sensor and Blynk its still not working

userHeadPic A900
2022-05-28 14:31:02

Ultrasonic distance sensor measuring the distance by measuring the time between sending and receiving a pulse. The sensor allows to measure distances from 3 cm to 450 cm. It communicates through the UART serial interface. The module is powered from 3.3 V to 5 V. The sensor is enclosed in a waterproof housing with IP67 protection class.

userHeadPic CamdenPredovic