Raspberry Pi button board to send a command to Home Assistant or Octoprint from your CNC enclosure.

Grab the files from my Github repo

Install the following packages:

apt install python3
apt install python3-rpi.gpio  
apt install python3-gpiozero 
  • Clone the repository to a local directory
  • Rename the .env.example file to .env and configure the variables
  • Run python3 -m venv ./venv
  • Run ./venv/bin/python3 -m pip install -r requirements.txt
  • Set a cronjob to start this script on the bootup of your Raspberry Pi
ButtonPinWire Color
CNC21Blue
VAC20Purple
Lights19Red
Multi16Orange
10K ResistorSignal / GroundYellow
3.3V3.3vBrown