~n0mn0m/bot_commander

Python code for sending LoRa messages to a listener connected to a Roomba.
Refactor dir and add services.
Communication rework.
970ba2b5 — Alexander Hagerman 8 months ago
Lint and auto format updates.

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.

/pi

  • 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.

  • *.service systemd unit files for managing ngrok and the Python application scripts.

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

/roomba

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

Notes

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

Service files are provided in /pi for managing Python on the zero with systemd

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