Ultrasonic Distance Measurement Module HC-SR04 Test Board
Date:2024-01-23 Views:
Overview
LC Ultrasonic Ranging Display Module uses ST's 8-bit microcontroller as the master chip and can be used for distance measurement and test the performance of the HC-SR04 ultrasonic module. The data can be output via LED or serial port.
Function features
1. Onboard STM8S103 high-performance microprocessors
2. With digital display
3. The data can be output through the serial port
4. The effective measurement distance: 3cm - 400cm
5. Unit: cm
6. Maximum error: about 1%
7. Working voltage: 5V
Hardware introduction and description
1.Board size: 42*60mm
2.Functions of the board
(1)Interface description
VCC, GND: 5V power interface
2.54mm white socket: 5V power interface
TX: serial port sending pin
RX: serial port receiving pin
NRST, SWIN: reserved STM8 program download port
3.Instructions for use
The tested distance can be display on LED or output through serial port,as below:
(1) LED display: plug the ultrasonic module, access 5V power supply, as shown below:

(2) Serial output: plug in the ultrasonic module, the module’s VCC, TX, RX, GND pin connect to 5V, RX, TX, GND pin of the USB convert to TLL module, baud rate is 9600, the output format: "D: XXX r n ", Where XXX stands for distance, unit is CM. as the picture shows:
