Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗 Voice & Remote-Controlled Smart Car

An Arduino-based smart robotic car that can be controlled using voice commands and remote-control signals. The project uses an Adafruit Motor Shield, four DC motors, a servo motor, and an ultrasonic sensor to provide movement and basic obstacle-detection capabilities.

📌 Overview

The Voice & Remote-Controlled Smart Car is an embedded systems project designed to demonstrate wireless/voice-based robot control using Arduino.

The car can perform basic movements such as:

  • ⬆️ Move Forward
  • ⬇️ Move Backward
  • ⬅️ Turn Left
  • ➡️ Turn Right
  • 🛑 Stop

The project also includes code for Bluetooth control and obstacle avoidance, which can be enabled when required.

✨ Features

  • 🎙️ Voice-based movement control
  • 📡 Serial/Bluetooth control support
  • 🚗 Four-wheel drive using four DC motors
  • 🛑 Stop command
  • 📏 Ultrasonic distance measurement
  • 🔄 Servo-mounted ultrasonic sensor
  • 🧭 Basic obstacle detection and avoidance logic
  • ⚡ Adjustable motor speed
  • 🔌 Arduino-based hardware control

🛠️ Hardware Components

Component Purpose
Arduino Main microcontroller
Adafruit Motor Shield Controls the DC motors
4 × DC Motors Vehicle movement
Servo Motor Rotates the ultrasonic sensor
Ultrasonic Sensor Measures obstacle distance
Robot Car Chassis Physical structure
Battery/Power Supply Powers the system
Bluetooth/Serial Interface Receives control commands

💻 Software & Technologies

  • C / Arduino
  • Arduino IDE
  • Adafruit Motor Shield Library
  • Servo Library
  • Ultrasonic Sensor
  • Serial Communication

⚙️ How It Works

The Arduino receives control characters through serial communication. Depending on the received command, the program controls the four motors to move the car.

The main control logic is implemented in voicecontrol().

Voice Control Commands

Command Action
^ Forward
- Backward
< Left
> Right
* Stop

For left and right movement, the ultrasonic sensor is also used to check the available distance before turning.

🧠 Obstacle Avoidance

The project contains an ultrasonic-based obstacle avoidance system.

When an obstacle is detected within approximately 12 cm, the car:

  1. Stops.
  2. Moves slightly backward.
  3. Checks the left side.
  4. Checks the right side.
  5. Compares the available distance.
  6. Turns toward the side with more available space.

The obstacle-avoidance function is included in the source code and can be enabled from loop() when required.

🔌 Circuit Diagram

The repository includes the circuit diagram used for the project.

Circuit Diagram

📁 Project Structure

Voice-Remote-Controlled-Smart-Car/
│
├── Project.c
├── circuit.jpg
├── Adafruit-Motor-Shield-library-master (1).zip
├── README.md
└── .gitattributes

🚀 Getting Started

1. Clone the Repository

git clone https://github.com/Shani9027/Voice-Remote-Controlled-Smart-Car.git
cd Voice-Remote-Controlled-Smart-Car

2. Install Arduino IDE

Download and install the Arduino IDE on your computer.

3. Install Required Libraries

Install the required libraries:

  • Adafruit Motor Shield Library
  • Servo Library

The repository also contains the Adafruit Motor Shield library archive.

4. Connect the Hardware

Connect the Arduino, Motor Shield, four DC motors, servo motor, and ultrasonic sensor according to the provided circuit diagram.

5. Upload the Code

Open Project.c in the Arduino IDE, select the appropriate Arduino board and COM port, and upload the program.

6. Send Commands

Use the appropriate voice-control or serial interface to send the supported control characters.

🎮 Movement Logic

             FORWARD
                ↑
                |
        LEFT ← CAR → RIGHT
                |
                ↓
             BACKWARD

The four motors are controlled together for forward and backward movement, while opposite motor directions are used to turn the car.

🔧 Configuration

The motor speed can be adjusted using:

#define Speed 170

The ultrasonic sensor pins are defined as:

#define Echo A0
#define Trig A1

The servo motor is connected through:

#define motor 10

These values can be modified according to the hardware configuration.

🔮 Future Improvements

Some possible improvements include:

  • 📱 Dedicated Android/iOS control application
  • 🤖 AI-powered voice command recognition
  • 📷 Camera-based navigation
  • 🧠 Autonomous navigation
  • 🗺️ Real-time obstacle mapping
  • 📡 Wi-Fi control
  • 🔋 Battery-level monitoring
  • 🎯 Improved obstacle-avoidance algorithm
  • 🌐 IoT-based remote control

📚 Learning Outcomes

This project provides practical experience with:

  • Embedded C programming
  • Arduino programming
  • Motor control
  • Sensor integration
  • Servo motor control
  • Serial communication
  • Robotics fundamentals
  • Hardware-software integration

👨‍💻 Author

Shani Sharma

GitHub: Shani9027

⭐ Contribute

Contributions, suggestions, and improvements are welcome.

If you find this project useful, consider giving the repository a ⭐.

📄 License

This project is available for educational and learning purposes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages