Raspberry Pi 4B Automated Irrigation System with IR Sensor and Solenoid Valve
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves a Raspberry Pi 4B, an IR sensor, a 2-channel relay module, and a plastic solenoid valve. The Raspberry Pi 4B serves as the central controller, interfacing with the IR sensor to detect signals and controlling the relay module to operate the solenoid valve.
Component List
Raspberry Pi 4B
- Description: A powerful single-board computer used for various applications including IoT, automation, and more.
- Pins: 3V3, 5V, GPIO2, GPIO3, GND, GPIO4, GPIO14, GPIO15, GPIO17, GPIO18, GPIO27, GPIO22, GPIO23, GPIO24, GPIO10, GPIO9, GPIO25, GPIO11, GPIO8, GPIO7, ID_SD, GPIO5, GPIO6, GPIO12, GPIO13, GPIO19, GPIO16, GPIO26, GPIO20, GPIO21, ID_SC, TR01_TAP, TR00_TAP, TR03_TAP, TR02_TAP, RUN, GLOBAL_EN
- Purpose in Circuit: Central controller for the circuit.
IR Sensor
- Description: An infrared sensor used to detect objects or signals.
- Pins: out, gnd, vcc
- Purpose in Circuit: Detects signals and sends output to the Raspberry Pi.
Plastic Solenoid Valve
- Description: An electrically controlled valve used to control the flow of liquids or gases.
- Pins: pin1, pin2
- Purpose in Circuit: Controls the flow of a fluid based on signals from the relay module.
2-Channel Relay Module
- Description: A relay module with two channels used to control high-power devices.
- Pins: N.O. 2, COM 2, N.C. 2, N.O. 1, COM 1, N.C. 1, pin 7, pin 8, pin 9, pin 10, pin 11, pin 12, VCC+, VCC- (GND), IN 1, IN 2
- Purpose in Circuit: Acts as a switch to control the solenoid valve based on signals from the Raspberry Pi.
Wiring Details
Raspberry Pi 4B
5V is connected to:
- vcc of the IR sensor
- VCC+ of the 2-channel relay module
GND is connected to:
- gnd of the IR sensor
- VCC- (GND) of the 2-channel relay module
GPIO17 is connected to:
- out of the IR sensor
GPIO18 is connected to:
- IN 1 of the 2-channel relay module
IR Sensor
vcc is connected to:
- 5V of the Raspberry Pi
gnd is connected to:
- GND of the Raspberry Pi
out is connected to:
- GPIO17 of the Raspberry Pi
Plastic Solenoid Valve
pin1 is connected to:
- N.O. 1 of the 2-channel relay module
pin2 is connected to:
- COM 1 of the 2-channel relay module
2-Channel Relay Module
VCC+ is connected to:
- 5V of the Raspberry Pi
VCC- (GND) is connected to:
- GND of the Raspberry Pi
IN 1 is connected to:
- GPIO18 of the Raspberry Pi
N.O. 1 is connected to:
- pin1 of the Plastic Solenoid Valve
COM 1 is connected to:
- pin2 of the Plastic Solenoid Valve
Code
There is no code provided for the microcontrollers in this circuit.