Skip to content

Instantly share code, notes, and snippets.

View jtof-dev's full-sized avatar

andy babcock jtof-dev

View GitHub Profile
@jtof-dev
jtof-dev / pendulum_bot.ino
Created October 1, 2025 08:11 — forked from careyi3/pendulum_bot.ino
Code for the pendulum bot you can find here: https://youtu.be/UL99bJTtESk
#define ENCODER_OPTIMIZE_INTERRUPTS
#include <AccelStepper.h>
#include <PID_v1.h>
#include <Encoder.h>
const bool inverted = false;
const int stepMode = 3;
const int stepModes[6][5] = {
{5, 1, 0, 0, 0},