Skip to content

API and Client to enable programmatic and keyboard control of a Mekamon Robot

License

Notifications You must be signed in to change notification settings

zredlined/control-my-mekamon

Repository files navigation

control-my-mekamon

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

What you'll need:

  • 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

Bluetooth setup

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.

Running the API

Install necessary Python packages

pip install -e requirements.txt

First, start the server

sudo python -m mekamon_api.mekamon_driver

Next, start the Pygame client to control your Mekamon with the keyboard.

sudo python -m mekamon_control.keyboard_controller

Supported keyboard commands for API client

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

About

API and Client to enable programmatic and keyboard control of a Mekamon Robot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published