Skip to content

macOS application to send commands to HC-05 of Arduino car

Notifications You must be signed in to change notification settings

phuocpeter/BluetoothCar

Repository files navigation

BLUETOOTH CAR CONTROLLER

Bluetooth Car Controller is an macOS application written in Swift to controller Arduino bluetooth car with HC-05. This project used ORSSerialPort.

Personal macOS project for educational and experience purpose.

Features

  • Connect and send commands to HC-05 with different baudrate.
  • UI buttons for car movements (forward, backward, lefward and rightward).
  • Autopilot mode: with ultrasonic sensor HY-SRF05, the car can autopilot and avoid obstacles in front.
  • Voice mode: control your bluetooth car with your voice! (macOS dictation required)
    • Command list: forward, backward, stop, left, right and auto.
  • Keyboard mode: use W, A, S, D to control the direction of your car, X to toggle Autopilot or V to toggle Voice mode.
  • Since this is written in Swift, macOS 10.10 or later is required to run.

Usage

  • Requires:
    • Arduino Board (Arduino Nano in this project)
    • 3V Power
    • L298
    • 2 DC Motors
    • Bluetooth HC-05
    • Ultrasonic sensor HY-SRF05

alt text

  • Download the pre-compile app
  • Optional: turn on dictation in System Perferences to use voice mode.
  • Choose the bluetooth port and then click connect.
  • Control the car with the UI buttons, voice or keyboard.

Compiling

  • Required Xcode 7.0+ and macOS 10.10.
  • Open xcworkspace file on a compatible Mac, compile through Xcode.

Contribute

License

The project is licensed under the MIT license.

MIT License

Copyright (c) 2016 Phuoc Tran T.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

macOS application to send commands to HC-05 of Arduino car

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages