Skip to main content

Introduction

The Eliobot Python library (elio.py) is a CircuitPython library designed to simplify programming the Eliobot robot.

Current version

LibrairieVersionCircuitPython
elio.py4.09.x.x

Architecture

The library is organized into 7 independent classes, each responsible for a component or functionality of the robot:

ClasseDescription
MotorsContrôle des moteurs et déplacements
BuzzerSons et mélodies
ObstacleSensorDétection d'obstacles par capteurs infrarouges
LineSensorSuivi de ligne et calibration
WiFiConnectivityConnexion WiFi et point d'accès
IRRemoteRéception de signaux infrarouge
EyesMatrixContrôle de la matrice de LEDs (yeux d'Eliobot)

Quick installation

The elio.py file must be copied to the root of the Eliobot card (in the CIRCUITPY folder).

Minimal example

import board
import pwmio
import analogio
from elio import Motors

AIN1 = pwmio.PWMOut(board.IO36)
AIN2 = pwmio.PWMOut(board.IO38)
BIN1 = pwmio.PWMOut(board.IO35)
BIN2 = pwmio.PWMOut(board.IO37)
vBatt_pin = analogio.AnalogIn(board.BATTERY)

motors = Motors(AIN1, AIN2, BIN1, BIN2, vBatt_pin)

motors.move_forward(speed=80)

Reference pins

ComposantPin(s)
Moteur droit (AIN1)IO36
Moteur droit (AIN2)IO38
Moteur gauche (BIN1)IO35
Moteur gauche (BIN2)IO37
BatterieBATTERY
Capteurs d'obstaclesIO4, IO5, IO6, IO7
Capteurs de ligneIO10, IO11, IO12, IO13, IO14
Commande ligne (cmd)IO33
BuzzerIO17
BoutonIO0
LED NeoPixelNEOPIXEL