Announcement

Collapse
No announcement yet.

My design finally works!

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

  • My design finally works!

    Hi everyone,

    I would like to share the progress I’ve made on my metal detector project so far. The analog front-end is largely the same as the VLF DISC design of the ITMD3, but there is a strong digital electronics component. The adaptation to the TX frequency, demodulator clock generation, tone generation, parameter settings, and data acquisition (12-bit resolution) are all managed by an STM32F303K8 running at 64 MHz. It uses a Nokta IM28 coil.

    As you can see, everything is still on a breadboard, but it works quite well. The noise on the demodulator lines is ±25 mV—which I know is a lot—but it's a good starting point. Please take a look at the attached XY chart. It shows the signal produced by different targets when lowered near the coil.

    Detection starts at about 18 cm for a ring and 25 cm for a large coin. The SSD1306 OLED display caused a vertical line, ferrite produced a line in the top-right quadrant, and a screwdriver tip created a loop—very interesting, but more importantly, very distinguishable! I didn’t think it would be this easy to discriminate between different targets.

    The output audio tone, however, turned out terribly—I initially thought my approach would help with discrimination, but it didn’t. I plan to implement a tone that changes based on the slope of the received signals.

    All STM32 programming was done using Keil IDE with direct register manipulation for timers, GPIO, ADC, etc. There’s a lot of optimization to be done, but I’ll get there step by step. I plan to design a PCB that includes everything except the microcontroller so that different ones can be used as needed, making modifications easier.

    I know there's still a lot to explain and much more to do, but since today I heard a tone from it for the first time, I just couldn't contain my excitement! If you have any questions, I’ll be more than happy to answer.

    In the meantime, I plan to upload everything to a GitHub repository so the material will be accessible to everyone—but it will take a few days.

    All updates and tests will be posted in this thread. I hope you’ll find them useful!
    A Personal Note


    In 2012, when I was 15, I became interested in metal detectors. I was also fascinated by electronics, so I searched online for schematics. I found a BFO, BJT-based schematic—which I clearly didn’t understand at the time—and tried to build it. My father drove me 80 km to a city where they sold copper wire for windings (since no one in my town had it), and I built my first monocoil.

    Of course, it never worked, but I still have the coil and some spare wire.

    Years passed—I graduated from technical high school, enrolled in university for electronic engineering, found a job as a high school teacher, graduated, and am now pursuing my master's degree. Through all of this, I had many happy and difficult (very difficult) moments, but one thing remained constant: my desire to build a metal detector.

    It wasn’t until last year that I bought an ITMD2 and finally understood how it worked.

    Since then, I’ve experimented with coils, IB, oscillators, and RX amplifiers. After more than a year of prototyping—and 13 years of wondering how a metal detector works—today, I have my first working prototype. I can’t put into words how I felt when I finally heard that buzzing sound. I nearly had tears in my eyes.

    This was all possible thanks to all of you, and especially Mr. Moreland, for helping me reach this milestone—though this is just the beginning.

    Thank you, everyone!
    Attached Files

  • #2
    Well done ... your results look perfect. There is still lots to discover out there ( inside and outside the detector LOL ).

    Comment


    • #3
      Excellent! Your breadboarding is a work of art, easy to follow & troubleshoot. Unlike what Bob Pease used to make.
      Click image for larger version

Name:	image.png
Views:	147
Size:	1.01 MB
ID:	435883

      Comment


      • #4
        Thank you very much!
        The breadboard tidyness is a must for me, otherwise fixing bugs or changing components would be impossible. Next things to do:

        1. Generate a decent audio tone;
        2. Test on ground. I am afraid the ground signal might saturate some amp stage or the demodulators, so maybe I will need to tweak some gains;
        3. Use the STM32 DAC to give signals some offset that is now implemented using potentiometers, making everithing settable by the encoder.

        The encoder can now only change the phase of the demodulator clock in order to implement ground balance.

        Updates will follow!

        Comment


        • #5
          In the meantime, here's the schematic. Each block is described
          Attached Files

          Comment


          • #6
            Very nice work. The breadboard layout is superb.

            Image.jpg would make for a nice youtube channel banner.

            Bob P may have escaped from a lunatic asylum. Sorry Bob.

            Comment


            • #7
              Thank you, although I have posted no image called image.jpg, the system might have renamed them.
              But I guess you are refering to the one with the scope in XY mode?

              Might even do some video and post them... who knows how it works out

              Thanks again!

              Comment


              • #8
                Click image for larger version

Name:	image.png
Views:	110
Size:	1.08 MB
ID:	435901

                Comment


                • #9
                  Originally posted by pito View Post
                  Click image for larger version  Name:	image.png Views:	0 Size:	1.08 MB ID:	435901
                  What does this have to do with this man's project?

                  Comment


                  • #10
                    less complicated

                    Comment


                    • #11
                      Originally posted by Pep_T View Post
                      Thank you, although I have posted no image called image.jpg, the system might have renamed them.
                      But I guess you are refering to the one with the scope in XY mode?

                      Might even do some video and post them... who knows how it works out

                      Thanks again!
                      I mean't Analog.jpg

                      This picture gives a good idea for a youtube channel called "Breadboard circuits" where breadboard layouts are pictured for a whole range of popular circuits for experimenters and those learning electronics. But I imagine this has already been done.
                      Your layout is a really nice example.

                      Comment


                      • #12
                        Originally posted by pito View Post
                        less complicated
                        MCP4725 together with AMS1117 please explain how it works.

                        Comment


                        • #13
                          Hi,
                          While it may look simpler to some extent, did you try to implement it phisically? I also started with a vert simple schematic that got complicated because of all the problem I found on the road.
                          To be fair, it is still getting more messy as more functions are implemented, that is part of the game

                          Comment


                          • #14
                            Originally posted by Carl-NC View Post
                            Excellent! Your breadboarding is a work of art, easy to follow & troubleshoot. Unlike what Bob Pease used to make.
                            Click image for larger version

Name:	image.png
Views:	147
Size:	1.01 MB
ID:	435883
                            Having followed BP for years and done much "airware" circuitry myself I can tell you that what looks neat to the human eye is often suboptimal when it comes to critical systems with subtle capacitances and inductances etc.
                            Especially if you are researching new ideas ( for instance the invention of "feedback" in amplifiers and oscillators )

                            PCBs were only invented for fast manufacture .. not performance. ( see history ).

                            Comment


                            • #15
                              Originally posted by dbanner View Post

                              MCP4725 together with AMS1117 please explain how it works.
                              = Adjustable Voltage Regulator


                              Click image for larger version

Name:	reg.png
Views:	62
Size:	62.9 KB
ID:	435943

                              Comment

                              Working...
                              X