Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

devshojol/HC-06-Controller

Repository files navigation

๐Ÿš— HC-06 Bluetooth Car Controller With React Native

A React Native mobile application for controlling Arduino-based RC cars via HC-06 Bluetooth module. Features an intuitive car remote control interface with real-time command sending and response handling.

License React Native Arduino

โœจ Features

  • ๐Ÿ” Device Scanning - Automatically scan and list paired Bluetooth devices
  • ๐ŸŽฎ Car Remote Interface - Intuitive directional controls (Forward, Backward, Left, Right)
  • โšก Speed Control - Adjustable speed from 0-100% with preset options
  • ๐Ÿ”Š Action Buttons - Horn, Light toggle, and Turbo mode
  • ๐Ÿ”„ Real-time Communication - Send and receive data from Arduino in real-time
  • ๐ŸŽจ Modern UI - Clean, colorful, and responsive interface

Device List Screen

  • Scan for paired HC-06 devices
  • Connect with a single tap

Controller Screen

  • Directional controls with visual feedback
  • Speed adjustment slider
  • Quick action buttons

๐Ÿ› ๏ธ Tech Stack

  • React Native - Cross-platform mobile development
  • react-native-bluetooth-classic - Bluetooth communication

๐Ÿ“‹ Prerequisites

  • Node.js (v14 or higher)
  • React Native CLI
  • Android Studio (for Android development)
  • Xcode (for iOS development, macOS only)
  • Arduino IDE
  • HC-06 Bluetooth Module

๐Ÿš€ Installation

Mobile App Setup

  1. Clone the repository

    git clone https://github.com/devshojol/HC-06-Controller.git
    cd HC-06-Controller
  2. Install dependencies

    npm install
  3. Run the app

    # Android
    npx expo run:android --device
    # iOS
    npx expo run:ios --device

Arduino Setup

  1. Install Arduino IDE from arduino.cc

  2. Install SoftwareSerial Library (usually pre-installed)

๐ŸŽฎ Usage

App Commands

Movement Controls:

  • FORWARD - Move forward
  • BACKWARD - Move backward
  • LEFT - Turn left
  • RIGHT - Turn right
  • STOP - Stop all motors

Speed Control:

  • SPEED:XX - Set speed (0-100%)

Action Buttons:

  • HORN - Activate horn
  • LIGHT - Toggle lights
  • TURBO - Activate turbo mode (3 seconds max speed)

๐Ÿ“‚ Project Structure

hc06-car-controller/
โ”œโ”€โ”€ App.js # Main app component
โ”œโ”€โ”€ components/
โ”‚ โ””โ”€โ”€ BluetoothCarController.js # Car controller component
โ”œโ”€โ”€ arduino/
โ”‚ โ””โ”€โ”€ hc06_car_controller.ino # Arduino sketch
โ”œโ”€โ”€ android/ # Android native files
โ”œโ”€โ”€ ios/ # iOS native files
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ LICENSE

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ License

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

๐Ÿ‘จโ€๐Ÿ’ป Author

SHOJOL ISLAM

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support

If you have any questions or need help, please open an issue on GitHub.


โญ Star this repo if you find it helpful!


About

A simple and effective Arduino project with React Native for bidirectional communication using the HC-06 Bluetooth module.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle ใซใ‚ˆใฃใฆๅค‰ๆ›ใ•ใ‚ŒใŸใƒšใƒผใ‚ธ (->ใ‚ชใƒชใ‚ธใƒŠใƒซ) /