Usage: Rain sensors are used in the detection of water beyond what a humidity sensor can detect.
How it works:The rain sensor detects water that completes the circuits on its sensor boards' printed leads. The sensor board acts as a variable resistor that will change from 100k ohms when wet to 2M ohms when dry. In short, the wetter the board the more current that will be conducted.
Pins:A0 --> Analog output
D0 --> Digital output
GND --> Ground
VCC --> Positive voltage (input: 5v for analog 3.3v for Digital.)
Loop Pins:+ --> Sensor board +
- --> Sensor board -
2. NodeMCU:NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. The term "NodeMCU" by default refers to the firmware rather than the development kits. The firmware uses the Luascripting language. It is based on the eLua project, and built on the Espressif Non-OS SDK for ESP8266. It uses many open source projects, such as lua-cjson and SPIFFS.
Pins:
NodeMCU provides access to the GPIO (General Purpose Input/Output) and a pin mapping table is part of the API documentation.
I/O index --> ESP8266 pin
0[*] --> GPIO16
1 --> GPIO5
2 --> GPIO4
3 --> GPIO0
4 --> GPIO2
5 --> GPIO14
6 --> GPIO12
7 --> GPIO13
8 --> GPIO15
9 --> GPIO3
10 --> GPIO1
11 --> GPIO9
12 --> GPIO10
[*] D0 (GPIO16) can only be used for GPIO read/write. It does not support open-drain/interrupt/PWM/I²C or 1-Wire.
Comments