Skip to content

Releases: esimkowitz/RobotControl

Initial release

08 Aug 17:32
Compare
Choose a tag to compare
Initial release Pre-release
Pre-release

The initial release for RobotControl, a simple controller for Raspberry Pi robots powered by the Adafruit DC & Stepper Motor HAT. The controller displays a low-latency video stream from the Pi's camera (thanks to waveform80's pistreaming example.
The controls work on desktops and multi-touch devices. On desktops, the best way to control the robot is using the arrow or WASD keys. On mobile/multi-touch devices, the best way to control the robot is to drag your finger along the screen in the direction you want the robot to move. Thanks to yoannmoinet's unfortunately-named nipplejs library, dragging your finger along the screen will enable a joystick that can be used to control the robot. This works on both touchscreens and with the mouse, but it's really meant for touchscreens.
Running the program is pretty straight-forward: download the git repo and run python3 setup.py install, then run python3 app.py to start the webserver. On another device, open a browser and navigate to <insert Pi's IP address>:5000 and you're good to go!
The whole thing should work on Python 2.7 and 3.