Various bits of code for the RasPi (and some arduino)