# Can't connect to sonar

**URL:** <https://discuss.bluerobotics.com/t/cant-connect-to-sonar/8661>\
**Category:** Ping Sonar Devices\
**Created:** [November 26, 2020, 10:22am UTC](https://discuss.bluerobotics.com/t/cant-connect-to-sonar/8661 "2020-11-26T10:22:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petmonkey](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Petmonkey](https://discuss.bluerobotics.com/u/Petmonkey)\
**Post date:** [November 26, 2020, 10:22am UTC](https://discuss.bluerobotics.com/t/cant-connect-to-sonar/8661/1 "2020-11-26T10:22:29Z")

</div>

Hi all!

I have a ping sonar that I bought quite a while back. It’s been in the box until now and I’m trying to start it up.

When I try to start it with any Arduino I have all I get is this:

 ![Skärmavbild 2020-11-26 kl. 11.05.51](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/2/228f3e4f01f1171072460210fd8b7d99ea65b709.png)

I have tried all three versions of the code I can find. I have tried 9600 and 115200 baud rate.

Does anyone have more tips to try?

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [November 30, 2020, 1:03pm UTC](https://discuss.bluerobotics.com/t/cant-connect-to-sonar/8661/2 "2020-11-30T13:03:43Z")

</div>

Hi @Petmonkey ,

Did you follow our guide ?

> **[Using the Ping Sonar with an Arduino](https://bluerobotics.com/learn/using-the-ping-sonar-with-an-arduino/)**
>
> This guide teaches you how to connect the Ping Echosounder sonar with an Arduino to measure distances underwater. It can be used the make a basic fishfinder, boat depth sensor, and for ROV and robotics projects.

Remember to double check if the RX and TX are not swapped.

---

<div class="post-metadata">

**Author:** ![Petmonkey](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Petmonkey](https://discuss.bluerobotics.com/u/Petmonkey)\
**Post date:** [December 3, 2020, 10:03am UTC](https://discuss.bluerobotics.com/t/cant-connect-to-sonar/8661/3 "2020-12-03T10:03:25Z")

</div>

Hi!

I did. I have tried both with pc and Mac as well. I have found three different versions of your code as well. Different baud rates. Switching the serial cables.

Do you know if there’s a way to check if it works without getting it connected?

Sam

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [December 3, 2020, 2:35pm UTC](https://discuss.bluerobotics.com/t/cant-connect-to-sonar/8661/4 "2020-12-03T14:35:31Z")

</div>

Hi,

The simple example should work, if not, double check your connections to make sure that everything is connected with an multimeter, remember to use short wires to avoid any communication problem.

---

<div class="post-metadata">

**Author:** ![Petmonkey](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Petmonkey](https://discuss.bluerobotics.com/u/Petmonkey)\
**Post date:** [December 14, 2020, 2:56pm UTC](https://discuss.bluerobotics.com/t/cant-connect-to-sonar/8661/5 "2020-12-14T14:56:47Z")

</div>

Hi Patrick!

I have checked all the connections and it’s still not working. I’m out of ideas.
