[Diao Ye learns programming] Arduino hands-on (58) --- HC-SR04 ultrasonic sensor module 5

insert image description here

The reference to 37 sensors and modules has been widely circulated on the Internet. In fact, there must be more than 37 sensor modules compatible with Arduino. In view of the fact that I have accumulated some sensor and actuator modules on hand, in accordance with the concept of true knowledge (must be hands-on), for the purpose of learning and communication, here I am going to try and do more experiments one by one. Whether it is successful or not, it will be recorded ——Small progress or unsolvable problems, I hope to be able to throw bricks and spark jade.

[Arduino] 168 kinds of sensor module series experiment (data code + simulation programming + graphic programming)
Experiment 58: wide voltage HC-SR04 ultrasonic module 3.3V-5V distance sensor board with UART IIC interface

insert image description here
Experimental environment of HC-SR04 ultrasonic ranging sensor module
1. Hardware list required for HC-SR04 ultrasonic ranging sensor module experiment

TM1637 four-digit digital tube X1
Arduino Uno development board X1
DuPont lines (9 pieces are prepared)
LED light-emitting diode (blue, green) X2
IIC/I2C 1602 LCD screen module X1
HC-SR04 ultrasonic distance sensor module X1
Proto Shield prototype Expansion board (with mini breadboard) X1

insert image description here
Experimental wiring diagram

insert image description here

insert image description here

Program 4: Display the dynamic waveform of ultrasonic ranging
(1) Experimental open source simulation programming (Linkboy V4.63)

insert image description here
(2) Open Linkboy - various commonly used gadgets - serial port plotter, and view the experimental waveform

insert image description here
(3) The return status of the experimental serial plotter

insert image description here
Program 5: Ultrasonic ranging (LED flashes when less than 150 mm)
(1) Experimental open source simulation programming (Linkboy V4.63)

insert image description here
(2) The return status of the experimental serial port

insert image description here
(3) Experimental scene diagram
insert image description here

Program 6: Four-digit digital tube displays ultrasonic distance measurement value
(1) Experimental open source simulation programming (Linkboy V4.63)

insert image description here

(2) Experimental scene diagram

insert image description here
Program 7: Ultrasonic proximity (threshold value 16 cm) sound and light alarm
(1) Experimental open source simulation programming (Linkboy V4.63)

insert image description here
(2) The return status of the experimental serial port

insert image description here
(3) Experimental scene diagram

insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_41659040/article/details/132333801