Arduino UNO-Based Battery-Powered Robotic Vehicle with Wi-Fi and Sensor Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, various sensors, motors, a motor driver, a WiFi module, and a power supply. The circuit is designed to interface with multiple sensors and actuators, enabling a range of functionalities.
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
IR Sensor
- Description: Infrared sensor for object detection.
- Pins: out, gnd, vcc
Motor (Yellow Gear Motor)
- Description: Hobby motor with gear reduction.
- Pins: vcc, GND
L298N DC Motor Driver
- Description: Dual H-Bridge 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
Rocker Switch
- Description: On/Off switch.
- Pins: output, input
HC-SR04 Ultrasonic Sensor
- Description: Ultrasonic distance sensor.
- Pins: VCC, TRIG, ECHO, GND
18650 Li-ion Battery x 2
- Description: Rechargeable lithium-ion battery.
- Pins: +, -
Micro Servo 9G
- Description: Small servo motor.
- Pins: GND, +5V, PWM
WiFi Module ESP8266-01
- Description: WiFi module for wireless communication.
- Pins: RX, GPIO0, GPIO2, GND, +3V3, Reset, CH-PD Chip power down, TX
Wiring Details
Arduino UNO
- 3.3V connected to +3V3 and CH-PD Chip power down of WiFi Module ESP8266-01
- 5V connected to vcc of both IR Sensors, VCC of HC-SR04 Ultrasonic Sensor, and +5V of Micro Servo 9G
- GND connected to gnd of both IR Sensors, GND of HC-SR04 Ultrasonic Sensor, GND of Micro Servo 9G, GND of WiFi Module ESP8266-01, and GND of L298N DC Motor Driver
- Vin connected to output of Rocker Switch
- A0 connected to out of IR Sensor
- A1 connected to out of IR Sensor
- A2 connected to ECHO of HC-SR04 Ultrasonic Sensor
- A3 connected to TRIG of HC-SR04 Ultrasonic Sensor
- A5 connected to PWM of Micro Servo 9G
- D10 connected to ENA of L298N DC Motor Driver
- D9 connected to IN1 of L298N DC Motor Driver
- D8 connected to IN2 of L298N DC Motor Driver
- D7 connected to IN3 of L298N DC Motor Driver
- D6 connected to IN4 of L298N DC Motor Driver
- D5 connected to ENB of L298N DC Motor Driver
- D1 connected to RX of WiFi Module ESP8266-01
- D0 connected to TX of WiFi Module ESP8266-01
IR Sensor
- gnd connected to - of 18650 Li-ion Battery x 2
- vcc connected to 5V of Arduino UNO
- out connected to A0 of Arduino UNO
IR Sensor
- gnd connected to - of 18650 Li-ion Battery x 2
- vcc connected to 5V of Arduino UNO
- out connected to A1 of Arduino UNO
Motor (Yellow Gear Motor)
- vcc connected to OUT2 of L298N DC Motor Driver
- GND connected to OUT1 of L298N DC Motor Driver
Motor (Yellow Gear Motor)
- vcc connected to OUT3 of L298N DC Motor Driver
- GND connected to OUT4 of L298N DC Motor Driver
L298N DC Motor Driver
- 12V connected to output of Rocker Switch
- GND connected to - of 18650 Li-ion Battery x 2
- OUT1 connected to GND of Motor (Yellow Gear Motor)
- OUT2 connected to vcc of Motor (Yellow Gear Motor)
- OUT3 connected to vcc of Motor (Yellow Gear Motor)
- OUT4 connected to GND of Motor (Yellow Gear Motor)
- ENA connected to D10 of Arduino UNO
- IN1 connected to D9 of Arduino UNO
- IN2 connected to D8 of Arduino UNO
- IN3 connected to D7 of Arduino UNO
- IN4 connected to D6 of Arduino UNO
- ENB connected to D5 of Arduino UNO
Rocker Switch
- input connected to + of 18650 Li-ion Battery x 2
- output connected to Vin of Arduino UNO and 12V of L298N DC Motor Driver
HC-SR04 Ultrasonic Sensor
- GND connected to - of 18650 Li-ion Battery x 2
- VCC connected to 5V of Arduino UNO
- TRIG connected to A3 of Arduino UNO
- ECHO connected to A2 of Arduino UNO
18650 Li-ion Battery x 2
- + connected to input of Rocker Switch
- - connected to gnd of both IR Sensors, GND of HC-SR04 Ultrasonic Sensor, GND of Micro Servo 9G, GND of L298N DC Motor Driver, and GND of Arduino UNO
Micro Servo 9G
- GND connected to - of 18650 Li-ion Battery x 2
- +5V connected to 5V of Arduino UNO
- PWM connected to A5 of Arduino UNO
WiFi Module ESP8266-01
- GND connected to GND of Arduino UNO
- +3V3 connected to 3.3V of Arduino UNO
- CH-PD Chip power down connected to 3.3V of Arduino UNO
- RX connected to D1 of Arduino UNO
- TX connected to D0 of Arduino UNO
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:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including a detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.