Announcement

Collapse
No announcement yet.

Moodz' Awesome Gold Pulse Induction Version 3 - MAGPI V3 Project

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

  • It is set for 0X27 in the code ... corresponding to 000 address ... so its the T version I think.

    So you need an address of 3F instead of 27

    Click image for larger version  Name:	image.png Views:	0 Size:	9.2 KB ID:	422768

    Click image for larger version

Name:	image.png
Views:	231
Size:	56.8 KB
ID:	422769​​

    Comment


    • Here is a 3F address firmware.

      MAGPI008_2023_06_07_V1.4_RELEASE.X.production_LCD3F.zip

      Comment


      • Originally posted by Altra View Post
        I found that there are two versions of the PCF8574 IC. One is PCF8574A and the other is PCF8574T. If moodz wrote the code for the "A" version, your "T" may not work without changing the address in code.

        See this

        https://alselectro.wordpress.com/201...odule-pcf8574/
        Good call.

        Comment


        • If you want the increased stability and sensitivity as shown in the video of post #338 these are the required hardware changes.

          Click image for larger version  Name:	image.png Views:	0 Size:	1.01 MB ID:	422774​1. REMOVE R6 ( DO NOT FIT )
          2. CHANGE R7 to 100K
          3. REMOVE D6
          4. CHANGE R13 & R14 to 10K
          5. CHANGE C5 & C4 to 1 uF ( FILM CAP )
          6. REMOVE R1 ( DO NOT FIT )
          7. REMOVE D8 ( DO NOT FIT )
          8. CHANGE R20 to 10 MEG ( metal film 1/4 watt )
          9. CHANGE C1 to 1uF ( FILM CAP )
          10. CHANGE C3 to 0.22 uF ( FILM CAP )

          These changes will increase the preamp gain from 100 to 1000 ( from 40 db to 60 db gain ) and baseline stability is greatly improved.

          Now I did say that you would not have to cut a track on the original PCB .... but you may or may not have to.

          So if you make the changes above but the sensitivity is not what it should be ( as in the video of post #338 ) then I will advise the track to modify. Let me know if required.

          I will also be changing U2 .... but waiting for parts to test ... the video demo in #338 uses the LM6171.

          Should work with the 1.4 firmware but will be releasing 1.5 shortly when I get the U2 part.

          Comment


          • WHOOPS ... one additional change I need to include.

            We deleted R6 .... but you must add back in R12 ( see schematic in post #1 and PCB in post #2 )
            I have use 470 ohms. ( Metal film 1% )

            Click image for larger version  Name:	image.png Views:	0 Size:	18.3 KB ID:	422776

            so the change instructions are now ..

            ​1. REMOVE R6 ( DO NOT FIT )
            2. CHANGE R7 to 100K
            3. REMOVE D6
            4. CHANGE R13 & R14 to 10K
            5. CHANGE C5 & C4 to 1 uF ( FILM CAP )
            6. REMOVE R1 ( DO NOT FIT )
            7. REMOVE D8 ( DO NOT FIT )
            8. CHANGE R20 to 10 MEG ( metal film 1/4 watt )
            9. CHANGE C1 to 1uF ( FILM CAP )
            10. CHANGE C3 to 0.22 uF ( FILM CAP )
            11. ADD R12 470 ohms.​

            Comment


            • Thank-you Altra for the great I2C info and Moodz for the updated design

              Turns out my confusion was caused by the labeling of the ICSP header to say it was for the LCD . It is the J1 header, labelled SERIAL/ROT ENC, that supplies SDA and SCL to the LCD. I looked through the code to determine the reality.

              ISCP header J2 should be PROG/ENCODER
              1 - MCLR
              2 - VL
              3 - GND
              4 - PGC (PIC pin 5)
              5 - PGD/ENCODER PUSHBUTTON (PIC RB1, pin 5)
              6 - ENCODER A (PIC RB2, pin 6)
              7 - ENCODER B (PIC RB3, pin 7)

              LCD header J1 :
              1 - GND
              2 - SDA (LCD data/TXD, PIC RB9, pin 18 )
              3 - SCL (LCD clock/RXD, PIC RB8, pin 17)
              4 - KEY (PIC RB7 pin 16) ?????????
              5 - VL

              The LCD is working now thanks for your all your help.

              Now planning the build and acquiring parts for the updated design.

              Moodz is there a new software version to supercede v1.4 ?

              Thanks guys

              Comment


              • Originally posted by Gunghouk View Post
                Thank-you Altra for the great I2C info and Moodz for the updated design

                Turns out my confusion was caused by the labeling of the ICSP header to say it was for the LCD . It is the J1 header, labelled SERIAL/ROT ENC, that supplies SDA and SCL to the LCD. I looked through the code to determine the reality.

                ISCP header J2 should be PROG/ENCODER
                1 - MCLR
                2 - VL
                3 - GND
                4 - PGC (PIC pin 5)
                5 - PGD/ENCODER PUSHBUTTON (PIC RB1, pin 5)
                6 - ENCODER A (PIC RB2, pin 6)
                7 - ENCODER B (PIC RB3, pin 7)

                LCD header J1 :
                1 - GND
                2 - SDA (LCD data/TXD, PIC RB9, pin 18 )
                3 - SCL (LCD clock/RXD, PIC RB8, pin 17)
                4 - KEY (PIC RB7 pin 16) ?????????
                5 - VL

                The LCD is working now thanks for your all your help.

                Now planning the build and acquiring parts for the updated design.

                Moodz is there a new software version to supercede v1.4 ?

                Thanks guys
                I will be updating the 1.5 software but my parts order wont be here till April 19 apparently. I will post an intermediate update in the next few days if I get onto it.
                I need to find some time for field testing also .... theres always a chance it only works well in the lab.
                It was the original intention of the code to check the LCD port to see if there was an LCD there then revert to serial if nothing found in the initialisation.

                Comment


                • Sorry Moodz just saw your comments viz V1.5 software. What op amps are you considering as a replacement for the LM6171 and what are the reasons for the change?
                  Thanks

                  Comment


                  • Oh and the encoder is working too

                    Comment


                    • Originally posted by Gunghouk View Post
                      Sorry Moodz just saw your comments viz V1.5 software. What op amps are you considering as a replacement for the LM6171 and what are the reasons for the change?
                      Thanks
                      Its a long story ... but the short version goes like this .... I came to realise that there is no requirement for a DC to daylight ( well about 1 MHZ ) preamp in the front end of pulse induction metal detectors.
                      All the target information can be obtained starting from the TX fundamental frequency upto the 11th Harmonic or so. ( modulation theory )
                      So if your PI is transmitting at a pulse rate of 14 Khz approx ( like the MAGPI ) then a bandpass amplifier of say 10Khz to 150 Khz is perfectly adequate for the preamp.
                      If the roll off of your bandpass is sufficient then this cuts out all the 1/f amp noise / mains noise / earth field etc etc below 1 Khz.
                      The MAGPI requires an inverting preamp ( for the damping control loop ) BUT if you have high gain the GBW spec of the opamp will catch you out as the higher the gain the lower the frequency response.
                      So you need an amplifier that has low noise above say 1 - 10 Khz but a high GBW. This is one of the reasons that I chose the LM6171. ( GBW about 100 Mhz )

                      Because we are limiting the bandwidth of the amplifier ( particularly at low frequencies ) we can now apply much higher gains than you might use in conventional PI preamps ( typically 100 or so for the first amp in alot of PIs).
                      The MAGPI started with a gain of 100. Currently it is 1000 and I have even tested at 10,000 ( 80 db ) and it did not overload ... but the GBW suffered even on the LM61​71.

                      So I have ordered some 1 Ghz GBW amps LT1226 2.2 nv root hz noise and this will be the proof of the pudding. ( hopefully no cct change ).

                      The other really big gotcha which everyone seems to have missed is right there in the spec sheet for opamps. Everyone focuses on the noise figure .... with PIs there the TX cycle causes overloading ( voltage transients at the input to the inputs of the opamp in the preamp ). There is a spec called the maximum differential voltage input. For the NE5534 it is 0.6 volts ... which means that transients will cause currents to start flowing at the opamp inputs as the input protection kicks in. This overloads the amp and then it has to recover .. the waveform is distorted and intermodulation occurs. So much for the noise figure. This is particularly important because we are sampling so close to the flyback now.

                      The LM6171 and LT1226 have relatively high figures for differential input voltage and so can resist transient distortion currents at thier inputs during overload.

                      The selection criteria for opamps for PI use should be ...

                      1. max diff voltage at input spec.
                      2. GBW ( at least 100 Mhz )
                      3. Noise above 1 Khz

                      I am sure everyone will have their own opinion but that is mine ...​

                      Here is my AC model for the PI preamp.
                      The gain is set by R6 / R7
                      The low pass cutoff by C3
                      The high pass cutoff is set by GBW / gain
                      C4 compensates for opamp input capacitance ( normally only a few puff ) which will form a pole with R6.
                      It totally blocks DC

                      This configuration prevents the negative feedback elements of a conventional inverting amp from messing with the input impedance ( esp in overload )

                      The MAGPI has a demodulator switch to break the feedback R6 from the output during TX cycles this so that TX modulation ( overloads the amp ) will not be "remembered" by the filter cap in the feedback path.

                      ​​​

                      Comment


                      • Thanks for the explanation. Unfortunately the model didn't appear in your post.

                        I think I'll try and play with a 128x128 oled over I2C just for kicks

                        Comment


                        • Originally posted by Gunghouk View Post
                          Thanks for the explanation. Unfortunately the model didn't appear in your post.
                          Its the pesky PNG files again. Here is the PI preamp model ... again.

                          Click image for larger version  Name:	image.png Views:	0 Size:	11.4 KB ID:	422794

                          Comment


                          • Here's one I prepared earlier, figured this might be of use to someone

                            Click image for larger version  Name:	MAGPI V3 Silkscreen.jpg Views:	0 Size:	645.5 KB ID:	422798
                            Attached Files

                            Comment


                            • Good work ... I better let you know about which track might require cutting in the updated version of V3.

                              The main TX supply is 5 volts ... this supply also powers the front end opamps and the DG411 switch.

                              In some conditions ( sample settings etc ) the 5 volts is not high enough ( as the op amps are not rail to rail ).
                              So the 5 volt analogue supply to the frontend (not the TX ) needs to be re-routed to battery voltage VBATT.
                              This involves cutting a track and jumpering the opamp supply to battery volts. ( input to LM7805 regulator ).

                              There is a pink circle over the track to cut.

                              Note this is a last resort ... dont do it if the detector is working ok.

                              Click image for larger version  Name:	cut track.png Views:	0 Size:	1.07 MB ID:	422836

                              Comment


                              • Thanks Moodz, can you explain the reason for the higher TX frequency compared to the lower found in other PI designs (typically < 2kHz)?

                                Comment

                                Working...
                                X