Intro

Control Mame arcade games from your pebble watch using Accellerometer and Buttons.

Challenges

Initially started talking directly from Arduino via bluetooth to the Pebble, this cause massive problems for other pebbles in the area though as the Arduino was pretty aggressive connecting to the pebble.

Moved to not using Arduino and attempting to talk directly to the PC and control the keyboard.

This was a lot harder than expected, to give you an idea of some of the options I explored - here's an extract from my journal:

Despite being able to have keys coming through in software as the MAME game emulator just doesn't seem to respond to keyboard like normal X11 apps. So, after 3 weeks of messing about I returned to going back to a hardware solution - this time using wifi and the pebble.

Unfinished Business

  • Currently only works with keys, and due to not being able to detect keys on pebble being held not suitable for all games. Next version will use accelerator and stream coordinates for a free flowing control.
  • Talking from pebble to Arduino via http webserver pretty inefficient, but as I was using pebble.js the only connectivity available to me was AJAX. For the next version I'll rewrite the watch app in C and use PebbleKitJS or native Android to do a raw socket connection or even use MQTT (my current favourite on the ESP8266).

Built With

Share this project:

Updates