Awesome project with a great README. This makes me want to dust off my ancient analog electronics knowledge.
Does anyone know why the second stage op-amp cleaned up the signal so much? It appears to have removed a higher-frequency oscillation, leaving a very clean, nearly square-shaped wave.