Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.14 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.14 KB

RemoteControlCar

An iOS app to control a toy car through bluetooth. It supports button control as well as gyroscope control. For gyro control, tilt the device in the XY direction to turn left or right. Tilt the device in the XZ direction to forward or backward with different speed.

Tested on iPhone 5 and iPhone 4s.

How it works

Control signals are constructed based on the accelerator and gyroscope data, i.e. how the device is tilted.

Service UUID and Characteristic UUID are defined in PairingViewController as SUUID and CUUID. The app sends instructions to the car by using WriteWithoutResponse to change the value of a certain characteristic of the bluetooth chip on the car. The microcontrollers on the car read the value and take actions.

It uses CoreBluetooth, thus the bluetooth chip needs to support Bluetooth 4.0 LE.

Screenshots

Get Started Pairing Button Control Gyroscope Control

License

RemoteControlCar is released under MIT License