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.
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.
- 🎙️ 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
| 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 |
- C / Arduino
- Arduino IDE
- Adafruit Motor Shield Library
- Servo Library
- Ultrasonic Sensor
- Serial Communication
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().
| 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.
The project contains an ultrasonic-based obstacle avoidance system.
When an obstacle is detected within approximately 12 cm, the car:
- Stops.
- Moves slightly backward.
- Checks the left side.
- Checks the right side.
- Compares the available distance.
- 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.
The repository includes the circuit diagram used for the project.
Voice-Remote-Controlled-Smart-Car/
│
├── Project.c
├── circuit.jpg
├── Adafruit-Motor-Shield-library-master (1).zip
├── README.md
└── .gitattributes
git clone https://github.com/Shani9027/Voice-Remote-Controlled-Smart-Car.git
cd Voice-Remote-Controlled-Smart-CarDownload and install the Arduino IDE on your computer.
Install the required libraries:
- Adafruit Motor Shield Library
- Servo Library
The repository also contains the Adafruit Motor Shield library archive.
Connect the Arduino, Motor Shield, four DC motors, servo motor, and ultrasonic sensor according to the provided circuit diagram.
Open Project.c in the Arduino IDE, select the appropriate Arduino board and COM port, and upload the program.
Use the appropriate voice-control or serial interface to send the supported control characters.
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.
The motor speed can be adjusted using:
#define Speed 170The ultrasonic sensor pins are defined as:
#define Echo A0
#define Trig A1The servo motor is connected through:
#define motor 10These values can be modified according to the hardware configuration.
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
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
Shani Sharma
GitHub: Shani9027
Contributions, suggestions, and improvements are welcome.
If you find this project useful, consider giving the repository a ⭐.
This project is available for educational and learning purposes.
