v1.0.0
PestoLink-MicroPython is a MicroPython module that runs on an XRP robot. By using the web app PestoLink-Online you can connect to your robot with BLE (Bluetooth Low Energy) and drive the robot wirelessly.
You can drive using mobile or desktop. On desktop, you can drive with your keyboard or a gamepad (like an xbox controller or PS4 controller).
-
Your robot needs to use a recent verion of MicroPython. When you connect to an XRP board with with XRP web editor, the shell will tell you what version you have.
- If your MicroPython version is less than 1.21.0, then follow these instructions to update it
-
Upload
pestolink.py
to your XRP robot- Click here to download this repository. After that, unzip it
- Connect to your robot with the XRP code editor
- In the XRP Code editor, go to
file > Upload to XRP
and selectpestolink.py
from the repo you just downloaded - Save the file in the \lib folder, so that
FINAL PATH: /lib/pestolink.py
-
Upload
pestolink_example.py
to your XRP robot- In the XRP Code editor, go to
file > Upload to XRP
and selectpestolink_example.py
from the repo you just downloaded - Save the file at the top level, so that
FINAL PATH: /pestolink_example.py
- In the XRP Code editor, go to
-
Pairing and connecting
- Open
pestolink_example.py
, change therobot_name
string to what you want the robot to be named for Bluetooth pairing - Click the
Run
button in the top right - Go to PestoLink-Online. You will be faced with two options, go with PestoLink-Mobile for now but you can try the gamepad version later if you want
- Press/click
Connect BLE
. A pairing menu will appear, find and select the robot name you chose. After the connection opens, you can now drive your robot!
- Open