Answer

Feb 12, 2025 - 04:06 AM
To switch the LaserPING Rangefinder Module from PWM mode to serial mode, you need to follow these steps:
1. Drive the SIG pin low.
2. Send three high 100 µs pulses with 5 µs, or longer, low gaps between. This can be done by transmitting a capital 'I' character.
Once you have completed these steps, the LaserPING Rangefinder Module will be in serial mode, and it will constantly send new measurement data in ASCII format. The value will be in millimeters and followed by a carriage return character (decimal 13). A new value will be transmitted each time the sensor receives a valid reading, typically once every 45 ms.
To switch back to the default PWM mode, follow these steps:
1. Assert the SIG pin low and hold it low for 100 ms.
2. Release the SIG pin (set your I/O pin that is connected to SIG back to high-impedance input mode).
After completing these steps, the LaserPING Rangefinder Module will return to PWM mode.
Please refer to the "Communication Protocol" section in the user guide for more detailed information on switching between PWM and serial modes.
Add New Comment