Announcement

Collapse
No announcement yet.

VLF MD with digital signal processing : Bee-Buzz 1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by Carl-NC View Post
    The first digitizing detectors placed the ADC after the demods, so that it sampled a baseband signal which had additional gain besides just the preamp. All of the designs I'm aware of used an ADC with an ENOB of 14-16 bits. When you direct sample, you need an ADC with even higher precision because you no longer have the demod and extra gain stage. You can do it with a 12b ADC but you will either lose faint targets or you will overload on both strong and moderate targets. If you want good depth, then you use extra preamp gain and overload on more targets. But that also means you will overload on bad ground. I don't know of a single modern direct sampling design that is not using a 24b ADC.

    Personally, I think it's a good idea to start with the micro's 12b ADC. It's much easier to work with. But don't expect it to do much more than demonstrate feasibility. It's probably not gonna make a good field hunter.
    Sure, no harm trying. I did not aim this design to do wonders, thats why its ecperimental concept.

    However, in this methodology, I cant go below the noise floor.

    After we try this one out, I will try other methodologies, specially focussed on winning over the noise. But of course, the stm32 will be insufficient.

    Comment


    • #32
      When I translate some of the statements into my simple practical language from experience with detectors in the field; I can see that most of your points are actually very accurate.
      I'm primarily focused on the last couple of posts from Carl and Atul Asthana. Lots of truth in the last few posts and good thinking.
      What I mean specifically, I will translate it into "my language".
      Quest Q40 which I recently got and really like; it goes into saturation quite often even with medium targets. Directly for the reasons Carl just wrote. It works well on medium and large coins, but it practically does not see small coins.
      And on the other hand I have the ML Vanquish 340 which is superior (even to the Deus 1) on the smallest coins. But it is difficult to recognize some irons with it.
      Atul... I think you mentioned somewhere earlier that you would like to take a closer look at the ML Equinox (or maybe I'm wrong, maybe I got it mixed up)... I think it would be a very good idea to get either the Equinox or the Vanquish
      on one side and some detector like Quest (X5 is a good choice, Q40 is even better but rarer). Because that's where you'll best see in practice the two solutions mentioned here.
      As for the audio codec... the ML X-Terra of the older series (I don't know if this is the case in the newer series) uses exactly the audio codec of the older generation WM8731.
      I used the WM8501(DAC) and WM8738(ADC) audio codec circuits a few years ago for some audio applications.
      The WM8738 (ADC) circuit, although old, impressed me with its performance. (I don't mean what is written on paper, but what I saw in reality.)
      What is a big obstacle for me, as an amateur with limited possibilities, is the interface modes at that chip, which limits the choice of modest processors that I have.
      If you devote a modest processor to the connection with the codec; you don't have many resources left for other jobs (driving an LCD, TFT, scanning a keyboard, etc.)
      Not to mention that there is practically no chance to implement any of the "harder" filters in the code.
      Some time ago we had an extensive debate and various thoughts on the topic of choosing a processor and ADC for a PI detector on another thread.
      In the end, the conclusion is the same; good performance also requires good hardware.
      I have not told you anything new with this!

      Comment


      • #33
        Originally posted by Carl-NC View Post
        The first digitizing detectors placed the ADC after the demods, so that it sampled a baseband signal which had additional gain besides just the preamp. All of the designs I'm aware of used an ADC with an ENOB of 14-16 bits. When you direct sample, you need an ADC with even higher precision because you no longer have the demod and extra gain stage. You can do it with a 12b ADC but you will either lose faint targets or you will overload on both strong and moderate targets. If you want good depth, then you use extra preamp gain and overload on more targets. But that also means you will overload on bad ground. I don't know of a single modern direct sampling design that is not using a 24b ADC.

        Personally, I think it's a good idea to start with the micro's 12b ADC. It's much easier to work with. But don't expect it to do much more than demonstrate feasibility. It's probably not gonna make a good field hunter.
        Yes, this is the reason its called an experimental concept.

        it will not rival the commercial detectors, but I feel, it will be better than the analogue ones.

        With stm32, I csn not go below the noise floor, however, as time passes and better processors become affordable fo hobbyists, I can try out techniques for low noise systems.

        I was also searching for documents on maths and physics of the vlf metal detectors, but couldnt find much in public domain, may be I mssed out on some patents.

        Comment


        • #34
          Originally posted by ivconic View Post
          When I translate some of the statements into my simple practical language from experience with detectors in the field; I can see that most of your points are actually very accurate.
          ...............
          Some time ago we had an extensive debate and various thoughts on the topic of choosing a processor and ADC for a PI detector on another thread.
          In the end, the conclusion is the same; good performance also requires good hardware.
          I have not told you anything new with this!
          My old signal processing notes, 40 years old, tell me that :

          Sampling a 70 dB dynamic range signal with a 24-bit ADC is a massive overkill. It provides no significant advantage in terms of signal accuracy and comes with the cost of increased data size and processing load. A 12-bit or 14-bit ADC is a more appropriate and efficient choice for this application. The focus should be on minimizing noise in the analog front-end rather than increasing the ADC's resolution beyond what is necessary.

          Consequences of Oversampling with High Bit Depth:
          1. Wasted Resolution: You are using far more bits than are needed to represent the signal's dynamic range. The extra bits will essentially represent noise or insignificant variations in the signal.
          2. Increased Data Size: 24-bit samples require significantly more storage space and processing bandwidth than 12-bit or 14-bit samples. This increases memory usage and computational load.
          3. No Improvement in Signal Accuracy: Since the signal's dynamic range is limited to 70 dB, the extra bits from the 24-bit ADC do not provide any additional information about the signal itself. The signal is still limited by the noise floor, which determines the smallest detectable change in the signal.
          ​Thus,
          Sampling a 70 dB dynamic range signal with a 24-bit ADC results in quantization of the signal with significantly more precision than is necessary. You cant improve the quality of the 70 dB signal this way. Here's a breakdown:

          Theoretical Dynamic Range:
          • A 24-bit ADC has a theoretical dynamic range of approximately 6.02 * 24 + 1.76 ≈ 146 dB.
          • Your signal has a dynamic range of only 70 dB.
          ​For a 70 dB dynamic range signal, a 12-bit or 14-bit ADC is sufficient. Using a lower-resolution (than 24 bits) ADC will:
          • Reduce data storage and processing requirements.
          • Simplify the hardware design.
          • Potentially reduce power consumption.
          And these ae some goals of this project.

          Comment


          • #35
            I think I understand the reasoning behind some of your views.
            Keep in mind that 40 years ago you didn't have super low power opamps with super good S/N ratio available.
            Today the situation is different.
            Nowadays you can do much more with 24bit if you have a high end opamp frontend with incredible speed and S/N in front of it.
            You can literally "hear" signals below the noise level.

            Comment


            • #36
              Originally posted by ivconic View Post
              I think I understand the reasoning behind some of your views.
              Keep in mind that 40 years ago you didn't have super low power opamps with super good S/N ratio available.
              Today the situation is different.
              Nowadays you can do much more with 24bit if you have a high end opamp frontend with incredible speed and S/N in front of it.
              You can literally "hear" signals below the noise level.
              Great,
              Next design, will try out.

              Comment


              • #37
                In the meantime if you decide to do something with the blue pill or ESP32... welcome.

                Comment


                • #38
                  Originally posted by Atul Asthana View Post
                  • Your signal has a dynamic range of only 70 dB.
                  I think 70dB is quite low. The preamp signal dynamic range is probably more like 100dB. The max signal (at overload) is 3vpp (defined by the max range of the ADC) and 100dB down from this is 30uvpp. Typical preamp gains in a VLF are 20-50 -- let's call it 30 to make the math easy -- so the minimum signal at the RX coil will be 1uvpp, or 350nv rms. Even with a not-so-great opamp, the input-referred noise of the preamp is likely to be under 100nv rms (assuming a 50Hz NBW) so this is very reasonable. An 18b ADC would work well here, but these tend to be very expensive SAR converters. The 24b CODECs use a much cheaper sigma-delta ADC which never achieves 24 ENOBs but usually 18-20 ENOBs, which is perfect for this application. And they're cheap. That's why all the detector companies are using them.

                  The question with the above analysis is, with a preamp gain of 30, will anything ever create a 3vpp signal at the ADC? The answer is 'yes'; a strong target or very strong ground can do it. How strong depends on the TX field strength and the area-turns of the RX coil. It is a "whole design" concept, and you have to figure out where you want your overload point to be and design the coils, TX, and preamp for this. Personally, I consider a US quarter at 2 inches to be a reasonable overload point. Even then, I've seen ground stronger than that, though it's rare. Once you have determined your overload point, then select the ADC and design the preamp to achieve a minimum resolvable signal level.

                  I'm sure it sounds like I'm trying to talk you out of the 12b approach but I'm not, I think it's the right starting point. I'm just trying to present a clearer picture of what to expect and, eventually, how to deal with it.

                  Comment


                  • #39
                    If I could sum up everything I've learned from Carl, Tinkerer, Moodz, Skippy, Altra... previously on the mentioned PI topic... it would be summarized like this:
                    the minimum speed and resolution of the ADC for an ultra-sensitive direct sampling metal detector depend on several factors, including the operating frequency, the desired sensitivity, and the type of signal processing being performed.
                    To accurately digitize the signal, the Nyquist theorem requires the ADC sampling rate to be at least 2x the highest signal frequency.
                    A practical guideline is to use a sampling rate 4-10x the signal frequency to account for harmonics and enable better filtering.
                    As for the dynamic range; the ADC must capture both small signal variations and large background signals without saturation or loss of detail.
                    For metal detection, small signals (due to weak inductive changes) require high resolution, typically 16-bit to 24-bit ADCs.
                    For low-frequency operation (1-10 kHz), a sampling rate of 50 kSPS to 100 kSPS is sufficient.
                    For higher-frequency operation (over 10kHz... say up to 40kHz), a sampling rate of 500 kSPS to 1 MSPS is recommended.
                    16-bit resolution is sufficient for most applications, offering a dynamic range of ~96 dB.
                    24-bit resolution better for ultra-sensitive detectors, providing ~144 dB dynamic range, essential for resolving sub-threshold signals.
                    A 24-bit ADC might be overkill for most metal detector applications, depending on the design goals and the nature of the signals you are trying to detect.
                    The smallest detectable signal depends on noise level of the front-end amplifier and ADC. (environmental noise EMI, ground mineralization).
                    For most practical designs; well-designed 16-bit system can detect signals as small as a few microvolts when paired with a low-noise amplifier.
                    A 24-bit system will provide better performance, but the improvement depends on whether the overall system noise is below the ADC’s resolution.
                    So... using an internal ADC in the processor (any of the ones mentioned) will not lead to satisfactory results. That has already been tried. Many times before on the forum.
                    I see that you have been a member of the forum since 2005. So you are not "from yesterday". I assume that you missed reading a bunch of papers that have been posted on the forum for a long time.
                    That's why I suggest you start from here (you'll save yourself a lot of time and probably nerves): https://www.geotech1.com/forums/foru...ctive-projects

                    Comment


                    • #40
                      Unlike Carl, I try to talk you out of such ideas and direct you to a choice with a brighter future!
                      The difference between me and Carl (apart from the amount of knowledge on his side) is that Carl is
                      a highly cultured and nice man, while I am a rudimentary savage who usually says what he thinks right away!



                      I wouldn't interfere in this topic and get on your nerves... I'm not doing it out of bad intentions!
                      I was already attracted by the idea of ​​giving new life to today's "obsolete" bluepill modules.
                      I have them, they are unused and I would like them to be given some meaningful purpose.
                      I would be happy to participate in such a project.
                      I would just suggest a better way. Let the "processor" be blue pill, great!

                      Let's consider the widely distributed and accessible bluepill module (I think this is a great idea because literally all forum members will be able to get involved in the project).

                      For ultra-sensitive detection, the ADC must have high resolution, low noise, and compatibility with the STM32.
                      Here are some candidates:

                      1) ADS8860 (Texas Instruments):
                      Resolution: 16-bit.
                      Sampling Rate: Up to 1 MSPS.
                      Interface: SPI (compatible with STM32).
                      Ultra-low noise with high input impedance.

                      2) ADS127L01 (Texas Instruments):
                      Resolution: 24-bit.
                      Sampling Rate: Up to 512 kSPS.
                      Interface: SPI.
                      Low-noise, wide dynamic range, and excellent for DSP applications.

                      3) AD7768-1 (Analog Devices):
                      Resolution: 24-bit.
                      Sampling Rate: Up to 256 kSPS.
                      Interface: SPI.
                      Highly accurate sigma-delta ADC with low power consumption.

                      As for RX frontend:

                      1) OPA1611 (Texas Instruments):
                      Ultra-low noise: 1.1 nV/√Hz.
                      High gain bandwidth: 40 MHz.
                      Ideal for precise low-noise amplification.

                      2) LT1028 (Analog Devices):
                      Noise: 0.9 nV/√Hz.
                      Suitable for low-frequency precision circuits.

                      3) AD8429 (Analog Devices):
                      Instrumentation amplifier.
                      Noise: 1 nV/√Hz.
                      High CMRR, excellent for differential signal amplification from RX coils.

                      Use a combination of active low-pass and band-pass filters with precision capacitors and resistors (1% tolerance) to eliminate unwanted noise and harmonics.
                      ...
                      Use STM32 SPI peripherals to read ADC data. Configure DMA for high-speed continuous data acquisition.
                      Use ultra-low noise linear regulators for the ADC and RX frontend.
                      Keep analog and digital sections isolated.
                      Use a solid ground plane and proper decoupling capacitors (100 nF close to pins).
                      ...
                      I wouldn't suddenly "out of nowhere" start pouring out so many suggestions... but it's an incredible coincidence that these very days I'm thinking of raising my works to a higher level myself... of course with the material I already have or can easily get.
                      With a small difference that I have already decided on ESP32 and not bluepill.
                      But take this with a grain of salt, it's always on a very long stick with me...long shot as the Americans say.
                      I started to come up with a scenario. These days I'm very slow to put together a concept. It will be a very long process. Due to certain private difficulties I am prevented from working faster.
                      But my idea is not limited to use in metal detectors. I'm coming up with a concept that will be modular and universal. I hope that one day it will appear on Aliexpress as an independent product.
                      So these are the real reasons why I suddenly came here full of "advice" and "opinions"! A mere coincidence!
                      I'm sorry if I'm a bother... I won't interfere too much from now on. But I will follow the development very carefully.

                      P.S.
                      The sentences above are just Copy&Paste from my much larger MS Word document that I have been putting together for days.
                      Because without a clear "scenario" this kind of work cannot even be successfully started... let alone finished!

                      Comment


                      • #41
                        great,
                        good information.
                        the more we discuss and share knowledge, the better it is.
                        more knowledge never hurts.

                        I will read up, assimilate the suggestions and recreate this design in some time.

                        Comment


                        • #42
                          КНИГА.pdf --------> https://openl.io

                          Comment


                          • #43
                            I get this feeling that an stm32f103c8t6 @ 72 MHz is not sufficient. A more powerful processor with fpu/dsp should be used !

                            and of course with a very low noise amp and atleast a 16 bit adcat 100ksps or above.

                            Comment


                            • #44
                              In the past I've advocated that folks define the goal of a project before selecting the chips to use. In this case, you've pretty clearly stated this is an exploration project. As such, I don't know why the 32F103 won't work; it's plenty fast, probably has enough flash and RAM, and certainly enough timers for direct sampling. And does single-cycle mult/div. Where do you think it falls short?

                              Comment


                              • #45
                                Originally posted by pustareka View Post
                                [ATTACH]n431987[/ATTACH] --------> https://openl.io
                                Very good!
                                Lot of interesting observations!
                                Thanks for posting!
                                For those who can't manage to translate it easy:


                                Attached Files

                                Comment

                                Working...
                                X