A GUI to control the CyberGear micromotor
Project description
CyberGear Dashboard
A GUI dashboard for controlling the Xiaomi CyberGear micromotor.
Getting started
Install the package from pip:
pip install CyberGearDashboard
Launch it with CAN bus connection details.
# Connect to motor ID 127 with the serial USB to CAN adapter device /dev/cu.usbmodem101
python -m CyberGearDashboard --motor 127 --channel /dev/cu.usbmodem101 --interface slcan
(see more about CAN devices, below)
CAN bus connection
Unlike the stock Xiaomi CyberGear software, this tool can use any CAN adapter supported by the Python CAN library. If you have trouble connecting, start by connecting to one of the Python CAN tools, in order to get the correct connection settings.
Serial adapters
If you have a CAN to serial adapter, you'll likely be connecting with the slcan interface.
# Replace /dev/cu.usbmodem101 with the device port for the adapter on your computer
python -m CyberGearDashboard --channel /dev/cu.usbmodem101 --interface slcan --motor 127
If that doesn't work, try the serial interface
# Replace /dev/ttyUSB0 with the device port for the adapter on your computer
python -m CyberGearDashboard --channel /dev/ttyUSB0 --interface serial --motor 127
SocketCAN / candlelight / Geschwister Schneider
Linux
On Linux, you can connect using the SocketCAN interface. This will not work on Windows or Mac.
python -m CyberGearDashboard --interface socketcan --channel can0 --motor 127
Mac/Windows
For Mac and Windows, you can connect to SocketCAN and candleLight devices with the Geschwister Schneider interface. NOTE: you might have to disconnect and reconnect the adapter between uses.
python -m CyberGearDashboard --interface gs_usb --channel 0 --motor 127
Troubleshooting
If the dashboard has trouble connecting to your device, try connecting via one of the Python CAN tools. Once you're able to connect with one of those tools, use the same arguments to open the dashboard.
For example
# If this connects without error
python -m can.viewer --interface gs_usb --channel 0
# Open the dashboard with the same connection values
python -m CyberGearDashboard --motor 127 --interface gs_usb --channel 0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cybergeardashboard-0.2.1.tar.gz.
File metadata
- Download URL: cybergeardashboard-0.2.1.tar.gz
- Upload date:
- Size: 700.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f301192aa943e94b0264de7c58d17b4b2bb5c23c3f032f5661d4168a5375a5f
|
|
| MD5 |
0b240be7d244d199a7feb4f5f1fdb6e4
|
|
| BLAKE2b-256 |
9e9c6e3c8b05149be1336a4d3b44efe88c3cc794b9b9478f72c0be7bdb0bf427
|
File details
Details for the file cybergeardashboard-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cybergeardashboard-0.2.1-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cf812f17660692145bfee7a023455679e7eeb4b03963587c2bfcd3c8a146f49
|
|
| MD5 |
8f521c106c52b99c50e23a28688072cf
|
|
| BLAKE2b-256 |
40932392f4045003b579298b30bc797aef1774dfd6d0a83e2273f4fa9712d09c
|