Find's Treasure Forums

Welcome to Find's Treasure Forums, Guests!

You are viewing this forums as a guest which limits you to read only status.

Only registered members may post stories, questions, classifieds, reply to other posts, contact other members using built in messaging and use many other features found on these forums.

Why not register and join us today? It's free! (We don't share your email addresses with anyone.) We keep email addresses of our users to protect them and others from bad people posting things they shouldn't.

Click here to register!



Need Support Help?

Cannot log in?, click here to have new password emailed to you

Help with picking pulse width, current, and frequency for DIY unit.

mts

New member
I'm working on building a special PI detector that has 8 coils. The idea is that these 8 coils are laid on a plastic sheet and pulled along behind the operator. The coils are fired one at a time in succession (fired in an order such that coils next to each other are not fired one after the other). The output is processed by a microcontroller that can then show the user which coils have targets under them. The point of the project is to allow someone to "sweep" large, non-trashy areas very quickly. In non-trashy areas you typically spend a lot of time swinging your detector coil over large areas with no targets in them. This device would allow you to sweep those areas and throw down bean bags on resulting target areas. Then you (or a friend) could go back and use a discriminating detector to just check the areas of known targets.

In theory it works and I have a working prototype in the lab. I built it using various designs found on the web which have very typical front ends. Unfortunately, I'm getting fairly poor depth performance. I have ways to correct some of that in software but I'm trying to figure out if part of my problem is in picking values for pulse width, frequency, current, and other levels. Keep in mind that this machine is primarily being made as a coin shooter, not for gold nuggets. Since some of these parameters are variable in software I may be able to change the machine to work for gold nuggets at a later date. Here is what I have so far:

Pulse width = 200us - I read somewhere that this is really about the maximum you want to use so I picked this. However, I'm reading that much shorter pulse widths can be used with success (50us and even lower). Battery life with 8 coils is a major concern for me. So having as short of a pulse as possible while still giving good depth is very important to me. Any thoughts on what would be reasonable and how depth changes with respect to pulse width for things like silver coins and gold rings? Can using too long of a pulse degrade depth for certain types of targets? What are some of the typical values used by commercial units?

Current = 2A - I have yet to find any information about the typical current values used for most detectors. What I do know is that higher current means better depth in most cases. But as someone else pointed out there is the law of diminishing returns so increasing the current by quite a bit may only result in a couple of inches in increased depth. I'd like to know if I can expect reasonable depth using 2A or even less than this. Again, battery life and heat are big concerns so I'd like to keep this as low as possible without sacrificing depth. Can anyone tell me what a reasonable amount of current would be for most PI units? Is 2A in the ballpark or am I way low/high for coin shooting with a 400uF coil?

Frequency = The frequency is variable but I'm looking at 200-400Hz. I pulled these numbers out of some online literature. However, these also impact battery life. Since I'm pulling this thing along the ground I won't be "swinging" the coil back and forth. So you only get one chance to catch the item as it passed under the coil. This means that frequency should be as high as possible without killing the battery. Do these values look normal/low/high for a typical coin shooting PI machine?

Sample Delay = 50us. Again, I pulled this number out of some literature. But I've also been reading about using lower sample delays (15-30us) for certain materials. My pre-amp stage can't handle 15us as the coil flyback signal hasn't settled down enough by then and the OP amp is saturated. But I could easily do 30us. Any thoughts on which would give better depth for coin shooting? I know that for gold nuggets I would need to get down in the 15us range but I'm not sure how silver coins and rings react. How does sample delay impact depth detection? I know that the longer I wait the smaller the signal is and the lower the signal to noise ratio is going to be.

Amplifier Gain = 10,000. Once again I pulled this out of some online designs. This value allows me to sample at 50us easily but not earlier than about 30us. It also means that the circuit is quite noisy. I'm using a microcontroller with an 8bit ADC in it so with VREF equal to about 2.5V you get about 10mV resolution out of the ADC. I'm starting to think that my gain is way too high and I should shoot for a gain of about 1000 and sample earlier. This would reduce noise and have my circuit sampling at a point where the signal to noise ratio is higher. Any thoughts on gain?

Thanks for the help!
 
I've done some more research on this forum and have answered a few of my own questions. Many thanks to Eric, Bill, and the others for posting such valuable information. I only wish I had the time to go back and read every single post to absorb it all. Anyway, what I have found out is that many of these circuits on the web are very misleading because they really don't tell you what the design contraints were for their choices. Are they creating a coin shooter, relic machine, water machine, nugget machine, or something else? Without this knowledge it is really hard to make guesses as to what the best design decisions would be. So here is another round with some more questions.

Pulse Width = 100us - I'm dropping the pulse width down from 200us to 100us because I really didn't see any differences in lab testing for coins and gold rings. I also think that 200us is probably way too high for what I'm trying to accomplish for now. If someone can give me a good reason why it should be higher or lower I'd be happy to change it. But it doesn't seem to be the most critical aspect of the design in relation to depth as far as I can tell. In fact, making it too high seems to mean that I can't sample as quickly because the coil signal takes longer to decay.

Current = 1.5A - I'm dropping this one too for now. This simplifies the circuit design emensely and also reduces heat (noise) and improves battery life. Again, I didn't see much difference in my testing and from what I've read this small reduction shouldn't hurt my depth much.

Frequency = 1000Hz - I'm bumping this one way up. 100-200Hz is way too slow for what I'm trying to do. I need quick target response since I'm not swinging a coil multiple times over a target. Let me know if there are reasons why I should be looking to bump it up higher or reduce it.

Sample Delay = 30us - By carefully tuning my coil (thanks Eric for all of the great info on this) I'm easily able to sample at 30us. I'm using a pretty high amp stage (see below) so sampling sooner is problematic. I could probably push it to 20us but I'd have to tune my coil within tolerances that are really hard to meet. So for now I'm sticking with 30us. I'll be able to change this through software so some day I may try to push it toward 15us for gold nuggets. Again, if there are reasons why I should be looking at something higher or lower for coin/ring shooting let me know.

Amplifier Gain = 10,000 - I'm leaving this at 10,000. This one is the toughest to gauge. On the lab bench I'm getting fairly low noise with a single stage amp with a 10k gain. But I know that once I go out in the field I'll be getting all kinds of noise and may want to change this value. For now it is giving me better depth so I'll stick with it. I've messed around with multiple stages of amplification but they are really hard to tweak them such that the final amp doesn't saturate all the time. Using two stages also reduces my sample window down considerably. If I use a single stage with 10k gain my window of opportunity to sample is between 20us and 40us. If I use a dual stage design my sampling window is reduced to between about 25 and 30us. That's pretty tight for typical microcontroller timing where one machine instruction takes 1/5th of a microsecond. A few too many instructions and I could be sampling in the region of saturation. Plus, you never know what effect noise is going to have on this small window. I'd really like to hear opinions on multiple stage amplification and gain if anyone has any thoughts.

Noise Cancellation/Target Detection - This one is new and it sure is important. My first design was very naive. I was attempting to keep the software side simple for the first iteration so that I could get this thing out into the field as quickly as possible. I was using a max/min detection scheme which turned out to be a complete disaster. I'm now averaging the signal and performing other analysis for target detection. I'm not even close to being done but I can already tell that the detector is 10 times better than before. Depth of detection appears to have increased and is not nearly as noisy as it was. I would love to hear about some algorithms for averaging and target detection. I may have to dust off my old signal processing and control text books from college. But for now I'm going to try and keep it simple if possible. I'm planning on basically taking long term and short term rolling averages and comparing them for my detection scheme. I haven't worked out all of the details yet but the initial tests have been very promising.

ADC Resolution - I've been using the analog to digital converter (ADC) in 8bit mode because it is significantly simpler to program on an 8 bit microcontroller. But the microcontroller (an 80C52 derivative) also supports 10bit AD conversion. Based on my results so far I can tell that depth is going to still be a problem so I'm thinking that going with 10 bits is probably a good move. The signal will be "noisier" but I can work through software to cancel some of the noise. I was really hoping that 8 bits would be enough but it just doesn't appear to be. This means that the complexity and memory requirements of my program are going to jump considerably. Oh well. Such is life. For those of you who are using microcontrollers and analog to digital conversion, what have your experiences been related to resolution?

Depth - And it always comes down to this one. :) So far the bottom line has been that my depth readings appear to be poor. I've tweaked a lot of the circuit and coil parameters based on Eric's info which has increased depth by as much as 100%. But I'm still thinking that the depth of my machine is way low compared to other units. However, I have nothing to compare my results to. This is my first experience with PI detectors so I'm completely in the dark as to what to expect. I've tried asking before about typical "air test" depths for PI detectors and all anyone wants to say is that it is common for PI detectors to air test poorly. It's almost like they are afraid or ashamed to post actual numbers for fear of being ridiculed. I'm currently air testing a US quarter at a maximum depth of about 6" in the center of my 10" coil. This seems really low to me. Is this on par with other DIY detectors or am I way out of the ballpark? I'm not expecting to see a quarter 24" away. And I understand that the depth could improve out in the field (it could also go down due to noise, etc). So can someone give me a warm fuzzy feeling about what I should be expecting on a coin shooting PI detector with a 10" coil? Should I see 6"? 10"? 18? More? Less? My goal is to get about 8" of depth on a US quarter nearer the sides of my coil. I don't really need any more than that because the person coming along to retrieve the target will be using a standard discriminating detector which usually can't get any deeper than that anyway. Again, the goal of this system is to reduce searching time. I am not intending to use the system for deep caches. Think of it more as a "surface sweeper".

Thanks in advance!
 
Posting air-test results is like farting in church, it just doesn't sit well with people for some reason and only draws criticism.

About 10 on my TDI with 12" factory dual field coil and mild discrimination. I built a 7" mono coil for the TDI and I get about 9" with it using discrimination.
As far as DIY, I built Gary's PI kit and get about 6 inches with a 10' spiral coil but I haven't gone to any lengths to improve the results.
 
Top