Overview
- Object ID : 5248 (2025-06-16 10:44:23)
- Author : Michael
- Content : Code
- Microcontroller : Propeller 1
- Language : SPIN
- Category : Sensor
- Licence : MIT
Content
Starting at Rev E, the Parallax Ping))) module adds a serial interface alongside the existing PWM protocol. The newer module is fully backward compatible.
Here are some SPIN code examples for:
- Original PWM mode (Note: The original PWM code will operate on any revision of Ping or LaserPing module - old or new!)
- Dual PWM mode - operate two Ping))) sensors!
- Serial mode
The serial mode switches the Ping))) module into a serial stream output at 115200 baud.
The measurement data is output in millimeters.
The serial data is encoded as standard ASCII decimal with an ASCII carriage return delimiter.