Hi All,
The penny is starting to drop thank goodness. But bear with me I would like to get this out!
A bunch of you will probably be like: "I know this already!!!"
The following is my arrival at a bugwhiskers type idea for a multiple sample and hold type PI metal detector. The reason for doing it this way is the common 8-bit processors available have slow internal Analog to Digital conversion capabilities. Even though faster external ADCs can sample fast the time to export to the micro in real time is relatively slow.
After looking thru several PI circuits: Hammerhead, SMPI Pro etc. which use an analog integrator (differential amplifier)there are of course two inputs with the difference being the output. The current sample signal comes in the + terminal of the op amp and the capacitor "averaged" sample signal is fed into the - terminal. To my way of understanding the averaging is accomplished by storing the previous sample voltages in a capacitor. We measure the difference to this average with the integrator op-amp (differential amp). The charge rate of the capacitor can be controlled by resistors proceeding the cap usually after a 4066 switch. There is a resistor in parallel to discharge the cap so after the high signal of a target has passed the cap is pulled back to it's "no signal present" voltage within a small amount of time.
Why can't we do this with a microprocessor?
For simplicity's sake (i'm sure there is a better solution!! ie. multiplexer) we have a 4066 (quad bilateral switch) with all the gates attached to 4 digital output pins of a micro for gate timing control. A buffer amp (gain 1) is after the preamp(s). Buffer amp is able to drive capacitive loads better so as not to load preamp. All the inputs of the switches are attached to the output of the buffer amp. Each output from the different switches that make up the 4066 are attached to 4 different capacitors which store the sample voltages.
So using the micro we turn on the FET for x amount of time (Tx pulse) then turn it off after the specified number of microseconds. (Rx) We wait (dead time) then switch on gate1 to do sample1 -> cap1 is charged from buffer amp, then switch off gate1, wait a number of microseconds turn on gate2 -> cap2 is charged with sample2 voltage then switch gate 2 off. Process repeats for cap3 and cap4. Since simple switching (digital outs on a uC) is accomplished usually within 1-4 clock cycles it is not processor intensive, laggy etc allowing us to direct the preamp output to be stored quite quickly before our beloved signal has decayed to zero.
After all the samples are taken then we actually do the time consuming chore of reading the individual cap values into the microprocessor for processing when time isn't at a premium, do our calculations, alter audio output, update screen whatever.
Now I haven't tested this but I think it will work. Tx time Dead time, sample length, sample delays are all easily configurable and savable with a micro allowing for great flexibility. I know it is somewhat reinventing the wheel
A few things I'm not real sure about are:
1. What value capacitor would be sufficient? 100n?
2. How long would the sample time (ie. the time gate is held on) need to be to charge the capacitors? Would 1 uS be sufficient to charge a eg. 100n cap?
3. Would there be much natural discharge of the caps in the 50-100 uS before we start reading values into the micro?
What do you think? Am I on to something here...?
The penny is starting to drop thank goodness. But bear with me I would like to get this out!

The following is my arrival at a bugwhiskers type idea for a multiple sample and hold type PI metal detector. The reason for doing it this way is the common 8-bit processors available have slow internal Analog to Digital conversion capabilities. Even though faster external ADCs can sample fast the time to export to the micro in real time is relatively slow.
After looking thru several PI circuits: Hammerhead, SMPI Pro etc. which use an analog integrator (differential amplifier)there are of course two inputs with the difference being the output. The current sample signal comes in the + terminal of the op amp and the capacitor "averaged" sample signal is fed into the - terminal. To my way of understanding the averaging is accomplished by storing the previous sample voltages in a capacitor. We measure the difference to this average with the integrator op-amp (differential amp). The charge rate of the capacitor can be controlled by resistors proceeding the cap usually after a 4066 switch. There is a resistor in parallel to discharge the cap so after the high signal of a target has passed the cap is pulled back to it's "no signal present" voltage within a small amount of time.
Why can't we do this with a microprocessor?
For simplicity's sake (i'm sure there is a better solution!! ie. multiplexer) we have a 4066 (quad bilateral switch) with all the gates attached to 4 digital output pins of a micro for gate timing control. A buffer amp (gain 1) is after the preamp(s). Buffer amp is able to drive capacitive loads better so as not to load preamp. All the inputs of the switches are attached to the output of the buffer amp. Each output from the different switches that make up the 4066 are attached to 4 different capacitors which store the sample voltages.
So using the micro we turn on the FET for x amount of time (Tx pulse) then turn it off after the specified number of microseconds. (Rx) We wait (dead time) then switch on gate1 to do sample1 -> cap1 is charged from buffer amp, then switch off gate1, wait a number of microseconds turn on gate2 -> cap2 is charged with sample2 voltage then switch gate 2 off. Process repeats for cap3 and cap4. Since simple switching (digital outs on a uC) is accomplished usually within 1-4 clock cycles it is not processor intensive, laggy etc allowing us to direct the preamp output to be stored quite quickly before our beloved signal has decayed to zero.
After all the samples are taken then we actually do the time consuming chore of reading the individual cap values into the microprocessor for processing when time isn't at a premium, do our calculations, alter audio output, update screen whatever.
Now I haven't tested this but I think it will work. Tx time Dead time, sample length, sample delays are all easily configurable and savable with a micro allowing for great flexibility. I know it is somewhat reinventing the wheel

A few things I'm not real sure about are:
1. What value capacitor would be sufficient? 100n?
2. How long would the sample time (ie. the time gate is held on) need to be to charge the capacitors? Would 1 uS be sufficient to charge a eg. 100n cap?
3. Would there be much natural discharge of the caps in the 50-100 uS before we start reading values into the micro?
What do you think? Am I on to something here...?

Comment