These sealed ultrasonic module has a serial port mode that can be accessed by adding a resistor.
check the datasheet for proper resistor values. the one i used for this example is a 120kohm resistor.
Sample Source Code.
https://github.com/insomartin/JSN-SR04T-2.0-ultrasonic-sensor

No comments:
Post a Comment