Needing more than a spark test?

Variable gain amplifiers question..
@homebrewed :
Hi Mark
On your signal conditioning board, you had a choice of three gains, 1X, 10X, 100X, done by tapping into the outputs between opamp stages, though I am not exactly sure how the P2 device does it, and the output is clamped not to exceed 3.3V+0.65, nor go below -0.65V.

Do we know how much gain we need, or that we still want to switch gains in the amplifier chain?
If the dynamic range of the ADC is enough (about 105dB), and around 2V is expected for the biggest energy we expect, then scaling the X-axis can be done in software. This can be anything from setting the X-axis range, or set to portions of interest, to having log scaling, octave or decade. I see (in videos) this is readily done in MCA displays of XRF videos on data already collected.

I can imagine one might want to "zoom in", perhaps collecting counts from a range of lower energy returns, while ignoring pulses from higher peaks known to be there, just letting them clip on the rail, and not get plotted anyway.

In my design, there is the first stage TIA, followed by op-amp stages for post-TIA gain, one of which is a place for an optional 50Hz/60Hz interference filter stage. There is also the final ADC driver which has gain=1. This is where I decide whether there is a software switched variable gain addition.

It's the interface?
In my circuit, the power for the analogue signals section and ADC is isolated entirely, using a cheap low power high frequency switcher with transformer (MAX253), followed by a 2.5V ultra low noise LDO regulator (ADM7160AUJZ2.5R7). There is some passive filtering and noise control as well.

To compete with a photomultiplier tube method, gain of the entire arrangement is enormous, quite hard to keep stable, and tricky over noise, bias, and offsets. Any arrangement to switch gains, or select tapped signal routes, in my case, would need opto-isolated digital control, because the alternative would bypass the attempt to prevent connection of the computer digital 0V to the clean 0VA.

Hence the question. Are we intending having the ability to alter at least some of the gain range by hardware?
Perhaps yes, while prototyping, until we know how much gain we need?
I had thought, given you have a whole signal conditioning board, and some experience with it, you might have had a first-order guess.

It's OK if we just don't know yet. I was just poking around looking at opto-isolated stuff commonly used for things like RS485 and whether or not a ready-made software switchable variable gain amplifier might be good.
Right now my signal conditioning board is running in its X10 mode. I occasionally get pulses that rail the Teensy's ADC with this gain setting but they represent energies that are far above our 6kev Iron(-ish) elements.

Regarding changing the gain in S/W, I think that would work OK for a 16 bit ADC -- within reason, anyway. I also have thought about using a digital pot to avoid the need to provide access to a switch or jumper inside the enclosure, but put that in the "version 2" pile of things to do. The need to add opto-isolators definitely put that idea in the aspirational category. Like I keep saying, the first thing to do is get some results that convince us it's worth the effort. Such a setup doesn't have to look pretty or even be portable, just tell us things like "this sample is 303 stainless". Then it's really off to the races.
 
Got Mark's @homebrewed ADC board put together today. I was able to solder the QFP package fairly easily using low temperature solder paste. And I remembered to use a higher temperature solder for the back side components, so they wouldn't fall off when I soldered the ADC.

Pondering connecting the board to my depopulated ELS board. Seemed to have misplaced my ancient hand wire wrap tool. It's very likely in a safe place, safe from me! I installed male header pins on the ADC board and I have wire wrap tails on the Teensy. I could temporarily use female jumper wires, but they are not very reliable. In the old days we would fly experimental equipment and it was wire wrapped. So it's good enough for my desk. A PCB is light years better, but this is just prototyping. I can always solder it...
 
Right now my signal conditioning board is running in its X10 mode. I occasionally get pulses that rail the Teensy's ADC with this gain setting but they represent energies that are far above our 6kev Iron(-ish) elements.
OK - thanks for that! It gives me a way to simplify, not needing the last IC. :)
Regarding changing the gain in S/W, I think that would work OK for a 16 bit ADC -- within reason, anyway. I also have thought about using a digital pot to avoid the need to provide access to a switch or jumper inside the enclosure, but put that in the "version 2" pile of things to do. The need to add opto-isolators definitely put that idea in the aspirational category. Like I keep saying, the first thing to do is get some results that convince us it's worth the effort. Such a setup doesn't have to look pretty or even be portable, just tell us things like "this sample is 303 stainless". Then it's really off to the races.
Yes, agreed. So again I can simplify. I am trying to press home the last bits of circuit, and sort out the footprints, so I can have an adventure with KiCad layout.
 
Got Mark's @homebrewed ADC board put together today. I was able to solder the QFP package fairly easily using low temperature solder paste. And I remembered to use a higher temperature solder for the back side components, so they wouldn't fall off when I soldered the ADC.
That is something that did not occur to me. I guess it is what has to be done on all boards where there are some components on the other side. It's a favourite place to put decoupling capacitors under the chips.
 
My two USB isolators arrived yesterday. I was too busy to play with one right away but I was able to try one out today. It works fine, at least for serial communication over a USB-simulated 9600 baud serial interface. Of course, it didn't make any difference w/regard to the ADC distortion. Hopefully that will be resolved once the solder flux arrives. I'm hopeful that the polish wire trick will do the job.

My computer also recognizes a flash drive through the isolator, but I wasn't so rash as to try writing data to it. It's got stuff on it I want to be able to access so I'm not prepared to possibly brick it in the name of science :).
 
Smoke test was uneventful. However, something is up with my substitute regulator. I used an XC6206 3.3V regulator, which shares the same footprint and pin out as the SC662K-3.3V part. Much to my dismay, I saw a much higher output voltage, a lot closer to 5V than 3.3V. I've used these regulators before, so I am puzzled. I could have a bad connection or part. Hope I didn't incinerate the ADC as they are a bit expensive.

When I look up the SC662K-3.3V part on AliExpress, I find it being widely interchanged with the XC6206 part. The XC6206 parts are marked on the package as 662K! I'm sure I could do better, but within a couple of minutes, I found I could buy 100 SC662K-3.3V parts for around $2 USD, and maybe $0.61 shipping. I had read about these parts as the 1 cent regulators. Mouser and Digikey don't carry the SC662K-3.3V part number. Kind of hard for them to make money on a one cent part.

Edit: Absolute maximum voltage on OVDD of the AD7667 is 7V. So I think the ADC is ok. Fortunately I hadn't connected the ADC board to the Teensy 4.1. Exposing the I/O pins to +5V guarantees instant death of a Teensy - it is not 5V tolerant.

Edit #2: Regulator seemed ok, may have been some shorting across the terminals from solder splash. Resoldered the same regulator, and there's 3.3V at the output. Much better! Back to wiring.
 
Last edited:
Smoke test was uneventful. However, something is up with my substitute regulator. I used an XC6206 3.3V regulator, which shares the same footprint and pin out as the SC662K-3.3V part. Much to my dismay, I saw a much higher output voltage, a lot closer to 5V than 3.3V. I've used these regulators before, so I am puzzled. I could have a bad connection or part. Hope I didn't incinerate the ADC as they are a bit expensive.

When I look up the SC662K-3.3V part on AliExpress, I find it being widely interchanged with the XC6206 part. The XC6206 parts are marked on the package as 662K! I'm sure I could do better, but within a couple of minutes, I found I could buy 100 SC662K-3.3V parts for around $2 USD, and maybe $0.61 shipping. I had read about these parts as the 1 cent regulators. Mouser and Digikey don't carry the SC662K-3.3V part number. Kind of hard for them to make money on a one cent part.

Edit: Absolute maximum voltage on OVDD of the AD7667 is 7V. So I think the ADC is ok. Fortunately I hadn't connected the ADC board to the Teensy 4.1. Exposing the I/O pins to +5V guarantees instant death of a Teensy - it is not 5V tolerant.
OVDD can work with 5V so you're OK as long as your Teensy wasn't connected to the ADC.
 
@homebrewed is ParPin in msb first order? Going to jumper the pins, so thought it might be good to check! Also for your defines of CNV_SET etc, do the descriptions correspond to the Teensy pin number, or is there some intermediate lookup?

CORE_PIN0_PORTSET would correspond to what is labeled on the "printed Teensy 4.1 card" as pin 0? Just want to make sure I understand how to wire this...
 
@WobblyHand
Hi Bruce. I have feared all these scenario. That is why I made 3.3V the highest voltage originator, then isolated, and generated about 2.75V, and then regulated down to 2.5V. For my AD7622, the absolute maximum for OVDD is only 3.8V ! I try to have it that any fumble, or component fail, does not become s £50 event!

Great that you got there with getting 3.3V. I am gathering an impression from all your experiences. You, and your hot air tool, might have you be the best hand soldering rework artiste among us. :)
 
Back
Top