Skip to content

A Wi-Fi-enabled, remote-controlled car with obstacle detection, powered by an ESP32 microcontroller, HC-SR04 ultrasonic sensor, and an Android application. The car detects obstacles within 60 cm, automatically reversing and stopping to avoid collisions, and is controlled via a smartphone app over Wi-Fi using HTTP GET requests.

License

Notifications You must be signed in to change notification settings

Soumen044/Object-Detection-Car-ESP32-Android

Object Detection Car Controlled by Android Application

Project Logo

A Wi-Fi-enabled, remote-controlled car with obstacle detection, powered by an ESP32 microcontroller, HC-SR04 ultrasonic sensor, and an Android application. The car detects obstacles within 60 cm, automatically reversing and stopping to avoid collisions, and is controlled via a smartphone app over Wi-Fi using HTTP GET requests. Firebase integration ensures secure single-user control, enhancing the user experience.

Developed as a final-year project (Session: 2022–2025) by Soumen Mishra, Nabanita Maity, Triyasa Dey, Pousali Pal, and Anirudha Roy at Dasnagar Government Polytechnic, Howrah, West Bengal, under the guidance of Shri Partha Sarathi Banerjee and Shri Achintya Gopal Mondal. Affiliated with the West Bengal State Council of Technical & Vocational Education and Skill Development, this project showcases expertise in IoT, embedded systems, Android development, and sensor integration.

Table of Contents

Demo

[Demo Video]

[YouTube Link]

[Demo GIF]

Watch the car navigate and avoid obstacles in our YouTube demo video, showcasing real-time control via the Android app and obstacle detection capabilities.

Features

  • Obstacle Detection: Detects objects within 60 cm using the HC-SR04 ultrasonic sensor, ensuring safe navigation.
  • Automatic Collision Avoidance: Reverses for 500 ms and stops when obstacles are detected.
  • Wi-Fi Remote Control: Controlled via an Android app over the ESP32’s Wi-Fi Access Point (AP).
  • Real-Time Response: Minimal latency in command execution and sensor feedback.
  • User-Friendly Interface: Android app with intuitive controls and Firebase-based single-user authentication.
  • Cost-Effective Design: Built with affordable components for scalability.
  • LED Indicators: Two LEDs provide visual feedback for movement direction.
  • Firebase Integration: Ensures secure, exclusive control for a single user.

Hardware Requirements

Component Quantity Description Approx. Cost (INR)
ESP32 Dev Module V1 1 Wi-Fi-enabled microcontroller 500
HC-SR04 Ultrasonic Sensor 1 Ultrasonic distance sensor 250
L293D Motor Driver iC 2 Controls BO DC motors 200
3.7V Li-ion Battery ~2000mah 4 Power supply for the car 350
LM2596 Buck Converter 1 Stable power supply 100
Breadboard 400-tie 1 Circuit assembly 200

See Bill of Materials for more details and purchase links.

Software Requirements

  • Arduino IDE: For uploading the ESP32 code (requires ESP32 board manager).
  • Android Studio: To build and run the Android app (includes OkHttp for HTTP requests).
  • Firebase: For single-user authentication in the Android app.

Installation

Android App

  1. Download the repository from GitHub.
  2. Open the android-app folder in Android Studio.
  3. Place google-services.json in android-app/app/ (see Firebase Setup).
  4. Sync the project with Gradle to download dependencies (OkHttp, Firebase).
  5. Build and run on an Android device, or install android-app/app-release.apk.
  6. See [Android-App README(android-app/README.md) for detailed setup.

ESP32 Code

  1. Open esp32-code/CarControl.ino in Arduino IDE.
  2. Install the ESP32 board manager via Boards Manager.
  3. Connect the ESP32, select ESP32 Dev Module, and upload the sketch.
  4. See ESP32 - README for detailed setup.

Hardware Setup

  1. Assemble the circuit as shown in Circuit Diagram. Circuit Diagram
  2. Refer to Mechanical Diagram for car assembly. Mechanical Diagram
  3. Connect the battery and power on the car.
  4. To Understand more Easily take a look on Working Methodology
  5. Verify Components using Bill of Materials.

Firebase Setup

  1. Create a Firebase project at console.firebase.google.com.
  2. Add the Android app and download google-services.json.
  3. See Firebase Setup for details.

Usage

  1. Power on the car; the ESP32 creates a Wi-Fi AP (SSID: Savana Node 01, Password: iloveindia).
  2. Connect your Android device to the ESP32’s Wi-Fi network (IP: 192.168.4.1).
  3. Open the Android app, log in via Firebase authentication, and use buttons to control the car (forward, backward, left, right, stop).
  4. The car automatically reverses and stops if an obstacle is detected within 60 cm.
  5. LEDs indicate movement: both on for backward, left LED for left turn, right LED for right turn.

Documentation

Project Document

View the complete project Document: Object Detection Car ESp32 Android.pdf

Project Presentation

View the complete project presentation: Object Detection Car ESp32 Android.ppt.pdf

Contributing

Contributions are welcome! Please review CONTRIBUTING for guidelines on reporting issues, submitting pull requests, and collaborating.

Code of Conduct

We are committed to fostering an inclusive community. Please adhere to our Code of Conduct.

License

This project is licensed under the MIT License - see LICENSE.

Security Policy

Security Policy - Security Policy

Acknowledgements

  • Team: Soumen Mishra, Nabanita Maity, Triyasa Dey, Pousali Pal, Anirudha Roy.
  • Guides: Shri Partha Sarathi Banerjee, Shri Achintya Gopal Mondal.
  • Institution: Dasnagar Government Polytechnic, Howrah, West Bengal.
  • Head of Department: Shri Aniruddha Bhaduri.
  • Principal: Dr. Manas Kumar Saha.
  • Affiliation: West Bengal State Council of Technical & Vocational Education and Skill Development.

Contact

Connect with us:

For inquiries or feedback, reach out via email or social media. Follow our journey as we continue to innovate in IoT and robotics!

License Issues Stars

About

A Wi-Fi-enabled, remote-controlled car with obstacle detection, powered by an ESP32 microcontroller, HC-SR04 ultrasonic sensor, and an Android application. The car detects obstacles within 60 cm, automatically reversing and stopping to avoid collisions, and is controlled via a smartphone app over Wi-Fi using HTTP GET requests.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published