Full code and schematic are on Github