Wiring, Logic, and BroadLink Integration
This Sensor Node features a comprehensive sensor suite designed for environmental monitoring and automated security.
This Sensor Node is a direct development and expansion of the Power & Networking project.
Figure 4: Comprehensive Wiring for PIR, Photodiode, DHT22, and RGB LED
Connect the sensors to the Pi Zero 2 W using the following GPIO configuration.
| DHT22 (Temp/Humidity)[1] | Pi Physical Pin | Wiring |
|---|---|---|
| Vcc (+) | Pin 2 (5V) | Orange |
| Data | Pin 35 (GPIO 19) | Brown / White |
| Null | not connected | |
| Ground | Pin 6 (GND) | Blue |
| PIR (Movement)[2] | Pi Physical Pin | Wiring |
| Vcc (+) | Pin 2 (5V) | Orange |
| Out | Pin 40 (GPIO 21) | Brown |
| Ground | Pin 6 (GND) | Blue |
| Photodiode Module[3] | Pi Physical Pin | Wiring |
| Vcc (+) | Pin 2 (5V) | Orange |
| Ground | Pin 6 (GND) | Blue |
| TTL Sihnal Output | Pin 36 (GPIO 16) | Green |
| Analog Signal Output | not connected | |
| RGB Led[4] | Pi Physical Pin | Wiring |
| Blue | Pin 37 (GPIO 26) trough 470Ω resistor[7] | Blue / White |
| Green | Pin 38 (GPIO 20) trough 470Ω resistor[7] | Green / White |
| Common Anode | Pin 1 (3.3V) | Orange |
| Red | Pin 29 (GPIO 5) trough 470Ω resistor[7] | Orange / White |
| BroadLink Command Hub[5] | Pi Physical Pin | Wiring |
| Vcc | Pin 2 (5V) | Orange |
| Ground | Pin 6 (GND) | Blue |
To ensure the reliability of the remote node, both the PIR and LM393 modules must be physically calibrated to match the deployment environment.
The PIR module features two orange potentiometers:
This module uses a comparator to determine "Light" vs "Dark" thresholds:
HIGH signal only when the light drops below that specific level.Referenced components used in this manufacturing process.
| ID | Item | Pinnout Diagram | Description/Source |
|---|---|---|---|
| [1] | DHT22 | Pinout | Available on Sigmanortec. |
| [2] | PIR | Pinout | Available on Sigmanortec. |
| [3] | Photodiode Module | Pinout | Available on Optimus Digital. |
| [4] | RGB LED 5MM 4-PIN COMMON ANODE, OPAQUE | Pinout | Available on Sigmanortec. |
| [5] | BroadLink RM4 Pro | Available on Emag. | |
| [6] | Raspberry Pi Zero 2 W | Pinout | Available on Emag. |
| [7] | 470Ω Resistor | Available on Sigmanortec. |