Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Controlled Bluetooth Robot with Obstacle Avoidance and LED Indicators

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Bluetooth Robot with Obstacle Avoidance and LED Indicators

Circuit Documentation

Summary

The circuit in question appears to be designed for a mobile robotic platform with various functionalities including motion control, distance sensing, light indication, and Bluetooth communication. The core of the circuit is an Arduino UNO microcontroller, which interfaces with a motor driver (L293D) to control two gearmotors, an ultrasonic sensor (HC-SR04) for distance measurement, LEDs for indication, a Bluetooth module (HC-06) for wireless control, and a voltage regulator (LM340T5 7805) to stabilize the power supply. The circuit is powered by a 9V battery and includes a rocker switch for power control.

Component List

Wiring Details

Arduino UNO

LEDs (Green and Red)

Rocker Switch

Gearmotors (Left and Right)

HC-SR04 Ultrasonic Sensor

L293D Motor Driver

Resistors (220 Ohms)

Bluetooth HC-06

LM340T5 7805 Voltage Regulator

Documented Code

Arduino UNO Code (sketch.ino)

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

#define TRIGPIN 5
#define ECHOPIN 7

// Initialization
int m1a = 9;   // Motor 1, Arduino pin 10 to L293B pin 15.
int m1b = 10;  // Motor 1, Arduino pin 9 to L293B pin 10.
int m2a = 11;  // Motor 2, Arduino pin 12 to L293B pin 2.
int m2b = 12;  // Motor 2, Arduino pin 11 to L293B pin 7.
char val;
bool ready = false;

int VerdDreta = 3;
int VerdEsquerra = 4;
int VermellDreta = 6;
int VermellEsquerra = 2;

LiquidCrystal_I2C lcd(0X27,16,2);  

// Custom characters for LCD eyes
byte ulls1_1[8] = {
  // ... (custom character data)
};

// ... (additional custom characters)

// Setup function
void setup() {
  // ... (setup code)
}

// Main loop
void loop() {
  // ... (main loop code)
}

// Motor and LED control functions
void MotorsEndavant(){
  // ... (forward motion code)
}

void MotorsEndarrera(){
  // ... (backward motion code)
}

void MotorsEsquerra(){
  // ... (turn left code)
}

void MotorsDreta(){
  // ... (turn right code)
}

void aturarMotors(){
  // ... (stop motors code)
}

void stopienrere() {
  // ... (reverse stop code)
}

int mesurar_mm() {
  // ... (measure distance code)
}

void ulls1() {
  // ... (LCD eyes pattern 1)
}

// ... (additional LCD eyes patterns)

Additional Documentation (documentation.txt)

Material List

Base:
+ Arduino UNO
+ Breadboard
+ 9V Battery
+ Switch
+ Cables

Mobility:
+ 2 DC Motors with wheels
+ L293D Motor Driver
+ LM340T5 Voltage Regulator

Distance Sensor:
+ HC-SR04 Ultrasonic Sensor

Control:
+ HC-05 Bluetooth Controller

Display:
+ LCD-I2C Screen

Lights:
+ 4 Resistors
+ 2 Green LEDs
+ 2 Red LEDs

Chassis:
+ Lower Chassis
+ Central Chassis
+ Front Upper Chassis
+ Rear Upper Chassis
+ Front Wheel
+ Screws

This documentation provides an overview of the circuit, including the components used, their wiring, and the embedded code for the Arduino UNO. The code includes functionality for motor control, LED control, distance measurement, and LCD display management. The additional documentation file lists the materials used in the project.