Giter Club home page Giter Club logo

bleak-dash's Introduction

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())

bleak-dash's People

Contributors

russbuchanan avatar mewmix avatar

Stargazers

 avatar Frogger avatar Jose Ignacio Romero avatar Jake Simonds avatar

Watchers

 avatar  avatar

bleak-dash's Issues

Hello!

Hi!

I can't connect to my dash bot. I quit out after multiple failed attempts. Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.