bundle install
artoo install socat
Pair the Pebble and Sphero devices using the Bluetooth controls provided by your operating system.
$ artoo connect scan
run hcitool scan from "."
Scanning ...
00:06:66:4A:14:99 Sphero-WRW
00:18:33:86:37:8B Pebble 378B
Use the information displayed from the artoo connect scan command, to bind the Pebble and Sphero to unix ports, like this:
$ artoo connect bind 00:18:33:86:37:8B pebble
run rfcomm -i hci0 bind /dev/rfcomm0 00:18:33:86:37:8B 1 from "."
run sudo ln -s /dev/rfcomm0 /dev/pebble from "."
$ artoo connect bind 00:06:66:4A:14:99 Sphero-WRW --comm=1
run rfcomm -i hci0 bind /dev/rfcomm1 00:06:66:4A:14:99 1 from "."
run sudo ln -s /dev/rfcomm1 /dev/Sphero-WRW from "."
- Edit the Procfile to match the info used when binding the bluetooth devices
- Run foreman:
foreman start
Foreman should start up the socket to serial connections to the Pebble and Sphero devices, and then startup the Artoo robot code.
Once the code is running on your computer, and is connected to the devices, you can drive your Sphero around using the Pebble watch.
- Navigate to the "Music" screen on the Pebble watch. It should display "Left", "Roll", and "Right" matching the three buttons.
- Push the buttons, and the Sphero should move accordingly.
- The "Roll" button changes to "Stop" while the Sphero is moving, just in case you need to come to a quick halt.