This is an API to enable programmatic control and unlock the possibilities for what you can do with the fantastic Mekamon robot (https://mekamon.com). More details on my Medium blog
- Mekamon beserker robot - available from the Apple store
- Raspberry Pi, running Raspbian or Debian
- A Bluetooth Low Energy controller (USB) based on the CSR8510 chip ($6.99 on Amazon)
- Python 2.7 or 3.5 supported
Linux, using the latest BlueZ 5.33 release. The library is implemented using BlueZ's experimental DBus bindings for access from languages such as Python.
Follow the instructions at https://github.com/adafruit/Adafruit_Python_BluefruitLE/ to get Bluetooth set up on your Raspberry Pi to send messages from your Pi to the Mekamon.
Install necessary Python packages
pip install -e requirements.txtFirst, start the server
sudo python -m mekamon_api.mekamon_driverNext, start the Pygame client to control your Mekamon with the keyboard.
sudo python -m mekamon_control.keyboard_controller| Keyboard | Command |
|---|---|
| w | Forward |
| a | Reverse |
| s | Strafe left |
| d | Strafe right |
| Left arrow | Rotate counter-clockwise |
| Right arrow | Rotate clockwise |
| Up arrow | Stand up |
| Down arrow | Sit down |