Every device its own page, to reduce the length of this page

Raymond Mouthaan 2018-05-21 15:27:48 +02:00
parent 7412d6d877
commit d13b5867e3
1 changed files with 17 additions and 387 deletions

@ -36,409 +36,39 @@ From the Menu -> PlatformIO -> Run Other Target... (F7) and choose PIO Upload (w
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/platformio_run_other_target.jpg" width=625>
# Configure Tasmota for WEMOS
# Configure Tasmota for Wemos
## Generic Module
In the Configuration -> Configure Module page, select **Module Type: "18 Generic"** (releases before 5.12.0 this was called "Wemos D1 Mini"). After Saving the settings, the WEMOS reboots with the Generic configuration.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/tasmota_module_config.jpg">
## SHT30 Shield High Precision Humidity & Temperature (I2C)
# Wemos and Devices
Below a list of devices supported by Tasmota and Wemos
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_sht30_shield_v1.0.0.jpg" align="right" width=220>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_sht30_shield_v2.0.0.jpg" align="right" width=250>
- [Wemos D1 Mini and SHT30 Shield High Precision Humidity ](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-SHT30-Shield-High-Precision-Humidity-&-Temperature)
From the [Wemos SHT30 shield specs](https://wiki.wemos.cc/products:d1_mini_shields:sht30_shield) the SDA pin on the SHT30 shield is connected to D2 and the SCL pin to D1.
- [Wemos D1 Mini and DHT22 (DHT21, AM2301, AM2302, AM2321) Shield Humidity & Temperature](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-DHT22-(DHT21,-AM2301,-AM2302,-AM2321)-Shield-Humidity-&-Temperature)
_Note: v1.0.0 is retired, but v2.0.0 has the same pining._
- [Wemos D1 Mini and DHT11 Shield Humidity & Temperature](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-DHT11-Shield-Humidity-&-Temperature)
In the Configuration -> Configure Module page, select the following:
* **D2 GPIO4** : **06 I2C SDA**
* **D1 GPIO5** : **05 I2C SCL**
- [Wemos D1 Mini and HC-SR501 PIR Motion Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-HC-SR501-PIR-Motion-Sensor)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_sht30_config_marked.jpg">
- [Wemos D1 Mini and RCWL 0516 Microwave Radar Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-RCWL-0516-Microwave-Radar-Sensor)
After reboot of the device the temperature and humidity are displayed.
- [Wemos D1 Mini and TSL2561 Luminosity Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-TSL2561-Luminosity-Sensor)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_sht30_main_marked.jpg">
- [Wemos D1 Mini and DH1750 Luminosity Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-DH1750-Luminosity-Sensor)
## DHT22 (DHT21, AM2301, AM2302, AM2321) Shield Humidity & Temperature (single pin)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_dth22_shield.jpg" align="right" width=300>
- [Wemos D1 Mini and WS2812B RGB Shield](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-WS2812B-RGB-Shield)
Like the [Wemos DHT11 shield specs](https://wiki.wemos.cc/products:retired:dht_shield_v1.0.0) the DATA OUT pin of Wemos DHT22 is connected to D4 of the Wemos.
- [Wemos D1 Mini and VEML6070 UV Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-VEML6070-UV-Sensor)
_Note: this is ONLY for v1.0.0 of the DHT11 shield, since v2.0.0 uses I2C and pinned differently._
- [Wemos D1 Mini and BME280 Temperature, Humidity and Pressure Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-BME280-Temperature,-Humidity-and-Pressure-Sensor)
In the Configuration -> Configure Module page, select the following:
* **D4 GPIO2** : **02 AM2301**
- [Wemos D1 Mini and BME680 Temperature, Humidity, Pressure and Gas Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-BME680-Temperature,-Humidity,-Pressure-and-Gas-Sensor)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_dht22_config_marked.jpg"/>
- [Wemos D1 Mini and HC-SR04 Ultrasonic Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-HC-SR04-Ultrasonic-Sensor)
After reboot of the device the temperature and humidity are displayed.
- [Wemos D1 Mini and Nova Fitness SDS011 Laser Dust Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-HC-SR04-Ultrasonic-Sensor)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_dht22_main_marked.jpg"/>
## DHT11 Shield Humidity & Temperature (single pin - retired)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_dth11_shield.jpg" align="right" width=300>
From the [Wemos DHT11 shield specs](https://wiki.wemos.cc/products:retired:dht_shield_v1.0.0) the DATA OUT pin is connected to D4 of the Wemos.
_Note: this is ONLY for v1.0.0 of the DHT11 shield, since v2.0.0 uses I2C and pinned differently._
In the Configuration -> Configure Module page, select the following:
* **D4 GPIO2** : **01 DHT11**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_dht11_config_marked.jpg"/>
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"/>
## PIR Motion Sensor - HC-SR501 (single pin)
<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.
| Wemos |PIR |
|---|---|
|GND |GND |
|5V |POWER (VCC) |
|D5 (gpio14) |OUTPUT |
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>
## RCWL-0516 Microwave Radar Sensor (single pin)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/rcwl0516-microwave-radar-sensor-front.jpg" align=right width=200>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/rcwl0516-microwave-radar-sensor-back.jpg" align=right width=200>
RCWL-0516 microwave radar sensor module Human body induction switch module Intelligent sensor Features:
1. transmission signal processing control chip RCWL-9196
2. wide operating voltage range: 4.0-28.0V
3. compared with the traditional infrared feeling PIR, with the penetrating detection capability
4. block time, distance adjustable
5. output 3.3V power supply
See [RCWL-0516 Microwave Radar Sensor](https://ita.ovh/files/rcwl-0516.pdf) for more information.
Buy example: [RCWL 0516 Microwave Radar Sensor](https://nl.aliexpress.com/item/RCWL-0516-microwave-radar-sensor-module-Human-body-induction-switch-module-Intelligent-sensor/32816228153.html?spm=a2g0z.search0104.3.37.32f53725Q0wx40&ws_ab_test=searchweb0_0,searchweb201602_1_10152_10151_10065_10344_10068_10342_10343_5722611_10340_10341_10698_10696_5722911_5722811_10084_5722711_10083_10618_10304_10307_10301_5711211_10059_308_100031_10103_10624_10623_10622_10621_10620_5711311_5722511-normal#cfs,searchweb201603_6,ppcSwitch_5&algo_expid=805ea675-8ca4-4a24-b54d-99843a295897-5&algo_pvid=805ea675-8ca4-4a24-b54d-99843a295897&transAbTest=ae803_2&priceBeautifyAB=0)
Connecting the RCWL-0516 to a Wemos Mini D1.
| Wemos |RCWL-0516 |
|---|---|
|GND |GND |
|5V |VIN |
|D1 (gpio05) |OUT |
In the Configuration -> Configure Module page, select the following:
1. **Module Type : 18 Generic**
2. **D1 GPIO05 : 09 Switch1**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos-rcwl0516-config-marked.jpg" width=350>
After reboot of the device the console displays the status of switch1.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos-rcwl0516-console-marked.jpg" width=350>
## TSL2561 Luminosity Sensor (I2C)
<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 |
|---|---|
|GND |GND |
|3.3V |VCC |
|D2 (gpio04) |SDA |
|D1 (gpio05) |SCL |
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>
## DH1750 Luminosity Sensor (I2C)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bh1750-light-intensity-sensor-front.jpg" align=right width=225>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bh1750-light-intensity-sensor-back.jpg" align=right width=225>
The BH1750 is a digital ambient light sensor module which uses I2C to communicate. The BH1750 provides you with a digital value in lux (Lx) over a range of 1 - 65535 lx. See [Digital 16bit Serial Output Type
Ambient Light Sensor IC](http://cpre.kmutnb.ac.th/esl/learning/bh1750-light-sensor/bh1750fvi-e_datasheet.pdf) for more information.
Connecting the DH1750 to a Wemos Mini D1.
| Wemos | DH1750 |
|---|---|
|GND |GND |
|5V |VCC |
|D3 (gpio0) |SDA |
|D4 (gpio2) |SCL |
In the Configuration -> Configure Module page, select the following:
1. **Module Type : 18 Generic**
2. **D3 GPIO0 : 06 I2C SDA**
3. **D4 GPIO2 : 05 I2C SCL**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_bh1750_config_marked.jpg" width=300>
After reboot of the device the displays the DH1750 Illuminance.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_bh1750_main_marked.jpg" width=300>
## WS2812B RGB Shield (single pin)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2812b_shield.jpg" align="right" width=320>
From the [Wemos ws2812b shield specs](https://wiki.wemos.cc/products:d1_mini_shields:ws2812b_rgb_shield) the DATA pin is connected to D2 of the Wemos.
In the Configuration -> Configure Module page, select the following:
* **D2 GPIO4** : **07 WS2812**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2812b_config_marked.jpg"/>
After reboot of the device the dark-bright slider and toggle button are displayed to control the led.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_ws2812b_main_marked.jpg"/>
## VEML6070 UV Sensor (I2C)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/veml6070-adafruit-uv-sensor.jpg" align=right width=225>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/veml6070-uv-sensor.jpg" align=right width=225>
"This little sensor is a great way to add UV light sensing to any microcontroller project. The VEML6070 from Vishay has a true UV A light sensor and an I2C-controlled ADC that will take readings and integrate them for you over ~60ms to 500ms." See [VEML6070 UV Sensor](https://learn.adafruit.com/adafruit-veml6070-uv-light-sensor-breakout/overview) for more information.
_Note: before the VEML6070 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_VEML6070 // Add I2C code for VEML6070 sensor (+0k5 code)
```
Connecting the VEML6070 to a Wemos Mini D1.
| Wemos | VEML6070 |
|---|---|
|GND |GND |
|3.3V |VCC |
|D3 (gpio0) |SDA |
|D4 (gpio2) |SCL |
In the Configuration -> Configure Module page, select the following:
1. **Module Type : 18 Generic**
2. **D3 GPIO0 : 06 I2C SDA**
3. **D4 GPIO2 : 05 I2C SCL**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_veml6070_config_marked.jpg" width=300>
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>
## BME280 Temperature, Humidity and Pressure Sensor (I2C)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bme280-adafruit-thp-sensor.jpg" align=right width=200>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bme280-thp-sensor.png" align=right width=225>
"BME280 sensor, an environmental sensor with temperature, barometric pressure and humidity" See [BME280 Temperature, Humidity and Pressure Sensor](https://www.adafruit.com/product/2652) for more information.
_Note: before the BME280 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_BMP // Add I2C code for BMP085/BMP180/BMP280/BME280 sensor (+4k code)
```
Connecting the BME280 to a Wemos Mini D1.
| Wemos | BME280 |
|---|---|
|GND |GND |
|3.3V |VCC |
|D3 (gpio0) |SDA |
|D4 (gpio2) |SCL |
In the Configuration -> Configure Module page, select the following:
1. **Module Type : 18 Generic**
2. **D3 GPIO0 : 06 I2C SDA**
3. **D4 GPIO2 : 05 I2C SCL**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_bme280_config_marked.jpg" width=300>
After reboot of the device the displays temperature, humidity and pressure measured by the BME280.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_bme280_main_marked.jpg" width=300>
## BME680 Temperature, Humidity, Pressure and Gas Sensor (I2C)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bme680-gas-pressure-humidity-temperature-sensor.jpg" align=right width=225>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/bme680-gas-pressure-humidity-temperature-sensor-adafruit.jpg" align=right width=275>
"BME680 sensor, an environmental sensor with temperature, humidity, barometric pressure and gas".
_The BME680 takes those sensors to the next step in that it contains a small MOX sensor. The heated metal oxide **changes resistance** based on the volatile organic compounds (VOC) in the air, so it can be used to detect gasses & alcohols such as Ethanol, Alcohol and Carbon Monoxide, and perform air quality measurements. Note it will give you one resistance value, with overall VOC content, but it cannot differentiate gasses or alcohols._
See [BME680 - Temperature, Humidity, Pressure and Gas Sensor](https://www.adafruit.com/product/3660) for more information.
Buy example:
- [Adafruit](https://www.adafruit.com/product/3660)
- [AliExpress](https://nl.aliexpress.com/item/CFsunbird-BME680-temperature-and-humidity-temperature-pressure-high-altitude-sensor/32852091387.html?spm=a2g0z.10010108.1000016.1.681262bcNmktSg&isOrigTitle=true)
_Note: before the BME680 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_BME680 // Add additional support for BME680 sensor using Adafruit Sensor and BME680 libraries (+6k code)
```
Connecting the BME680 to a Wemos Mini D1.
| Wemos | BME680 |
|---|---|
|GND |GND |
|3.3V |VCC |
|D2 (gpio4) |SDA |
|D1 (gpio5) |SCL |
In the Configuration -> Configure Module page, select the following:
1. **Module Type : 18 Generic**
2. **D2 GPIO4 : 06 I2C SDA**
3. **D1 GPIO5 : 05 I2C SCL**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos-bme680-config-marked.jpg" width=300>
After reboot of the device the displays temperature, humidity, pressure and gas measured by the BME680.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos-bme680-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>
## Nova Fitness SDS011 PM2.5 PM10 Laser Dust Sensor (Serial)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/pm2.5_sensor_sds011.jpg" align=right width=300>
The SDS011 using principle of laser scattering,can get the particle concentration between 0.3 to 10µm in the air. It with digital output and built-in fan is stable and reliable.
Accurate and Reliable: laser detection, stable, good consistency;
Quick response: response time is less than 10 seconds when the scene changes;
Easy integration: UART output (or IO output can be customized), fan built-in;
High resolution: resolution of 0.3µg/m3;
Measurementparameters PM2.5, PM10
Range 0.0-999.9µg /m3
Rated voltage 5V
Rated current 70mA±10mA
See [Nova Fitness SDS011 PM2.5 PM10 Laser Dust Feinstaub Sensor](https://inovafitness.de/produkt/sds011) (German) for more information.
Connecting the SDS011 to a Wemos Mini D1.
| Wemos | SDS011 |
|---|---|
|GND |GND |
|5V |5V |
|RX (gpio03) |TX |
In the Configuration -> Configure Module page, select the following:
1. **Module Type : 18 Generic**
2. **RX (GPIO03 : 66 SDS0X1**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_sds0x1_config_marked.jpg" width=300>
After reboot of the device the displays the SDS011 measurements.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_sds0x1_main_marked.jpg" width=300>
## MH-Z19B CO2 sensor (Serial)
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/mhz19b-co2-sensor-front.jpg" align=right width=225>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/mhz19b-co2-sensor-back.jpg" align=right width=225>
The MH-Z19 sensor is manufactured by Winsen Lt., China and the measurement method used is based on the non-dispersive infrared (NDIR) principle to detect the existence of CO2 in the air.
Key features according to the manufacturer are:
- good sensitivity.
- non-oxygen dependent.
- long life.
- built-in temperature compensation.
- UART serial interface and Pulse Width Modulation (PWM) output.
Principle of operation:
The main components of an NDIR sensor are an infrared source (lamp), a sample chamber or light tube, a light filter and an infrared detector. The IR light is directed through the sample chamber towards the detector. In parallel there is another chamber with an enclosed reference gas, typically nitrogen. The gas in the sample chamber causes absorption of specific wavelengths according to the BeerñLambert law, and the attenuation of these wavelengths is measured by the detector to determine the gas concentration. The detector has an optical filter in front of it that eliminates all light except the wavelength that the selected gas molecules can absorb.
Buy example: [MH-Z19B-Infrared-CO2-Sensor-for-CO2-Monitor-NDIR-Gas-Sensor-CO2-gas-sensor](https://de.aliexpress.com/item/MH-Z19B-Infrared-CO2-Sensor-for-CO2-Monitor-NDIR-Gas-Sensor-CO2-gas-sensor/32823821163.html?ws_ab_test=searchweb0_0,searchweb201602_4_10320_10152_10321_10065_10709_10151_10344_10068_5722815_10342_10547_10343_10322_10340_10341_10548_5722915_10193_5722615_10696_10194_10084_10083_10618_10304_10307_10710_10302_5722715_10180_5711215_10059_10184_308_100031_10319_10103_10624_10623_10622_10186_5711315_5722515_10621_10620,searchweb201603_25,ppcSwitch_5&algo_expid=7a99f4de-3d10-4a1a-bd67-88f95132b1a4-0&algo_pvid=7a99f4de-3d10-4a1a-bd67-88f95132b1a4&priceBeautifyAB=0)
Operating current < 18mA average
Connecting the MHZ19B to a Wemos Mini D1.
| Wemos | SDS011 |
|---|---|
|VCC +5V | Vin |
|GND | GND |
|TX (gpio01) |RX |
|RX (gpio03) |TX |
In the Configuration -> Configure Module page, select the following:
1. **Module Type : 18 Generic**
2. **TX GPIO01 : 56 MHZ Tx**
3. **RX GPIO03 : 57 MHZ Rx**
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_mhz19b_config_marked.jpg" width=300>
After reboot of the device the displays the MHZ-19B measurements.
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos_mhz19b_main_marked.jpg" width=300>
- [Wemos D1 Mini and MH-Z19B CO2 Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini-and-MH-Z19B-CO2-Sensor#mh-z19b-co2-sensor-serial)