# Recording ping data onboard

**URL:** <https://discuss.bluerobotics.com/t/recording-ping-data-onboard/12187>\
**Category:** Ping Sonar Devices\
**Created:** [May 24, 2022, 2:17pm UTC](https://discuss.bluerobotics.com/t/recording-ping-data-onboard/12187 "2022-05-24T14:17:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [May 24, 2022, 11:30pm UTC](https://discuss.bluerobotics.com/t/recording-ping-data-onboard/12187/2 "2022-05-24T23:30:35Z")

</div>

Hi @Samanto,

> [@Samanto](#):
>
> I was just wondering how easy it would be for me to record the ping sonar data in this simple format in a .csv or .txt

That would be quite simple - you could use one of the code libraries that are linked to in the technical details on [the product page](https://bluerobotics.com/store/sensors-sonars-cameras/sonar/ping-sonar-r2-rp/) (Python is likely easiest) 🙂

The code in [this comment](https://discuss.bluerobotics.com/t/ping1d-lag-in-receiving-measurements/7521/8) pretty much does what you were after.

> [@Samanto](#):
>
> Also, is the Ping sold with a usb connector?

The sensor itself has four loose wires for TTL Serial communication. The [BLUART USB to TTL Serial adaptor](https://bluerobotics.com/store/comm-control-power/tether-interface/bluart-r1-rp/) (which you can select to include on the Ping Sonar page) has a micro-USB port, which you can connect to with any USB-A to micro-USB cable. If you’d like an extra short one for using in small spaces (e.g. an enclosure) you can scroll down to the “You may also need” section on the Ping Sonar page and add our [6" micro USB cable](https://bluerobotics.com/store/comm-control-power/tether-interface/misc-cab-usb-micro-straight-6in-r1/) 🙂

---

_[View the full topic](https://discuss.bluerobotics.com/t/recording-ping-data-onboard/12187)._
