How to connect a ping sonar to raspberry pi 3 a type for b+

Hi @ahmedrashed, welcome to the forum :slight_smile:

To start with, what are you actually trying to achieve here?

Ping Viewer is a display software that runs on a topside computer. While you should be able to compile it yourself if you actually want to run it on a Raspberry Pi, that would be a very rare use-case. An ordinary workflow would involve one of

  1. Ping Viewer (topside computer) → tether → BlueOS (onboard computer (Raspberry Pi)) → Ping Sonar / Ping360 (via USB)
    • most common approach on a vehicle
  2. Ping Viewer (topside computer) → tether → Ethernet Switch → Ping360 (ethernet configuration)
    • higher performance approach for Ping360 (not relevant for Ping Sonar)
  3. Ping Viewer (topside computer) → Ping Sonar / Ping360 (via USB)
    • commonly used when initially testing sensor, without a vehicle
  4. manual control via code library (computer/Raspberry Pi/Arduino/etc) → Ping Sonar / Ping360 (via serial/USB/ethernet as relevant)
    • used for custom integrations
    • see “Technical Details” on Ping device product pages for library links