Control ilo robot using python command.
Project description
ilo
ilo is a powerful Python package to control ilo the new educational robot directly from your computer.
It allows you to move the robot, read sensors, interact with LEDs, and create autonomous behaviors — all in just a few lines of Python.
Features
- Move the robot in multiple directions with Python commands
- Create complex movement loops
- Draw and animate using the robot's LED matrix
- Play with the robot in real time using your keyboard
- Use colored cards to trigger autonomous modes
- Control and read sensors over Wi-Fi or Bluetooth
Installation
pip install ilo
To update:
pip install ilo --upgrade
Quick Example
Here’s a simple example to get started:
import ilo, time
ilo.check_robot_on_bluetooth()
# ilo.check_robot_on_wifi() # Make sure you are connected to the robot's Wi-Fi AP
my_ilo = ilo.robot(1)
# Go forward until an obstacle is close
while my_ilo.get_distance_front() > 30:
my_ilo.move("front", 10, 50)
time.sleep(0.1)
my_ilo.stop() # Stop the robot
my_ilo.step("rot_clock") # Rotate clockwise
my_ilo.set_led_color(25, 200, 25)
my_ilo.step("front", 0.5)
Dependencies
All dependencies are automatically installed with ilo.
Here’s what each one does:
keyboard-crossplatform– cross-platform keyboard event listener (works on macOS, Windows, and Linux)prettytable– generate clean and easy-to-read tables in the terminalwebsocket-client– communicate with the robot via WebSocketbleak– Bluetooth Low Energy (BLE) client library for Pythonpyserial– serial communication support (UART)pyperclip– cross-platform clipboard supportrequests– simple and powerful HTTP clientnumpy– fundamental package for scientific computingmatplotlib– powerful plotting and visualization library
Documentation
Full documentation and examples are available on GitHub. (Comming soon)
Contributing
Bug reports, patches, and suggestions are welcome!
Questions? Contact us via our website.
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 ilo-0.0.56.tar.gz.
File metadata
- Download URL: ilo-0.0.56.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8177e15abd0d8987ceb21887709f22d72a6227027876bbd8fd4417184142835
|
|
| MD5 |
afc44a7cdcf9749989aa334a269e859a
|
|
| BLAKE2b-256 |
0df91602e999a7cb984694f9cd497bfdd21802fa71a03411fcbfe896a4b24f4b
|
File details
Details for the file ilo-0.0.56-py3-none-any.whl.
File metadata
- Download URL: ilo-0.0.56-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72eddd106401368bd035bc96fc892e92523c7153bf39f8e813445ae0a984b54c
|
|
| MD5 |
ff94e1c1c26175e8ff226b520bcc17a6
|
|
| BLAKE2b-256 |
52d7620f148f37ba5fdb8405618cc8a44ed98ad203d6fe8030965fcafe57c348
|