GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - torikul007/Smart-Car-Controlled-by-ESP32-: 🚗 ESP32-based smart car with PWM speed control, Bluetooth command input, and ultrasonic obstacle detection. Built for learning and experimentation in embedded systems and robotics

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
Image & Viedo
Image & Viedo
 
 
Image and Video
Image and Video
 
 
README.md
README.md
 
 
btcar.ino
btcar.ino
 
 
smart car Report.pdf
smart car Report.pdf
 
 

Repository files navigation

🚗 ESP32 Smart Car with PWM Speed Control and Obstacle Detection

This is a smart car project built using the ESP32 microcontroller. The car is remotely controlled via Bluetooth and uses PWM to control motor speed. It also features an ultrasonic sensor to detect obstacles and stop automatically when something is too close.

[Md.Torikul Islam]
🔗 [https://github.com/torikul007]

📋 Features

  • 🔁 PWM Motor Speed Control via ENA/ENB pins (0–255)
  • 📡 Bluetooth Control using HC-05 module (or use built-in ESP32 Bluetooth)
  • 🚧 Obstacle Detection using Ultrasonic Sensor (HC-SR04)
  • 🚨 Visual Alert via Buzzer or LED when obstacle detected
  • 🔊 Horn & Lights (optional extension)
  • 💡 Speed Control using number commands ('0'–'9')

🧰 Hardware Used

Component Description
ESP32 Main microcontroller
L298N Motor Driver Dual H-Bridge motor driver
2 DC Motors For driving the car
HC-05 Bluetooth For wireless control via phone/PC
HC-SR04 Ultrasonic For obstacle detection
Buzzer or LED For visual/horn alert
18650 Battery x2 Power source
Chassis & Wheels Smart car body
Jumper Wires Wiring connections

🧠 How It Works

  1. Bluetooth commands (like 'F', 'B', 'L', 'R') are sent from a phone or PC.
  2. ESP32 reads the command through Serial2.
  3. For forward movements ('F', 'G', 'I'), the ultrasonic sensor checks if the path is clear.
  4. If no obstacle is detected, the car moves; else, it stops and alerts.
  5. PWM values control the motor speed via analogWrite(ENA/ENB, speedValue).

🎮 Command List

Command Action
F Move Forward (safe)
B Move Backward
L Turn Left
R Turn Right
G Forward Left Turn
I Forward Right Turn
H Backward Left Turn
J Backward Right Turn
S Stop
0–9 Set Speed (low–high)

🛠️ How to Upload the Code

  1. Open Arduino IDE.
  2. Select ESP32 Dev Module as board.
  3. Connect your ESP32 via USB.
  4. Install required libraries (like ESP32Servo.h).
  5. Paste the code from main.ino and upload.

📂 File Structure

✍️ Author

[Md.Torikul Islam]
🔗 [https://github.com/torikul007]

About

🚗 ESP32-based smart car with PWM speed control, Bluetooth command input, and ultrasonic obstacle detection. Built for learning and experimentation in embedded systems and robotics

Topics

arduinoarduino-carautonomous-robotsbluetooth-controlled-caresp32-smart-carmicrocontroller-projectobstacle-avoidance

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.