Skip to content

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

License

Notifications You must be signed in to change notification 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

No packages published

Contributors 2

  •  
  •