Skip to content

Commit 848a905

Browse files
authored
Update README.md
Description for new added sensor HC-SR04 (ultrasonic distance sensor)
1 parent 671fc1e commit 848a905

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Sensors
2121
- DHT11 DHT22 AM2302 temperature/humidity sensor (`dht22`)
2222
- BH1750 light level sensor (`bh1750`)
2323
- DS18S20, DS1822, DS18B20, DS1825, DS28EA00, MAX31850K one-wire temperature sensors: (`ds18b`)
24+
- HC-SR04 ultrasonic distance sensor
2425

2526
Installation
2627
------------
@@ -117,7 +118,6 @@ sensor_inputs:
117118
module: lm75
118119
interval: 15 #interval in seconds, that a value is read from the sensor and a update is published
119120
digits: 4 # number of digits to be round
120-
121121

122122
sensor_modules:
123123
- name: dht22
@@ -131,7 +131,7 @@ sensor_inputs:
131131
interval: 10 #interval in seconds, that a value is read from the sensor and a update is published
132132
digits: 4 # number of digits to be round
133133
type: temperature # Can be temperature or humidity
134-
134+
135135
- name: dht22_humidity
136136
module: dht22
137137
interval: 10 #interval in seconds, that a value is read from the sensor and a update is published
@@ -161,6 +161,19 @@ sensor_inputs:
161161
module: ds18b22
162162
interval: 60
163163
digits: 2
164+
165+
sensor_modules:
166+
- name: hcsr04
167+
module: hcsr04
168+
pin_echo: 27
169+
pin_trigger: 17
170+
burst: 10 # number of measurements for output of distance value in [cm]
171+
172+
sensor_inputs:
173+
- name: distance
174+
module: hcsr04
175+
interval: 10 # measurement every 10s
176+
digits: 1
164177
```
165178
166179
### OrangePi boards

0 commit comments

Comments
 (0)