mirror of https://github.com/arendst/Tasmota.git
added hc-sr04
parent
a82952c46f
commit
2fa3449178
|
@ -231,3 +231,30 @@ In the Configuration -> Configure Module page, select the following:
|
|||
After reboot of the device the displays the VEML6070 UV light intensity.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_veml6070_main_marked.jpg" width=300>
|
||||
|
||||
## HC-SR04 Ultrasonic Sensor
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/hc-sr04-ultrasonic-sensor-blue.jpg" align=right width=225>
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/hc-sr04-ultrasonic-sensor-red.jpg" align=right width=225>
|
||||
|
||||
"This is the HC-SR04 ultrasonic ranging sensor. This economical sensor provides 2cm to 400cm of non-contact measurement functionality with a ranging accuracy that can reach up to 3mm. Each HC-SR04 module includes an ultrasonic transmitter, a receiver and a control circuit." See [HC-SR04 Ultrasonic Sensor](https://www.sparkfun.com/products/13959) for more information.
|
||||
|
||||
Connecting the HC-SR04 to a Wemos Mini D1.
|
||||
|
||||
| Wemos | HC-SR04 |
|
||||
|---|---|
|
||||
|GND |GND |
|
||||
|5V |VCC |
|
||||
|D6 (gpio12) |Trig |
|
||||
|D7 (gpio13) |Echo |
|
||||
|
||||
In the Configuration -> Configure Module page, select the following:
|
||||
1. **Module Type : 18 Generic**
|
||||
2. **D6 GPIO12 : 69 SR04 Tri**
|
||||
3. **D7 GPIO13 : 70 SR04 Ech**
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_hc-sr04_config_marked.jpg" width=300>
|
||||
|
||||
After reboot of the device the displays the HC-SR04 distance.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_hc-sr04_main_marked.jpg" width=300>
|
Loading…
Reference in New Issue