Overview
Robotrack PDU is an app for smartphones and tablets running Android 4.0 or later. Used with Trackduino controller code, it provides programmable Bluetooth remote control using a phone or tablet as the controller.
Installation
Download
The source article states that the app is not available in the Play Store. Download the installation file to your phone and open it. Before installation, allow apps from unknown sources in the phone settings (Settings → Security → Unknown sources).
Available app versions:
System requirements
- Android 4.0 or later.
- Working Bluetooth and accelerometer.
- Display that supports at least two simultaneous touches.
Using the app
Main screen
The connection-management screen opens automatically the first time the app is launched. Later launches open the main screen, which contains:
- Connection status. The active device name is shown. Red text means the device is disconnected or connecting; green means it is connected and data is being sent. Tap the Bluetooth icon to open connection management.
- Button for adding the current device to favorites.
- Settings button. See Settings.
- Current accelerometer readings and the reset button. See Accelerometer.
- Joysticks.
- Joystick active area.
- Controls for switching joysticks between analog and digital modes.
- Button panel. See Buttons.
Finding and connecting to Trackduino
Turn on Bluetooth in the phone or tablet system settings. If it is off, the app asks for permission to enable it.
The first time the app is opened after Bluetooth is enabled, the connection-management screen appears. Select a device from Known devices, which lists devices already paired with the phone. On later launches, the app tries to reconnect to the last device.
To find nearby devices, open the Visible devices tab; scanning starts automatically. Tap the device name to connect. Each Trackduino controller Bluetooth module has a label showing its name. After a successful connection, the Bluetooth indicator on the board flashes more slowly.
If the app does not find a new device, close the app completely, find and connect to the device through the phone’s Bluetooth settings, then reopen the app and go to device management. The paired device should appear under Known devices.
The Favorite devices tab lists favorites and lets you edit the list.
Joysticks
Two joysticks independently control four axes (X, Y, Z, W). Each axis ranges from −100 to 100, with 0 at the center.
Each joystick can use analog or digital mode. Switch between them with the D–A control. Both modes behave like physical joysticks, such as those on PlayStation or Xbox controllers. The current value is shown next to each axis and sent to the controller.
If a finger moves past the edge of the active area, the joystick follows it while remaining inside the area. Touching an edge triggers a short vibration. Each edge has a separate notification, so crossing several edges in succession may cause multiple vibrations. Vibration can be turned off in Settings.
Analog mode (A)
Each axis can take any value from −100 to 100. By default, the joystick returns to zero when the finger is lifted; this can be configured separately for each axis. Touch any point in the active area to move the joystick there immediately.
Digital mode (D)
The joystick works like four buttons. Each axis takes one of three values: 0 when neither button is pressed, −100 for left or down, and +100 for right or up.
You can move a finger between buttons without lifting it from the screen.
Buttons
The main screen has six buttons, F1–F6:
- Top row F1–F3: momentary buttons, held down while you keep a finger on them.
- Bottom row F4–F6: toggles, switched on with one tap and kept on until tapped again.
Accelerometer
The accelerometer controls the robot by tilting the phone or tablet relative to the horizon. It measures three axes: AX, AY, and AZ, each ranging from −100 to 100. A diagram of the axes appears in the center of the screen.
The accelerometer measures the gravity vector relative to the phone. For example, tilt the phone right until an imaginary plumb line from its center aligns with the AX axis: AX will read +100 and the other two axes will read 0. When the phone is level, AX and AY are 0 and AZ is −100: gravity points down, perpendicular to the screen, while positive AZ points up.
AX and AY are enough to control the robot by tilting the phone. AZ also indicates whether the phone is upside down.
The calibration button treats the device’s current position as level and measures subsequent readings relative to it.
Settings
Tap the gear icon in the upper-right corner of the main screen to open Settings.
- Return to 0: choose joystick axes that return to zero when the finger is lifted. This applies only in analog mode. In digital mode, values always return to zero when the corresponding buttons are released.
- Keep screen on: prevent the display from turning off when it has not been touched for a while.
- Automatically connect to last device: attempt to reconnect to the last device on launch. When off, the app does not connect automatically.
- Enable vibration: enable or disable vibration when a joystick reaches the edge of its active area or a digital-mode button is pressed.
- Exit: disconnect from devices and close the app completely.
