Raspberry Pi and Arduino-Based Battery-Powered Smart Water Pump System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates a Raspberry Pi 4B and an Arduino 101 to control a water pump via a 1 Channel Relay. The system is powered by a LiPo battery and includes a camera for monitoring purposes. The Raspberry Pi and Arduino communicate with each other, and the Arduino controls the relay to switch the water pump on and off.
Component List
Raspberry Pi 4B
- Description: A powerful single-board computer used for various applications.
- 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
Arduino 101
- Description: A microcontroller board based on the Intel Curie module, used for various embedded applications.
- Pins: A5/SCL, A4/SDA, AREF, GND, D13/SCK, D12/MISO, D11 PWM/MOSI, D10 PWM/SS, D9 PWM, D8, D7, D6 PWM, D5 PWM, D4, D3 PWM, D2, D1/TX, D0/RX, AIN, ioref, RESET, 3V3, 5V, VIN, A0, A1, A2, A3, ICSP MISO, ICSP SCK, ICSP MOSI
LiPo Battery 2200mAH 30c
- Description: A rechargeable lithium polymer battery used to power the circuit.
- Pins: VCC, GND
1 Channel Relay 5V
- Description: A relay module used to control high voltage devices like the water pump.
- Pins: VCC, GND, IN, NC, COM, NO
Water Pump
- Description: A pump used to move water in the system.
- Pins: VCC, GND
Camera
- Description: A camera module used for monitoring purposes.
- Pins: None
USB Male 2 Pin Connection
- Description: A USB connector used for power or data transfer.
- Pins: Negative -, Positive +
Wiring Details
Raspberry Pi 4B
- 5V is connected to VIN of the Arduino 101.
- GPIO14 is connected to D0/RX of the Arduino 101.
- GPIO15 is connected to D1/TX of the Arduino 101.
- GND is connected to GND of the Arduino 101.
Arduino 101
- VIN is connected to 5V of the Raspberry Pi 4B.
- D0/RX is connected to GPIO14 of the Raspberry Pi 4B.
- D1/TX is connected to GPIO15 of the Raspberry Pi 4B.
- GND is connected to GND of the Raspberry Pi 4B.
- D7 is connected to IN of the 1 Channel Relay 5V.
- 5V is connected to VCC of the 1 Channel Relay 5V.
- GND is connected to GND of the 1 Channel Relay 5V.
LiPo Battery 2200mAH 30c
- VCC is connected to COM of the 1 Channel Relay 5V.
- GND is connected to GND of the Water Pump.
1 Channel Relay 5V
- IN is connected to D7 of the Arduino 101.
- VCC is connected to 5V of the Arduino 101.
- GND is connected to GND of the Arduino 101.
- COM is connected to VCC of the LiPo Battery.
- NO is connected to VCC of the Water Pump.
Water Pump
- VCC is connected to NO of the 1 Channel Relay 5V.
- GND is connected to GND of the LiPo Battery.
Documented Code
Raspberry Pi 4B Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino 101 Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the microcontrollers.