Skip to main content

Control ilo robot using python command.

Project description

Ilo robot

ilo

Python PyPI Downloads License


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 terminal
  • websocket-client – communicate with the robot via WebSocket
  • bleak – Bluetooth Low Energy (BLE) client library for Python
  • pyserial – serial communication support (UART)
  • pyperclip – cross-platform clipboard support
  • requests – simple and powerful HTTP client
  • numpy – fundamental package for scientific computing
  • matplotlib – 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.


Powered by Intuition RT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ilo-0.0.59.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ilo-0.0.59-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file ilo-0.0.59.tar.gz.

File metadata

  • Download URL: ilo-0.0.59.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ilo-0.0.59.tar.gz
Algorithm Hash digest
SHA256 789f0578c57a8cc424d7acf2244cb1e88b8ac56ad74bbd2e9d1138780a84d9a2
MD5 016bf7e57a9be5d06330fc1c50631400
BLAKE2b-256 4f06416270398685fc7da110333c8767c8b2c7f3b24cb17779218cf4751452ce

See more details on using hashes here.

File details

Details for the file ilo-0.0.59-py3-none-any.whl.

File metadata

  • Download URL: ilo-0.0.59-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ilo-0.0.59-py3-none-any.whl
Algorithm Hash digest
SHA256 afc869c3a3f05244685c7883fb14240dae8e8c798d806ca0990c2019db4a69ef
MD5 66aff9b7ea8d6d4eca3189625f8fe3a7
BLAKE2b-256 6c5bedbc88736af3ca7e107fd2313eee9fefe77b19f87f8c9c5c706ee69e155a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page