Systems
Embedded, parsers, data structures and algorithms, written by hand.

Hall-sensor absolute encoder Archive
An attempt at a cheap absolute encoder for our FRC robot. A ring of Hall sensors around a magnet, and the circle geometry to find the magnet, worked out by hand in C.

Elevator dispatch simulator Won
A building and elevator simulator in Rust, written in a hackathon week with one teammate, with cascaded PID control for every car. Our team took 1st place at Boğaziçi AI UpForAChallenge.
Two-camera distance to targets Archive
Distance to the reflective FRC targets from two cheap cameras, without a full stereo calibration. Blobs are paired across the two frames, and distance is fitted against 1/disparity from real measurements.

DBEX Archive
A JSON-compatible encoder and decoder in Python built on generators, so it can stop at a chosen depth and hand back the rest lazily. On PyPI since 11th grade.

NightVision (FRC 7839) Archive
The vision coprocessor of FRC 7839, the team I co-founded in high school: a terminal UI on a small screen, an Arduino control panel, and the link to the robot.

vector-h Archive
A generic vector for C89, built from macros: one line declares a typed vector with its functions, sorting and searching included.

Line-of-Sight Archive
2D shadow casting in pygame: the block grid becomes a few long edges, rays go to every corner and just past it, and the lit area is drawn from where they hit.

Path-Finding Archive
A grid path-finding visualiser in pygame: draw walls, place a start and an end, and watch an A*-style search spread out and trace the path.

ppps Archive
A pre-preprocessor for C and C++ on PyPI: Python written inside marked comments in a C file runs before compilation, and its results are written into the output.

MEGABOI Archive
A handheld game console on an Arduino Mega with a TFT screen: menus, Snake and a terminal.