โมดูลแสดงผลและอ่านค่าระยะทาง สำหรับ HC-SR04 Ultrasonic Distance Sensor Rangefinder Digital Displayโมดูลแสดงผลระยะทางสำหรับ HC-SR04 แสดงผลเป็นตัวเลข หน่วยเป็นเซนติเมตร สามารถอ่านค่าระยะทางผ่าน Serial ได้เลย ใช้ไฟเลี้ยง 5VDC ประมวลผลด้วยคอนโทรเลอร์ STM8S103 (สินค้าไม่รวมตัวโมดูล HC-SR04)
Features
- Onboard STM8S103 high-performance microprocessor
- With digital display
- Data can be output through the serial port
- Effective measuring distance: 3cm - 400cm
- Display unit: cm
- The biggest error: about 1%
- Working voltage: 5V
Interface Description
- VCC, GND: 5V power interface
- 2.54mm white socket: 5V power supply interface
- TX: module serial port to send foot
- RX: module serial port receive pin
- NRST, SWIN: reserved STM8 program download port
Instructions for use
Measurement distance can be displayed simultaneously through the digital tube and serial port
Digital display, directly plug in the ultrasonic module, access 5V power supply
Serial port output: plug in the ultrasonic module, the module's VCC, TX, RX, GND are connected to USB to TTL module 5V, RX, TX, GND, serial communication baud rate 9600, the output format: "D: XXX \ r \ n ", Where XXX represents the distance, the unit is CM
Precautions
Ranging, the measured object area of not less than 0.5 square meters and should be as flat as possible and slightly stronger reflective ability, otherwise, it will affect the test results.
Effective measuring distance 3cm-400cm, beyond this range may result in data is not allowed or display 000