Advice: This guide is based on version 3 of NodeMCU.
Connecting SDS011 (dust sensor)
The Pins are numbered from RIGHT to LEFT,
When connecting them, be careful that the cable ends are pinched tightly on the pins, because Dupont cables can often pinch “next to” the Pins
SDS011 Pin 1 -> Pin D1 / GPIO5
SDS011 Pin 2 -> Pin D2 / GPIO4
SDS011 Pin 3 -> GND
SDS011 Pin 4 -> is not used
SDS011 Pin 5 -> VU (NodeMCU v3) / VIN (NodeMCU v2)
SDS011 Pin 6 -> is not used
SDS011 Pin 7 -> is not used
Connecting BME280 (temperature, humidity and atmospheric pressure sensor)
The pins are numbered from LEFT to RIGHT
VCC (Pin1) <-> 3V3
GND (Pin2) <-> G
SCL (Pin3) <-> D4
SDA (Pin4) <-> D3
Important: Make sure that the sensor pins are soldered to the sensor board!
Electronic scheme
The SDS011 particulate sensor and the BME280 temperature, humidity and atmospheric pressure sensor are connected to the chips (NodeMCU) according to the diagram on the left.
Connecting the Sensirion SPS30 (dust sensor)
SPS30 (I2C, 5V)
Pin 1 (5V) -> Pin VU/VIN
Pin 2 (SDA) -> Pin D3 (GPIO0)
Pin 3 (SCL) -> Pin D4 (GPIO2)
Pin 4 (SEL) -> Pin GND
Pin 5 (GND) -> Pin GND
Remember that a 5 pin female connector ZHR-5 with SZH-002T-P0.5 or similar is required to connect this sensor and a corresponding solder / connection to the Dupont cable 2.54mm / 1pin
Connecting displays and I2C devices
The current firmware supports the following displays and I2C devices:
- OLED SSD1306 (3V3)
- OLED SH1106 (3V3)
- LCD 1602 (5V)
- LCD 2004 (5V)
They are connected according to the following scheme:
IC2 device |
NodeMCU pin |
Vcc 3V |
3V3 |
VCC 5V- при нужда |
VU/VIN |
Gnd |
GND |
SDA |
D3 (GPIO0) |
SCL |
D4 (GPIO2) |
DHT22 connection
- Pin 1 -> 3V3
- Pin 2 -> Pin D7 (GPIO13)
- Pin 3 -> не се свързва
- Pin 4 -> GND
VCC and GND can be provided by the board (use 3.3v!)
Note: Serial connections are always crossed (RX on one side is connected to TX on the other side)
- TX на Neo -> Pin D5 (RX)
- RX на Neo -> Pin D6 (TX)
For more information and to connect other sensors and displays, see here.