Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino-Controlled Environmental Response Robot with Air Quality Monitoring

Image of Arduino-Controlled Environmental Response Robot with Air Quality Monitoring

Circuit Documentation

Summary

This document provides a detailed overview of a circuit 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, a humidifier, an MQ-135 air quality sensor, a KY-015 DHT11 temperature and humidity sensor, an HC-SR04 ultrasonic sensor, two gearmotors with a corresponding L298N DC motor driver, and an MKE-M07 LCD1602 I2C display module.

Component List

USB Driver Circuit Fogger Atomizer

  • Pins: +, -
  • Description: Drives the fogger atomizer.

12V Single Channel Relay

  • Pins: NC, COM, NO, IN, GND, VCC
  • Description: Controls high power devices with Arduino's low power signals.

Humidifier

  • Pins: GND, 5V
  • Description: Adds moisture to the air.

MQ-135 Sensor Air Quality

  • Pins: VCC, GND, A0, D0
  • Description: Measures air quality.

KY-015 DHT11

  • Pins: 5V, S, GND
  • Description: Measures temperature and humidity.

HC-SR04 Ultrasonic Sensor

  • Pins: VCC, TRIG, ECHO, GND
  • Description: Measures distance using ultrasonic waves.

Gearmotor DC Wheels Right

  • Pins: PIN1, PIN2
  • Description: Provides motion to the right wheel.

Gearmotor DC Wheels Left

  • Pins: PIN1, PIN2
  • Description: Provides motion to the left wheel.

L298N DC Motor Driver

  • 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
  • Description: Drives DC motors with direction and speed control.

Arduino UNO

  • 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
  • Description: Microcontroller board based on the ATmega328P.

MKE-M07 LCD1602 I2C

  • Pins: GND, 5V, SDA, SCL
  • Description: Displays information to the user.

Wiring Details

USB Driver Circuit Fogger Atomizer

  • + connected to 12V Single Channel Relay COM
  • - connected to 12V Single Channel Relay NO and Humidifier GND

12V Single Channel Relay

  • NC not connected
  • COM connected to USB Driver Circuit Fogger Atomizer +
  • NO connected to USB Driver Circuit Fogger Atomizer -
  • IN connected to Arduino UNO D9
  • GND connected to common ground
  • VCC connected to common 5V

Humidifier

  • 5V connected to USB Driver Circuit Fogger Atomizer +
  • GND connected to USB Driver Circuit Fogger Atomizer -

MQ-135 Sensor Air Quality

  • VCC connected to common 5V
  • GND connected to common ground
  • A0 connected to Arduino UNO A0
  • D0 not connected

KY-015 DHT11

  • 5V connected to common 5V
  • S not connected
  • GND connected to common ground

HC-SR04 Ultrasonic Sensor

  • VCC connected to common 5V
  • TRIG connected to Arduino UNO D3
  • ECHO connected to Arduino UNO D4
  • GND connected to common ground

Gearmotor DC Wheels Right

  • PIN1 connected to L298N DC Motor Driver OUT3
  • PIN2 connected to L298N DC Motor Driver OUT4

Gearmotor DC Wheels Left

  • PIN1 connected to L298N DC Motor Driver OUT2
  • PIN2 connected to L298N DC Motor Driver OUT1

L298N DC Motor Driver

  • OUT1 connected to Gearmotor DC Wheels Left PIN2
  • OUT2 connected to Gearmotor DC Wheels Left PIN1
  • 12V not connected
  • GND connected to common ground
  • 5V connected to common 5V
  • OUT3 connected to Gearmotor DC Wheels Right PIN1
  • OUT4 connected to Gearmotor DC Wheels Right PIN2
  • Remaining pins not connected or used for internal jumper settings

Arduino UNO

  • 5V connected to common 5V
  • GND connected to common ground
  • A0 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
  • Remaining pins not connected

MKE-M07 LCD1602 I2C

  • GND connected to common ground
  • 5V connected to common 5V
  • SDA connected to Arduino UNO A4
  • SCL connected to Arduino UNO A5

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Additional Notes

  • The code provided for the Arduino UNO is a template with empty setup() and loop() functions. Actual implementation details need to be filled in based on the specific requirements of the circuit's operation.
  • The documentation.txt file is empty and does not contain any additional information.