This circuit is designed around an Arduino UNO microcontroller, which serves as the central processing unit. The circuit includes various sensors, actuators, and interfaces, such as a BH1750 light sensor, an OLED display, a DHT11 temperature and humidity sensor, soil moisture sensors, a 3-channel relay module, water pumps, a fan, a stepper motor with its driver, and several push switches. Power is distributed through splicing connectors, and the circuit is powered by a combination of a 12V battery, a 2 x AA battery mount, and the Arduino's onboard voltage regulator.
5V
connected to 5V power distribution via a WAGO connector.GND
connected to ground distribution via multiple WAGO connectors.Vin
connected to the VCC of the 3 Channel Relay 5V.A2
and A3
connected to SCL and SDA of the BH1750 light sensor, respectively.A4
and A5
connected to SCK and SDA of the OLED display, respectively.D2
to D13
connected to various components including the A4988 driver, IRF520 PWM module, push switches, and relay channels.VCC
and GND
connected to power distribution via WAGO connectors.SCL
and SDA
connected to Arduino UNO for I2C communication.VDD
and GND
connected to power distribution via WAGO connectors.SCK
and SDA
connected to Arduino UNO for I2C communication.DATA
connected to D4
on the Arduino UNO.VCC
and GND
connected to power distribution via WAGO connectors.VCC
and GND
connected to power distribution via WAGO connectors.VCC
connected to Vin
on the Arduino UNO.GND
connected to ground distribution via a WAGO connector.CH1
and CH2
connected to D5
and D6
on the Arduino UNO, respectively.COMMON
and NO
connected to the water pumps.VCC
connected to the COMMON
terminal of the relay module.GND
connected to ground distribution via WAGO connectors.Vin
and GND
connected to power distribution via WAGO connectors.SIG
connected to D9
on the Arduino UNO.V+
and V-
connected to the fan.5V
and GND
connected to the IRF520 PWM module.VMOT
and GND
connected to power distribution via WAGO connectors.VDD
connected to 5V power distribution via a WAGO connector.STEP
and DIR
connected to D3
and D2
on the Arduino UNO, respectively.1A
, 1B
, 2A
, 2B
connected to the stepper motor.A
, B
, C
, D
connected to the A4988 driver.Input +
connected to power distribution via WAGO connectors.Output +
connected to various digital pins on the Arduino UNO.void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
The provided code is a template with empty setup()
and loop()
functions, which are the entry points for Arduino sketches. The setup()
function is called once when the sketch starts and is used for initializing settings, while the loop()
function runs repeatedly, allowing the microcontroller to perform operations based on the circuit's design. Additional code would be required to control the components and read sensors in this circuit.