mirror of https://github.com/arendst/Tasmota.git
TSL2561 added
parent
efcaea2ece
commit
08785a0c84
|
@ -95,8 +95,13 @@ After reboot of the device the temperature and humidity are displayed.
|
|||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_dht11_main_marked.jpg"/>
|
||||
|
||||
## Motion Sensor PIR (HC-SR501)
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pir-hc-sr501-motion-front.jpg" width=225>
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pir-hc-sr501-motion-back.jpg" width=325>
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pir-hc-sr501-motion-front.jpg" align=right width=200>
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pir-hc-sr501-motion-back.jpg" align=right width=300>
|
||||
|
||||
PIR sensors allow you to sense motion, almost always used to detect whether a human has moved in or out of the sensors range.
|
||||
See [PIR Motion Sensor](https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/overview) for more information.
|
||||
|
||||
|
||||
Connecting the PIR to a Wemos Mini D1.
|
||||
|
||||
|
@ -106,25 +111,31 @@ Connecting the PIR to a Wemos Mini D1.
|
|||
|5V |POWER (VCC) |
|
||||
|D5 (gpio14) |OUTPUT |
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_pir_hc-sr501_config_marked.png" width=350>
|
||||
|
||||
In the Configuration -> Configure Module page, select the following:
|
||||
1. **Module Type : 18 Generic**
|
||||
2. **D5 GPIO14 Sensor : 09 Switch1**
|
||||
3. **D6 GPIO12 Relay1 : 17 Relay1**
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_pir_hc-sr501_config_marked.png" width=350>
|
||||
|
||||
After reboot of the device the displays the status of relay1 aka switch1.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_pir_hc-sr501_main_marked.png" width=350>
|
||||
|
||||
## TSL2561 luminosity Sensor
|
||||
|
||||
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/tsl2561-adafruit-lux-sensor.jpg" align=right width=225>
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/tsl2561-lux-sensor-front.jpeg" align=right width=225>
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/tsl2561-lux-sensor-back.jpg" align=right width=225>
|
||||
|
||||
The TSL2561 luminosity sensor is an advanced digital light sensor, ideal for use in a wide range of light situations. See [TSL2561 luminosity sensor](https://learn.adafruit.com/tsl2561/overview) for more information.
|
||||
|
||||
_Note: before the TSL2561 can be used with Tasmota, make sure it's enabled. To enable it, remove the forward slashes before this line before you compile and upload tasmota to your Wemos device._
|
||||
|
||||
```
|
||||
#define USE_TSL2561 // Add I2C code for TSL2561 sensor using library Joba_Tsl2561 (+2k3 code)
|
||||
```
|
||||
|
||||
Connecting the TSL2561 to a Wemos Mini D1.
|
||||
|
||||
| Wemos | TSL2561 |
|
||||
|
@ -134,13 +145,14 @@ Connecting the TSL2561 to a Wemos Mini D1.
|
|||
|D2 (gpio04) |SDA |
|
||||
|D1 (gpio05) |SCL |
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_tsl2561_config_marked.jpg" width=300>
|
||||
|
||||
In the Configuration -> Configure Module page, select the following:
|
||||
1. **Module Type : 18 Generic**
|
||||
2. **D2 GPIO04 : 06 I2C SDA**
|
||||
3. **D1 GPIO05 : 05 I2C SCL**
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_tsl2561_config_marked.jpg" width=300>
|
||||
|
||||
After reboot of the device the displays the TSL2561 Illuminance.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_tsl2561_main_marked.jpg" width=300>
|
Loading…
Reference in New Issue