Ultrasonic is used frequently in distance measurement due to its directional property and it can travel a longer distance.
This SP-40-38F ultrasonic sensor board adds a pair of Tx/Rx ultrasonic transceiver and an amplifer. C and Assembly code of 8051 are provided.
- Pin 1: connect GND
- Pin 2: connect MCU's P3.2
- Pin 3: Connect MCU's P1.0
- Pin 4: Connect MCU's VCC 5V