This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L298N DC motor driver, two DC motors, an HC-SR04 ultrasonic sensor, two IR sensors, an HC-05 Bluetooth module, a rocker switch, and a 18650 Li-Ion battery. The circuit is designed to control the DC motors and read sensor data, with power supplied by the Li-Ion battery.
Arduino UNO
L298N DC Motor Driver
DC Motor (x2)
HC-SR04 Ultrasonic Sensor
IR Sensor (x2)
HC-05 Bluetooth Module
Rocker Switch
18650 Li-Ion Battery
5V connected to:
GND connected to:
Vin connected to:
A0 connected to:
A1 connected to:
D11 connected to:
D10 connected to:
D9 connected to:
D8 connected to:
D6 connected to:
D5 connected to:
D1 connected to:
D0 connected to:
OUT1 connected to:
OUT2 connected to:
OUT3 connected to:
OUT4 connected to:
12V connected to:
VCC connected to:
GND connected to:
RXD connected to:
TXD connected to:
VCC connected to:
GND connected to:
TRIG connected to:
ECHO connected to:
vcc connected to:
gnd connected to:
out connected to:
vcc connected to:
gnd connected to:
out connected to:
input connected to:
output connected to:
Positive connected to:
Negative connected to:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
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 code that runs repeatedly.
This section is reserved for any additional documentation or notes related to the code or circuit.