Arduino UNO-Based Bluetooth-Controlled Robot with Ultrasonic Sensor and LED Indicators
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control a mobile platform with two DC gearmotors, an ultrasonic distance sensor for obstacle detection, Bluetooth connectivity for remote control, and visual feedback through LEDs and an LCD display. The core of the circuit is an Arduino UNO microcontroller, which interfaces with all other components to manage sensor inputs, motor control, and communication.
Component List
Microcontroller
- Arduino UNO: The central processing unit of the circuit, responsible for coordinating all activities, including motor control, sensor data processing, and communication with external devices.
Power Supply
- 9V Battery: Provides the primary power source for the circuit.
- LM340T5 7805: A voltage regulator that steps down the voltage from the battery to 5V, suitable for powering the logic circuits.
Actuators
- Gearmotor DC Wheels Left & Right: These motors drive the wheels of the mobile platform, allowing it to move.
- L293D: A motor driver IC that controls the direction and speed of the DC gearmotors.
Sensors
- HC-SR04 Ultrasonic Sensor: Measures the distance to obstacles by emitting ultrasonic waves and measuring the time taken for the echo to return.
Communication
- Bluetooth HC-06: Enables wireless communication with the mobile platform for remote control purposes.
Display
- LCD I2C Display: Provides a user interface to display status messages, sensor readings, or other information.
Indicators
- LEDs (Green & Red): Visual indicators for status, warnings, or other signals.
- Resistors (220 Ohms): Current-limiting resistors for the LEDs to prevent damage from excessive current.
Control
- Rocker Switch: Acts as a power switch to turn the circuit on and off.
Wiring Details
Arduino UNO
- Digital Pins:
- D0 (RX): Connected to Bluetooth HC-06 TXD
- D1 (TX): Connected to Bluetooth HC-06 RXD
- D2: Connected to Red LED through a 220 Ohm resistor
- D3: Connected to Green LED through a 220 Ohm resistor
- D4: Connected to Green LED through a 220 Ohm resistor
- D5: Connected to HC-SR04 TRIG
- D6: Connected to Red LED through a 220 Ohm resistor
- D7: Connected to HC-SR04 ECHO
- D9: Connected to L293D Input 3
- D10: Connected to L293D Input 4
- D11: Connected to L293D Input 2
- D12: Connected to L293D Input 1
- Analog Pins:
- A4 (SDA): Connected to LCD I2C Display SDA
- A5 (SCL): Connected to LCD I2C Display SCL
- Power Pins:
- 5V: Connected to LM340T5 7805 Vout, Bluetooth HC-06 VCC, L293D VCC1, and HC-SR04 VCC
- GND: Connected to various GND pins of components
LEDs (Green & Red)
- Anode: Connected to respective Arduino UNO digital pins through 220 Ohm resistors
- Cathode: Connected to GND
L293D Motor Driver
- Enable 1,2 & Enable 3,4: Connected to 5V
- Input 1,2,3,4: Connected to respective Arduino UNO digital pins
- Output 1,2,3,4: Connected to respective pins of Gearmotor DC Wheels
- VCC1: Connected to 5V
- VCC2: Connected to LM340T5 7805 Vin
- GND: Connected to GND
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V
- TRIG: Connected to Arduino UNO D5
- ECHO: Connected to Arduino UNO D7
- GND: Connected to GND
Bluetooth HC-06
- VCC: Connected to 5V
- GND: Connected to GND
- TXD: Connected to Arduino UNO D0 (RX)
- RXD: Connected to Arduino UNO D1 (TX)
LM340T5 7805 Voltage Regulator
- Vin: Connected to 9V Battery "+"
- Vout: Connected to 5V rail
- GND: Connected to GND rail
LCD I2C Display
- VCC: Connected to 5V
- GND: Connected to GND
- SDA: Connected to Arduino UNO A4 (SDA)
- SCL: Connected to Arduino UNO A5 (SCL)
Rocker Switch
- Pin 1: Connected to GND
- Pin 2: Connected to 9V Battery "-"
Documented Code
Arduino UNO (sketch.ino)
The code for the Arduino UNO is not provided in the input. Please ensure that the code is uploaded to the Arduino UNO to control the circuit as per the design.
Additional Documentation (documentation.txt)
Llista de materials
Base:
+ Arduino uno
+ Breadboard mitjana
+ Pila 9V
+ Interruptor
+ Cables
Mobilitat:
+ 2 Motors DC amb roda
+ Controlador L293D
+ LM340T5
Sensor de distància:
+ Sensor ultrasònic HC-SR04
Control:
+ Controlador Bluetooth HC-05
Pantalla:
+ Pantalla LCD-I2C
Llums:
+ 4 resistències
+ 2 Leds verds
+ 2 Leds vermells
Xassis:
+ Xassis inferior
+ Xassis central
+ Xassis suoerior frontal
+ Xassis superior posterior
+ Roda frontal
+ Cargols
This document provides a list of materials used in the circuit, categorized by their function within the system.