Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Arduino Robot Car with IR Sensors and Bluetooth Control

πŸ“– Overview

An Arduino-based robot car that operates in two modes: autonomous line-following using IR sensors, and manual control via Bluetooth commands. A push button allows switching between modes, while LEDs and a buzzer provide interactive feedback. The system uses an L298N motor driver for precise motor control.


✨ Features

  • Dual Mode Operation: IR sensor line-following or Bluetooth manual control
  • Line Following: Detects black line using two IR sensors and adjusts direction
  • Bluetooth Control: Commands for forward, left, right, stop, horn, and LEDs
  • Interactive Feedback: Buzzer honk and LED indicators
  • Debounce Logic: Stable push-button mode switching

πŸ› οΈ Hardware Used

  • Arduino Uno (or compatible board)
  • L298N Motor Driver Module
  • DC Motors (x2)
  • IR Sensors (x2)
  • Bluetooth Module (HC-05 or HC-06)
  • Push Button
  • LEDs (x2)
  • Buzzer
  • Power supply

βš™οΈ Circuit Connections

  • IR Sensors: Right β†’ A0, Left β†’ A1
  • Motor Driver (L298N):
    • enA β†’ Pin 10, in1 β†’ Pin 9, in2 β†’ Pin 8
    • enB β†’ Pin 5, in3 β†’ Pin 7, in4 β†’ Pin 6
  • Button: Pin 4 (with internal pull-up)
  • Buzzer: Pin 13
  • LEDs: Pin 11 and Pin 12
  • Bluetooth Module: RX β†’ Pin 2, TX β†’ Pin 3

πŸ’» Code Explanation

  • IR Mode: Robot follows a line using sensor input.
    • Both sensors on line β†’ move forward
    • Right off line β†’ turn right
    • Left off line β†’ turn left
    • Both off line β†’ stop
  • Bluetooth Mode: Receives commands (F, L, R, S, V, 1, 0, W, U, w, u) to control movement, buzzer, and LEDs.
  • Button: Toggles between IR and Bluetooth modes with debounce logic.
  • Motor Control: PWM speed adjustment for smooth movement.

πŸš€ Future Improvements

  • Add obstacle detection with ultrasonic sensors
  • Integrate mobile app for advanced Bluetooth control
  • Include speed adjustment commands via Bluetooth
  • Add rechargeable battery monitoring system

About

A dual-mode Arduino robot car project using IR sensors and Bluetooth. It follows a line autonomously with IR sensors or switches to manual control via Bluetooth commands. Features include motor control with L298N driver, buzzer horn, LED indicators, and push-button mode switching with debounce logic for stable operation

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages