Circuit Documentation
Summary
This circuit is designed to interface an Arduino UNO with various sensors, actuators, and display modules. The primary components include a soil moisture sensor, a relay, an LCD display, a motor driver, and several motors. The circuit is powered by a combination of a 9V battery and a lithium-ion battery, with a buck converter used to step down the voltage for the Arduino and other components.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Soil Moisture Sensor
- Description: A sensor used to measure the moisture level in the soil.
- Pins: VCC, GND, SIG
12V Single Channel Relay
- Description: A relay module used to control high voltage devices.
- Pins: NC, COM, NO, IN, GND, VCC
9V Battery
- Description: A battery providing 9V power.
- Pins: -, +
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
5V Mini Water Pump
- Description: A small water pump operating at 5V.
- Pins: positive pin, negative pin
L298N DC Motor Driver
- Description: A motor driver module for controlling DC motors.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
Buck Converter
- Description: A DC-DC converter used to step down voltage.
- Pins: IN+, IN-, OUT+, OUT-
Lithium-ion Battery 10000mAh
- Description: A high-capacity lithium-ion battery.
- Pins: 11.1V, GND
Motor amarillo motorreductor hobby
- Description: A hobby motor with a gearbox.
- Pins: vcc, GND
fscte6b
- Description: A component with multiple channels and battery connections.
- Pins: ch1, ch2, ch3, ch4, ch5, bat, ch6, +, -, ant
MG996R
- Description: A high-torque servo motor.
- Pins: GND, VCC, SIG
Servo
- Description: A standard servo motor.
- Pins: GND, VCC, PWM
Wiring Details
Arduino UNO
- 5V: Connected to VCC of Soil Moisture Sensor, VCC of 12V Single Channel Relay, VCC of 16x2 I2C LCD, and + of fscte6b
- GND: Connected to GND of Soil Moisture Sensor, GND of 12V Single Channel Relay, GND of 16x2 I2C LCD, and - of fscte6b
- Vin: Connected to OUT+ of Buck Converter
- A0: Connected to SIG of Soil Moisture Sensor
- A4: Connected to SDA of 16x2 I2C LCD
- A5: Connected to SCL of 16x2 I2C LCD
- D9: Connected to IN4 of L298N DC Motor Driver
- D8: Connected to IN3 of L298N DC Motor Driver
- D7: Connected to IN2 of L298N DC Motor Driver
- D6: Connected to IN1 of L298N DC Motor Driver
- D4: Connected to ch2 of fscte6b
- D3: Connected to ch1 of fscte6b
- D2: Connected to IN of 12V Single Channel Relay
Soil Moisture Sensor
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- SIG: Connected to A0 of Arduino UNO
12V Single Channel Relay
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- IN: Connected to D2 of Arduino UNO
- COM: Connected to + of 9V Battery
- NO: Connected to positive pin of 5V Mini Water Pump
9V Battery
- +: Connected to COM of 12V Single Channel Relay
- -: Connected to negative pin of 5V Mini Water Pump
16x2 I2C LCD
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- SDA: Connected to A4 of Arduino UNO
- SCL: Connected to A5 of Arduino UNO
5V Mini Water Pump
- positive pin: Connected to NO of 12V Single Channel Relay
- negative pin: Connected to - of 9V Battery
L298N DC Motor Driver
- GND: Connected to OUT- of Buck Converter
- 12V: Connected to OUT+ of Buck Converter
- IN1: Connected to D6 of Arduino UNO
- IN2: Connected to D7 of Arduino UNO
- IN3: Connected to D8 of Arduino UNO
- IN4: Connected to D9 of Arduino UNO
- OUT1: Connected to GND of Motor amarillo motorreductor hobby
- OUT2: Connected to vcc of Motor amarillo motorreductor hobby
- OUT3: Connected to vcc of Motor amarillo motorreductor hobby
- OUT4: Connected to GND of Motor amarillo motorreductor hobby
- 5V-ENA-JMP-I: Connected to 5V-ENA-JMP-O
- ENA: Connected to +5V-J1
- ENB: Connected to +5V-J2
Buck Converter
- IN+: Connected to 11.1V of Lithium-ion Battery 10000mAh
- IN-: Connected to GND of Lithium-ion Battery 10000mAh
- OUT+: Connected to Vin of Arduino UNO and 12V of L298N DC Motor Driver
- OUT-: Connected to GND of Arduino UNO and GND of L298N DC Motor Driver
Lithium-ion Battery 10000mAh
- 11.1V: Connected to IN+ of Buck Converter
- GND: Connected to IN- of Buck Converter
Motor amarillo motorreductor hobby
- vcc: Connected to OUT2 of L298N DC Motor Driver
- GND: Connected to OUT1 of L298N DC Motor Driver
fscte6b
- +: Connected to VCC of MG996R, VCC of Servo, and VCC of MG996R
- -: Connected to GND of MG996R, GND of Servo, and GND of MG996R
- ch1: Connected to D3 of Arduino UNO
- ch2: Connected to D4 of Arduino UNO
- ch3: Connected to SIG of MG996R
- ch4: Connected to PWM of Servo
- ch5: Connected to SIG of MG996R
MG996R
- VCC: Connected to + of fscte6b
- GND: Connected to - of fscte6b
- SIG: Connected to ch3 of fscte6b
Servo
- VCC: Connected to + of fscte6b
- GND: Connected to - of fscte6b
- PWM: Connected to ch4 of fscte6b
Code Documentation
Arduino UNO Code
void setup() {
}
void loop() {
}
This code is a basic template for the Arduino UNO. The setup()
function is where you initialize your components and settings, and the loop()
function is where you place the main logic that runs repeatedly.
Additional Documentation
This section is reserved for any additional documentation or notes related to the code or circuit.