Python code for sending LoRa messages to a listener connected to a Roomba.
970ba2b5 — Alexander Hagerman 5 months ago
Lint and auto format updates.
40971f94 — Alexander Hagerman 5 months ago
Add Feather code.
Fix listener bugs.

refs

master
browse log

clone

read-only
https://git.sr.ht/~n0mn0m/bot_commander
read/write
git@git.sr.ht:~n0mn0m/bot_commander

You can also use your local clone with git send-email.

About

This project contains python scripts and cron task for operating a Roomba 615 locally or remotely.

  • sms_listener.py runs a web server that monitors a Twilio end point waiting for a message to send a start signal to a connected device (in my scenario a Roomba 615).

  • button_listener.py is meant for use with an Adafruit RFM LoRa shield.

  • code.py is the application that runs on the Adafruit Feather listening for different signals to process and send to the Roomba Open Interface.

  • crontab.bak is a backup of my crontab setup that starts the services on the RaspberryPi Zero W after reboot.

  • requirements.txt are the packages that the virtual environment requires for the scripts above to run.

Notes

This is currently built and running with Python 3.7 and Raspbian.

Hardware

Adafruit Feather connected to the Roomba and listening for the signal to send the Roomba the start command.

Raspberry Pi Zero W running the endpoint that the Twilio webhook is connected to and hosting the bonnet where physical buttons can be used to issue commands to the Roomba.

Pi LoRa bonnet provides the Pi with LoRa send/receive functionality, an OLED screen and buttons.

Acknowledgement

Thank you to the team at Adafruit for building the hardware and CircuitPython ecosystem.

Referenced docs, code and demos