So I made up a little input compensation circuit that was in an article that bd had found a few years ago in a QST magazine (the article is 20 years old). The circuit is attached but all I needed was the parts at the input consisting of C2, R2, and L1 (C1 is already there on my board). I found the capacitor and resistor, and I made the one-turn coil myself. I assembled it all on a little perfboard sitting right next to the PCB traces of the main board and ran short wires to connect it. I removed the input cap on the board and put it on the perfboard so the input signal would go through the new components. When I turned on the system the output V which indicates power was way too high. Without any input power it is normally ~ 0.33 V. However it was up at 0.7 V and was really flaky, any movement of the perfboard would make the readings go crazy. So I thought I made some sort of mistake wiring it. I removed the perfboard and inspected it but found no problems. I put the AD8310 board back to original and it worked correctly. I then carefully put the new input circuit back on and the same weird responses happened again.
I put the board back to it's original state, I removed the coax from my Agilent and stuck a sewing pin in the SMA connector of the board - ooh nice signals coming like gangbusters! This thing is very sensitive to signals in the environment. I'll have to come back to this issue later because I can't test it the way I was. Or I might compensate for frequency in software with a menu. Anyway, I got bigger fish to fry now.
I started a shell program so I can get going on the microcontroller side of things. I looked at what displays I had available. I decided on the 128 x 64 Yellow over Blue (may change to something else on a whim though). I just put together a simple test at the moment. I set up to read an analog voltage which is referenced to the on-board 3.3 V reference (since we aren't reading anything over 3.3 V). I coded in the equation to give power in from Vo.
Pin = (Vo - 2.28) / 0.024
I then connected the analog input to a power supply which is simulating the output of the AD8310 system Do we get the right answer given a simulated Vo input? Yes. So now those parts are out of the way.
In fact, I could connect it right now to the AD8310 and it should show the right input power (at the lower frequencies). But I don't have to.
Why?
Because nothing can go wrong ... wait let me re-read the first part of this post again.
