Meltybrain Full-Body Spinner — Combat Robotics
Built a meltybrain combat robot targeting 3000+ RPM. Top-5 national ranking and one of the teams representing Canada at the NHRL World Robot Championship as lead of an 8-member team.
- Translational drift on ATmega32U4 using an H3LIS331DL ±400G accelerometer over I2C.
- RPM estimation via centripetal formula with 2-point zero-G calibration and an EEPROM-persisted correction table with linear interpolation.
- 50 Hz PID throttle loop (Kp=0.3, Ki=0.2, Kd=0.1) chasing target RPM from the transmitter.
- Dual-timer interrupt architecture: Timer3 hot loop @ 2000 Hz + Timer1 DShot @ 500 Hz.
- Implemented D-Shot communicationfor faster communication than PWM by taking advantage of digital duty cycle
- Safety: RC failsafe with 3 s stale-checksum timeout, hardware watchdog, 2-tier battery monitor.
- Hardware: Designed 4-layer 2 oz copper PCB, 20 A continuous, thermal vias, 4S LiPo telemetry. Custom 3D-printed chassis.