Arduino UNO Battery-Powered Robotic Car with Ultrasonic and IR Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a variety of components such as a Rocker Switch, a Polymer Lithium Ion Battery, an Arduino UNO, a power jack, an L298N DC motor driver, DC Motors, an HC-SR04 Ultrasonic Sensor, IR sensors, and a Step down Buck converter. The circuit is designed to control DC motors and sensors using an Arduino UNO microcontroller.
Component List
Rocker Switch
- Description: A simple on/off switch.
- Pins: 1, 2
Polymer Lithium Ion Battery - 850mAh
- Description: A rechargeable battery providing power to the circuit.
- Pins: GND, VCC
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
Power Jack
- Description: A connector for supplying power to the circuit.
- Pins: POSITIF, NEGATIF
L298N DC Motor Driver
- Description: A 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
DC Motor
- Description: A motor that converts electrical energy into mechanical energy.
- Pins: pin 1, pin 2
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
IR Sensor
- Description: A sensor used for detecting infrared light.
- Pins: out, gnd, vcc
Step Down Buck Converter
- Description: A DC-DC converter that steps down voltage.
- Pins: IN +, IN - GND, OUT +, OUT - GND
Wiring Details
Rocker Switch
- Pin 1 is connected to VCC of the Polymer Lithium Ion Battery.
- Pin 2 is connected to IN + of the Step Down Buck Converter.
Polymer Lithium Ion Battery - 850mAh
- VCC is connected to Pin 1 of the Rocker Switch.
- GND is connected to IN - GND of the Step Down Buck Converter.
Arduino UNO
- 5V is connected to VCC of the HC-SR04 Ultrasonic Sensor and both IR sensors.
- GND is connected to GND of the HC-SR04 Ultrasonic Sensor and both IR sensors.
Power Jack
- POSITIF is connected to 12V of the L298N DC Motor Driver and OUT + of the Step Down Buck Converter.
- NEGATIF is connected to GND of the L298N DC Motor Driver and OUT - GND of the Step Down Buck Converter.
L298N DC Motor Driver
- 12V is connected to POSITIF of the Power Jack.
- GND is connected to NEGATIF of the Power Jack.
- OUT1 is connected to pin 1 of the first DC Motor.
- OUT2 is connected to pin 2 of the first DC Motor.
- OUT3 is connected to pin 2 of the second DC Motor.
- OUT4 is connected to pin 1 of the second DC Motor.
DC Motor (First)
- pin 1 is connected to OUT1 of the L298N DC Motor Driver.
- pin 2 is connected to OUT2 of the L298N DC Motor Driver.
DC Motor (Second)
- pin 1 is connected to OUT4 of the L298N DC Motor Driver.
- pin 2 is connected to OUT3 of the L298N DC Motor Driver.
HC-SR04 Ultrasonic Sensor
- VCC is connected to 5V of the Arduino UNO.
- GND is connected to GND of the Arduino UNO.
IR Sensor (First)
- vcc is connected to 5V of the Arduino UNO.
- gnd is connected to GND of the Arduino UNO.
IR Sensor (Second)
- vcc is connected to 5V of the Arduino UNO.
- gnd is connected to GND of the Arduino UNO.
Step Down Buck Converter
- IN + is connected to Pin 2 of the Rocker Switch.
- IN - GND is connected to GND of the Polymer Lithium Ion Battery.
- OUT + is connected to POSITIF of the Power Jack.
- OUT - GND is connected to NEGATIF of the Power Jack.
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This concludes the detailed documentation of the circuit, including the summary, component list, wiring details, and the code for the Arduino UNO microcontroller.