By Jerry Yan, April 2017
You can download the release version here.
- macOS Sierra or later (10.12+)
- Bluetooth 2.1
- Pair the Arduino car with your Mac on Bluetooth.
- Select your Bluetooth Serial Port on the "Port" in the menu bar.
- Click "Connect", the status will change to "Connected" if it succeeds.
You can operate the car with any of the following ways:
You can use the arrow keys on the keyboard to operate the car. When the key's down, the car starts to move; when the key's up, the car ceases to move.
Just click on "Forward," "Left," "Right," "Backward," or "Stop" to operate the car.
When the car is connected, the app will show the realtime distance in front of the car. The car also alerts when there's obstacle less than 25cm in front of it.
- Start: When the car is connected, start the Auto Recording to get the realtime trace of the car.
- **Pause: ** The trace recording will be paused, and you may click the start button to restart it. The previous trace will not be erased.
- Stop: The trace recording will be stopped, and you may click the start button to restart it. The previous trace will be erased.
Enter the JSON data like this, and then click the "try" button to stimulate the realtime trace recording.
{"a_x":"0.27", "a_y":"0.12", "a_z":"-10.04", "USDistance":"228"}
{"a_x":"0.31", "a_y":"0.08", "a_z":"-10.08", "USDistance":"36"}
{"a_x":"0.16", "a_y":"0.12", "a_z":"-10.08", "USDistance":"37"}
{"a_x":"0.16", "a_y":"0.04", "a_z":"-10.04", "USDistance":"38"}
{"a_x":"0.24", "a_y":"0.16", "a_z":"-10.12", "USDistance":"36"}
{"a_x":"0.27", "a_y":"0.04", "a_z":"-10.08", "USDistance":"36"}
{"a_x":"0.31", "a_y":"0.16", "a_z":"-10.08", "USDistance":"35"}
{"a_x":"0.31", "a_y":"0.08", "a_z":"-10.08", "USDistance":"36"}
{"a_x":"0.24", "a_y":"0.12", "a_z":"-10.04", "USDistance":"40"}
-
a_x: the instantaneous acceleration on the x-Axis (in
$m/s^2$ ) -
a_y: the instantaneous acceleration on the y-Axis (in
$m/s^2$ ) -
a_z: the instantaneous acceleration on the z-Axis (in
$m/s^2$ ) -
USDistance: the ultra-sonic distance in front of the car (in
$cm$ )
You may reset the image area anytime using the reset button.
You can access the Arduino Code here.