This circuit is designed to interface various sensors and actuators with an Arduino UNO microcontroller. The circuit includes a USB driver circuit for a fogger atomizer, a 12V single-channel relay for controlling power to the atomizer, a humidifier, an MQ-135 air quality sensor, a KY-015 DHT11 temperature and humidity sensor, an HC-SR04 ultrasonic distance sensor, two gearmotors with an L298N motor driver for motion control, and an MKE-M07 LCD1602 I2C module for display purposes. The Arduino UNO serves as the central processing unit, reading sensor data, controlling the relay, driving the motors, and updating the display.
+
, -
NC
, COM
, NO
, IN
, GND
, VCC
GND
, 5V
VCC
, GND
, A0
, D0
5V
, S
, GND
VCC
, TRIG
, ECHO
, GND
PIN1
, PIN2
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
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
GND
, 5V
, SDA
, SCL
+
connected to 12V Single Channel Relay COM
-
connected to 12V Single Channel Relay NO
and Humidifier GND
NC
not connectedCOM
connected to USB Driver Circuit Fogger Atomizer +
NO
connected to USB Driver Circuit Fogger Atomizer -
IN
connected to Arduino UNO D9
GND
common groundVCC
common 5V supply5V
connected to USB Driver Circuit Fogger Atomizer +
GND
connected to USB Driver Circuit Fogger Atomizer -
VCC
common 5V supplyGND
common groundA0
connected to Arduino UNO A0
D0
not connected5V
common 5V supplyS
not connectedGND
common groundVCC
common 5V supplyTRIG
connected to Arduino UNO D3
ECHO
connected to Arduino UNO D4
GND
common groundPIN1
connected to L298N DC Motor Driver OUT3
PIN2
connected to L298N DC Motor Driver OUT4
PIN1
connected to L298N DC Motor Driver OUT2
PIN2
connected to L298N DC Motor Driver OUT1
OUT1
, OUT2
, OUT3
, OUT4
connected to Gearmotors12V
not connectedGND
common ground5V
common 5V supply5V-ENA-JMP-I
, 5V-ENA-JMP-O
, +5V-J1
, +5V-J2
, ENA
, IN1
, IN2
, IN3
, IN4
, ENB
not connected5V
common 5V supplyGND
common groundA0
connected to MQ-135 Sensor Air Quality A0
A4
connected to MKE-M07 LCD1602 I2C SDA
A5
connected to MKE-M07 LCD1602 I2C SCL
D3
connected to HC-SR04 Ultrasonic Sensor TRIG
D4
connected to HC-SR04 Ultrasonic Sensor ECHO
D9
connected to 12V Single Channel Relay IN
GND
common ground5V
common 5V supplySDA
connected to Arduino UNO A4
SCL
connected to Arduino UNO A5
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 for the Arduino UNO microcontroller. The setup()
function is called once when the microcontroller is powered on or reset. It is used to initialize the pins and set the initial state of the circuit. The loop()
function is called repeatedly and contains the main logic of the program. This is where the microcontroller will read sensor data, control actuators, and update the display. The actual implementation details need to be filled in based on the specific requirements of the circuit's operation.