ArduinoTroubleshooting

A02YYUM Waterproof ultrasonic sensor

userHead marco.fantino 2023-03-19 20:17:07 412 Views13 Replies

A02YYUM  ultrasonic sensor dont work with supplied Arduino code that is on Pdf datasheet

Someone can help me please?

Marco

2023-11-21 09:39:25

I am also experiencing the same issue. I tried flipping the TX and RX pins and have also followed the wiring diagram on the wiki page.

userHeadPic Nate.Job
2023-03-28 21:26:39

If your Serial-monitor says ERROR then propably you have connected the wires opposite. Program says ERROR if connected opposite.  I think there is mistake in DFRobot picture about connecting A02YYUW with those RX TX pins. Green wire is RX and blue is TX wire. And in your Arduino always connect TX to sensor's RX and opposite. TX=>RX and RX=>TX

userHeadPic Jukka.Luukkonen
2023-03-24 16:02:02

Now monitor say  “ ERROR”

userHeadPic marco.fantino
2023-03-23 16:56:01
userHeadPic marco.fantino
NeloKin wrote:

Please change the baud rate of the serial monitor to 57600, and you will get the right result.

2023-03-24 10:33:15
1 Replies
2023-03-23 14:25:06

Could you please share a screenshot of your setting(board manager) and the error message? It can help us find the problem.

userHeadPic NeloKin
2023-03-22 16:41:06

Arduino 1 

userHeadPic marco.fantino
marco.fantino wrote:

Sorry ….Arduino UNO

2023-03-22 16:44:43
1 Replies
2023-03-21 10:17:17

You can first try hardserial connection, via TX and RX pins on the board.

SoftwareSerial library is included in arduino IDE, please download the 1.8.19 version.

The working sketch is provide in wiki, see the picture below.

userHeadPic NeloKin
marco.fantino wrote:

Done: install 1.8.19 , moved pin 11 and 10 to TX and RX, downloaded sketch

Nothing change

Software Serial.h not found….SoftwareSerialTX only offered in manager

2023-03-21 20:08:37
NeloKin wrote:

Which development board you are using? The example code only work for Arduino UNO.

 

2023-03-22 14:09:18
2 Replies
2023-03-20 16:07:11

I follow exactly WIKI page also for wiring.

The only different thing I find is library: 

- your code ask for SoftwareSerial.h      : impossible to find / dont exist- library I found is SoftwareSerialTX.h

 

Also following suggestion in this post I cannot success

https://forum.arduino.cc/t/sensor-shows-the-same-value-a02yyuw/859239/10

Can you send me a working sketch please and right library?

Regards

Marco

userHeadPic marco.fantino
2023-03-20 14:10:43

Could you please follow the WIKI page of A02YYUW Waterproof Ultrasonic Sensor(SKU:SEN0311)?

See https://wiki.dfrobot.com/_A02YYUW_Waterproof_Ultrasonic_Sensor_SKU_SEN0311

Also, could you share your wiring? This can help us find the problem.

userHeadPic NeloKin