Skip to content

Control Dash Robots from Wonder Workshop on Mac, Windows and Linux thanks to BLEAK !

License

Notifications You must be signed in to change notification settings

mewmix/bleak-dash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bleak-dash

An unofficial bleak powered cross platform python library for controlling Wonder Workshop's Dash robot.

NOTICE:

Adapted from original source code Copyright 2016 Ilya Sukhanov https://github.com/IlyaSukhanov/morseapi & updated code Copyright 2018 Russ Buchanan https://github.com/havnfun/python-dash-robot

Key differences:

  • Changed backend from pygatt to bleak
  • Compatible with Python 3.11
  • Cross Platform
  • Asynchronous

Motivation

I wanted to use my kids dash robot from my Mac or my Windows machine without reinventing the wheel.

Compatibility

Using Bleak we should be Windows / Mac / Linux agnostic. Please let me know if any issues. Tested on M1 & Windows

Getting Started

git clone https://github.com/mewmix/bleak-dash
cd bleak-dash
pip install -e . 

Tests

python tests/lightshow_random.py  

Library Quick Start

import asyncio
from dash.robot import DashRobot, discover_and_connect

async def main():
    robot = await discover_and_connect()
    if robot:
        print(f"Connected to {robot.address}")
        # Example command to move Dash
        await robot.move(100, 100)  # Move forward 100mm at 100mm/s
        await robot.disconnect()

if __name__ == "__main__":
    asyncio.run(main())

About

Control Dash Robots from Wonder Workshop on Mac, Windows and Linux thanks to BLEAK !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages