Skip to content

Assembly of components (circuit)

Warukira Theuri edited this page May 23, 2023 · 8 revisions

Previous page: Known Errors - Next page: Assembly of parts

These instructions are for Version 3 of the NodeMCU (identification described in previous article). In Version 1 and Version 2, you have to use VIN and GND next to the MicroUSB connection, instead of VU and G.

Circuit diagram

Below is the circuit diagram of how to connect the NodeMCU, PMS5003, GSM, status LEDs and DHT22. Optionally, and also proven more successful with installs, is to also connect Pin1 of the DHT22 to 5V (VU).

AQ_sensors_GSM_sch

Connections

Connections PMS5003

The pins are listed from right to left.

PMS5003 pin NodeMCU pin
1 unused
2 unused
3 unused
4 D1 (GPIO5)
5 D2 (GPIO4)
6 unused
7 GND
8 5V

Connections DHT22

The pins are listed from left to right. The grid is front-facing.

DHT22 pin NodeMCU pin
1 3V3 (3.3V)
2 D7 (GPIO13)
3 unused
4 GND

Other sensors and hardware (optional)

Connections Sim800l

The pins are listed from left to right. The grid is front-facing.

Sim800l pin NodeMCU pin
GND GND
TXD Pin D5 (GPIO14)
RXD Pin D6 (GPIO12)
RST Pin D8 (GPIO18)
Vcc 3.3V
NET unused

In production also ensure your power source can provide at least 2A of current to the GSM module.

Connections Status_LEDs

LED pin NodeMCU pin
1 PMS_LED cathode (+)
2 PMS_LED anode (-)
3 DHT_LED cathode (+)
4 DHT_LED anode (-)

Connections PPD42NS

The pins are listed from right to left.

PPD42NS pin NodeMCU pin
1 GND
2 D5 (GPIO14)
3 VU
4 D6 (GPIO12)
5 unused

Connections I2C hardware (eg. barometric pressure BMP180, display, ...)

The firmware can read IC2 hardware that is connected as follows. It has to support 3.3V.

IC2 NodeMCU pin
Vcc 3V3
Gnd GND
SDA D3
SCL D4