Skip to content

havnfun/python-dash-robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-dash-robot

An unofficial (and unsanctioned) python library for controlling Wonder Workshop's Dash robot.

NOTICE:

Adapted from original source code Copyright 2016 Ilya Sukhanov https://github.com/IlyaSukhanov/morseapi

Key differences:

  • Adapted to support Python 3.x
  • Removed references to GenericRobot
  • Added function to get Dash by device name
  • Dockerfile
  • Sensors are not yet supported
  • Dot is not supported

Motivation

The motivation for this work was primarily to provide a platform to explore Python coding with my kids. The opportunity to experiment with Bluetooth LE was also a factor.

Compatibility

Docker container and source code work when deployed under Ubuntu 18.04. Not tested on other platforms.

Getting Started

Running docker container on host network will launch CPython interpreter:

docker run -it --net=host --name=dash havnfun/python-dash-robot

Import library:

>>> from dash import robot

Create an instance of the robot and play:

>>> dash = robot.get_dash()
Found Dash at: XX:XX:XX:XX:XX:XX
Connecting to: XX:XX:XX:XX:XX:XX
Connecting to: <pygatt.backends.gatttool.device.GATTToolBLEDevice object at ... >
>>> dash.say('hi')

(Note that additional warnings are displayed when running in Docker.)

About

Control Wonder Dash robot using python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors