Big update on killer bug squashing progress:
I’ve narrowed down the source of the bug to the current source at the high side of the circuit. Many of the likely issues implicate the current sink at the low side of the circuit too. See entry #3 for schematics. I thought I could reproduce the behavior with the steps in the original post, but it turns out 1) it’s just flaky and it’s not as repeatable as working on first startup, and 2) it can be reproduced removing the entire digital timing board from the loop and tying the pulse line to ground, and even sourcing current from the output of the high-side current pump to ground instead of sinking it into the low side current sink. It’s not the instrumentation amp either, I built another mk2 without populating it and I’m having the same issues. I haven’t rigorously evaluated the mk1 version of the current source (see entry #1 for schematic) but I believe it behaves a lot better, and with the main two differences being the choice of opamp and the various resistor values, I think the latter is the culprit - I think there’s a lot of ways that using a very small R4/R2 ratio might cause instability, especially considering that tolerances could potentially have a larger than expected impact after all the algebra works out. That said, I do intend to try it both ways - both the new opamp on the mk2 board with the old resistor values, and the old opamp on the mk1 with the new resistor values. This will help me narrow down the source of the problem even further. I might also try to run some simulations with real opamp models instead of ideal ones, and model tolerances into the resistors. I still have confidence in this current source/sink topology so I’m not giving up yet. Of course my debugging options will be better once my scope arrives, but this is a thing I can do in the short term to avoid being stagnant.
@macerated_baby_presidents@hexbear.net you always have really good EE advice - thoughts on the above? Any other potential failure causes you notice, any potential tests you’d like me to try, any other anything? Anyone else is welcome to comment too!
I was thinking more along the lines of writing everything in markdown and then having a website to display the content there, and either using Pandoc to convert the markdown into LaTeX (LaTeX knowledge definitely helpful here for making the formatting good) or alternately just designing a highly printable website from the jump and then just rendering it to PDF using… something (no LaTeX knowledge required there). This is all dependent on how the site turns out though, so this one is somewhat in the future, but if LaTeX comes up again, I’ll @ you!