A python module for the Blue Robotics Ping1D echosounder
Python library for the Ping sonar. Ping is the simple, affordable, and compact ultrasonic altimeter for any aquatic project.
This library exposes all functionality of the device, such as getting profiles, controlling parameters, switching modes, or just simply reading in the distance measurement.
- From source:
$ git clone --recursive http://github.com/bluerobotics/ping-python.git
$ cd ping-python
$ python setup.py install
- Using 'pip'
$ pip install bluerobotics-ping
You can run a simple example that prints the distance reading repeatedly by executing the command below. Place your device's file descriptor after the --device option. For example, on Linux this will likely be /dev/ttyUSB0.
python simplePingExample.py --device <your-device>
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.