Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Let's make a closely MXT like detector!

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

  • #76
    Originally posted by moodz View Post

    I have "trained" claude code as a metal detector expert engineer ... eye popping coding performance but reading schematics or making them is still a way to go. However it can produce these block diagrams in about 30 seconds .. I just tell it to go back and check the schematic again. If someone can dump the firmware from the PIC of an MXT I will show you something else it can do
    Updated block diagram below.
    [/ATTACH]​
    I see, kool, wonder if claude would be so kind as to gen those diagrams in LibreOffice Draw format? Then they could be edited...and maybe start a KiCAD project from the schematic?...then we'd be on a start toward a PCB...meanwhile...I have some fun tools on order (probably 10 days out)(and a little code to write) and my PIC can't wait to reveal it's secrets

    Comment


    • #77
      Originally posted by Carl-NC View Post

      Going on memory here... as I recall it was mostly the GB code that had fudge factors, with comments like "this makes it work, not sure why." The MXT (and GMT) ground tracking was the best of its day, and is still probably one of the best out there. David told me that the Lobo ST tracking (which he designed before the MXT) was much simpler and worked almost as well, but he wrote all-new code for White's to avoid disclosure violations. Conceptually ground tracking isn't difficult but the devil is in the desire to not track out targets.
      ​I used to swing the Tesoro Lobo SuperTraq before the MXT, it was great detector also and I regret selling it. Happen to remember what micro it ran? Happen to know if anyone bought Tesoro's IP?


      Originally posted by Carl-NC View Post

      Here is the section in ITMD3 on non-quadrature demodulation:

      When you lower the coil to hot ground, the X channel sees a big signal but the R (or G) channel does not because they should be ground balanced. Therefore you are limited by ground as to how much gain the X channel can have, but the R channel can be boosted more. You'll see this done in designs by White's, Garrett, and Fisher, probably others. Typically the R channel has 8x the gain and then the X channel data is shifted 3 bits in code to get back to a vector circle. Or, leave the gains alone and do the phase math on a vector ellipse (harder).
      My ITMD3 is supposed to arrive today, can't wait!...fascinating, interesting, and even though it affects low conductivity non-ferrous targets also - the MXT is still good on reasonably small gold...more code magic perhaps...

      Comment


      • #78
        Hi KRinAZ, can you tell us what your "fun tools" are? I have an old cnc machine controller that uses a pic18f. The company that made the controller has been out of business for at least 15 years. I would like to build a back up controller if I can dump the hex. Thanks

        Comment


        • #79
          Originally posted by Carl-NC View Post

          I should clarify that the transition from the MXT to the MX5 was initially limited to changing the micro from PIC8 to STM32...
          I get the feeling I'm the only one fretting over logic levels in the switch from PIC to STM32 - (5v logic to 3.3v logic) - in this project - am I worrying over nothin'?

          [QUOTE=Carl-NC;n447141]

          Comment


          • #80
            Originally posted by KRinAZ View Post
            I get the feeling I'm the only one fretting over logic levels in the switch from PIC to STM32 - (5v logic to 3.3v logic) - in this project - am I worrying over nothin'?
            Pretty much. The 74HCT4053 demod switches will happily run on 3V logic. Where you might need 5V (say, the display) you can use open-collector GPIOs with 5V pull-up resistors. Most STM GPIOs are 5V tolerant.

            Comment


            • #81
              Originally posted by KRinAZ View Post
              ​I used to swing the Tesoro Lobo SuperTraq before the MXT, it was great detector also and I regret selling it. Happen to remember what micro it ran? Happen to know if anyone bought Tesoro's IP?
              I'm sure it was an 8-bit PIC, I think that's all they ever used. Don't know exactly which one and I sold my LST. No, Tesoro just shut down. Someone bought out their stock but I don't think it included IP.

              Comment


              • #82
                Originally posted by Carl-NC View Post

                Pretty much. The 74HCT4053 demod switches will happily run on 3V logic. Where you might need 5V (say, the display) you can use open-collector GPIOs with 5V pull-up resistors. Most STM GPIOs are 5V tolerant.
                Ok very good, works for me...

                Comment


                • #83
                  Originally posted by Carl-NC View Post

                  I'm sure it was an 8-bit PIC, I think that's all they ever used. Don't know exactly which one and I sold my LST. No, Tesoro just shut down. Someone bought out their stock but I don't think it included IP.
                  Ok thx, I'm going to try to find an affordable Tesolo LST and it's PIC as well then...I'm sure that code would be useful as well...

                  Comment


                  • #84
                    Originally posted by Altra View Post
                    Hi KRinAZ, can you tell us what your "fun tools" are? I have an old cnc machine controller that uses a pic18f. The company that made the controller has been out of business for at least 15 years. I would like to build a back up controller if I can dump the hex. Thanks
                    Hey sure Altra - I can understand wanting to get a backup of that code!

                    Coming:

                    First off a Pro2X dock for one of my Dell laptops - so that I have a real 18650 based RS-232 port available.

                    Second an old PICSTART Plus PIC programmer, and an old PICSTART-16B PIC programmer - both DOS only based, both actual Microchip products, so old they aren't supported in the MPLab IDE (I'm told). I don't have the software (it's DOS software on floppy disk) and don't think I need it, but if anyone has this software I would really like a copy. I still have floppy drives to read the disks if needed. Pretty sure it (the software) won't allow pulling the code, but could be used to program PICs once the binary code is available. But I can use part of the programmers to:

                    Click image for larger version  Name:	image.jpg Views:	0 Size:	183.2 KB ID:	447170
                    Click image for larger version  Name:	image.jpg Views:	0 Size:	227.7 KB ID:	447171

                    Have:

                    Third is what's in my head - a very long time ago when I was in the US service (branch undisclosed) we used to (among other things) hack the code from certain military products from less than friendly nations (no further discussions on that will be entertained), and I intend to write some code - and to use part of the PICSTART programmers circuit, and the wonderful ZIF socket they have, to in effect get (or more properly recreate) the code from the PIC.

                    AI will not be involved here, as I will never allow AI to train on what I have in mind.

                    But assuming I'm successful I will make sure you know that yours can be backed up also.

                    EDIT - some CNC machines use controllers very similar to after market (upgrade) 3D printer controllers - as both do similar things - and there is a robust community of Open Source software (Marlin the best/most popular & robust) - where you could very well improve on what you have now - including higher quality stepper drivers, higher resolution code, etc. They usually have a STM32Fxxx or higher micro and aren't code protected - so you can update firmware at will. Watch out for boards with poor quality CN clone mosfets though, and watch out for boards with the very poor CN clone of the STM32 by GD - it would be called something like GDM32Fxxx - no good!

                    I have two 3D printers and compiled my own code for them, they've been running without a hitch for 3 years now.

                    You want TMC222x mosfet stepper drivers (the good stuff) not the HR49xx (the bad clone stuff), and the Marlin open source software source (must be configured and compiled) exceeds the capabilities of many of the 3D printer manufacturers - that's why I created my own code from the Marlin sources.​

                    CNC folks run it also...we're off topic now aren't we haha...
                    Last edited by KRinAZ; 04-18-2026, 07:36 AM.

                    Comment


                    • #85
                      Does anyone know (Carl ) if the PIC's 4 Product ID bytes (for the PIC16C76 would be 0x2000-0x2003) were ever used when programming the PIC? or if any sort of identification information was stored? would be just above program code memory, and perhaps that the code could have referred to?

                      Also the reserved locations just above program memory (for the PIC16C76 would be 0x2004-0x2006) shouldn't have been used for anything, but were they?

                      And then the config location (for the PIC16C76 would be 0x2007) certainly should have been set - yes?

                      Thank you.

                      Comment


                      • #86
                        Looks like old school fun. Some of the techniques destroy the original, so it is a one shot deal. Hopefully you will find a nondestructive method. I wish you success.

                        Comment


                        • #87
                          Originally posted by Altra View Post
                          Looks like old school fun. Some of the techniques destroy the original, so it is a one shot deal. Hopefully you will find a nondestructive method. I wish you success.
                          Yes it does...thanks for that tip - I plan to experiment on some test chips first and get things working, I also hope I have a non- destructive success haha. May take a couple weeks or month but I'll post my results.

                          Comment


                          • #88
                            Originally posted by KRinAZ View Post

                            I see, kool, wonder if claude would be so kind as to gen those diagrams in LibreOffice Draw format? Then they could be edited...and maybe start a KiCAD project from the schematic?...then we'd be on a start toward a PCB...meanwhile...I have some fun tools on order (probably 10 days out)(and a little code to write) and my PIC can't wait to reveal it's secrets
                            hereyago :
                            Attached Files

                            Comment


                            • #89
                              Originally posted by moodz View Post

                              hereyago :
                              Kool, many thx, opened just fine. Time to start versioning, I usually just add -V1, -V1a, etc., to the end of the filename...

                              Comment


                              • #90
                                OK I made a list of active components (and thermistors) and checked for availability, just a text list (no spreadsheet). Based on a quick (certainly not exhaustive) check (don't shoot the messenger!) we've got some problems to resolve - most of the transistors are not available and, oh no, some are in the transmitter section, critical receiver op amps are not available, and also many components like resistors and capacitors have no indicated value...

                                U1 LP2951 10ma 30v LDO Voltage Regulator avail Mouser DigiKey
                                U2 TLE2426 Voltage Reference avail DigiKey
                                U3 PIC16C76 Microprocessor avail Mouser DigiKey ... hehe, like we totally want to use these
                                U4 74HCT4053 MUX avail Mouser DigiKey
                                U5 ADS8320 ADC AVAIL SMT ONLY Mouser DigiKey
                                U6 74HC4351 MUX avail Mouser
                                U7 TLC2262 Op Amp avail Mouser DigiKey
                                U8 LTC1446 DAC avail Mouser DigiKey
                                U9 TLC555 Timer avail Mouser DigiKey
                                U10 TLC372 Dual Comparator avail Mouser DigiKey
                                U11 MC33077 Dual Op Amp NOT avail Mouser DigiKey Obsolete
                                U12 MC33178 Dual Op Amp AVAIL SMT ONLY Mouser DigiKey
                                U13 TLC2262 see above
                                U14 TLC2262 see above
                                U15 NOT FOUND, DISPLAY POD?

                                Q1 FMMT5087 Not Available
                                Q2 FMMT4403 Not Available
                                Q3 FMMT4403 Not Available
                                Q4 ZTX749 PNP BJT avail Mouser DigiKey
                                Q5 2N4401 NPN BJT avail Mouser DigiKey
                                Q6 FMMT5087 Not Available
                                Q7 BCB49 Not Available

                                D1 IN4148 will be available to the end of time, wonder how many billions of these are made each year?...
                                D2 IN4148
                                D3 IN4148
                                D4 N/A
                                D5 IN4148
                                D6 N/A
                                D7 IN4148

                                TH1 10K NTC avail Mouser DigiKey
                                TH2 NO LOAD NTC ?

                                X1 8mhz

                                Questions:
                                Potentiometers all linear?
                                Quite a few components e.g. resistors, capacitors, inductors, thermistor - have no indicated value and instead say No Load​ - not sure what to make of that?

                                Comment

                                Working...
                                X