

Yeah, I think we spoke about that possibility.
Diffmerge json rules code#
It's funny, I was thinking of something like this.Ī code for recording b's output on b's input and generate offset arrays to correct the ouput. I will do the same for the ADC input which already uses a fixed gain network, but with an adjustable bias. If I ever, say, wanted to build a successor to the 'b that, for instance, used an SMT, 16-channel, 16 bit, buffered output, bipolar +/- 10V DAC, then this would use the same code to tune since they don't have any external tuning circuitry at all.
Diffmerge json rules software#
I'm trying to get the 'b to be a lot cheaper to make as I get more software for it, it will have applications for non-Arduino hackers more and more.ģ. It will allow me to simplify future iterations of the 'b by using a fixed resistor bias and gain network.


Once it's basically in tune, you can continue to adjust in a config file.Ģ. It will allow you to adjust the tuning more regularly without having to remove the 'b from your rack. Right now, the code looks like this, but I'll add it to the JSON config (Oh, i haven't mentioned that before have I?) that lives on the SD card. When the software is done, I'll provide a spreadsheet like this that will let you run through the tuning sequence and provide some values that you can plug in. I haven't tested the +/- 5V version, but I expect it will be a even better since the tuning for that one is a bit easier and generally ends up closer to the mark to begin with. Now, once you get them close enough (within 50mV), there is a way to fine tune it in software! In my example, for a +/- 10V model (which are particularly hard to tune due to the gain staging) I can get each of the 16 channels to have a perfect zero point and to have an average 40mV improvement at the far end of the scale - down to within 0.1% !! And if you're a perfectionist like me, you'll spend way too much time tweaking those pots. With 16 channels of output, only a single offset pot, and sooo many gain adjustment pots, it's really impossible to get a 'b in perfect tune. This may be one of the more mundane updates that I'm working on for 1.1, but it's important nonetheless (for a few reasons).
