Skip to content

Instantly share code, notes, and snippets.

View stepchowfun's full-sized avatar

Stephan Boyer stepchowfun

View GitHub Profile
@stepchowfun
stepchowfun / bullet.c
Created April 24, 2012 02:04
Source code for the self-balancing unicycle described at: http://www.stephanboyer.com/post/17
#define F_CPU 20000000
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <stdio.h>
#include <math.h>
/*
-----------------------
Self-Balancing Unicycle