Announcement

Collapse
No announcement yet.

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

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

  • #61
    Originally posted by moodz View Post

    Regarding the display ... the notes indicate the backlight runs fine of 3.3 volts .. The serial to parallel converter module will run down to 2.5 volts so my guess is that 3.3 volts to the LCD logic just sneaks in.

    The Alibaba add confirms it ( not that Alibaba is an oracle )

    3 or 5 volts supply.

    6 Dollars ...

    3.3V 5V 2004 204 20x4 Character LCD Display Module 2004 LCD Monitor Module Yellow Blue Blacklight for Arduino Printer 3 D


    Description:

    1. The module is a low-power consumption character LCD Module with a built-in controller.
    2. The module can be easily interfaced with a MCU.
    3. Display Format: 20 Characters x 4 lines.
    4. It is fantastic for Arduino based project.
    5. Supply voltage: 3.3V / 5V.
    6. Fully assembled and tested Serial LCD 20x4 Module.
    7. Yellow / Blue backlight.
    8. Analog Interface.
    9. Size: 98 x 60 x 12mm.

    ​moodz
    Thanks Moodz,
    I couldnt find this display so glad that it exists and will layout one of the headers to match...cheers

    Comment


    • #62
      Originally posted by moodz View Post

      That board that was just built up on the CRO with a minelab 10inch mono ...

      Zener installed ( stored trace green ) and Zener uninstalled ( live trace blue ) overlayed ...
      Click image for larger version

Name:	IMG20230223170444.jpg
Views:	870
Size:	447.3 KB
ID:	410017

      ... I dont think I can resolve a meaningful difference ???

      The pink pulse is the X sample pulse from the CPU ... ( bit of ringing there .. but no biggie ... the hyst on DG411 is not bothered. )

      moodz
      OK so looking at the output without the zener I gather we should leave the zener diconnected would you agree..?

      Comment


      • #63
        Originally posted by Dean Sarelius View Post

        OK so looking at the output without the zener I gather we should leave the zener diconnected would you agree..?
        Sorry Dean .. my explanation was not clear ... the yellow trace is the TX control ... the pink trace is the X sample ... the blue green trace is the Zener fitted / not fitted trace exactly on top of each other .. the zener has no impact on the ouput.

        The zener has no impact on the output.

        However if people dont want to fit it ... OK. Its more of a safety feature for those who might be probing around on the board whilst it is operating.

        moodz.

        Comment


        • #64
          Originally posted by moodz View Post
          ... Its more of a safety feature for those who might be probing around on the board whilst it is operating...
          Yeh, I once killed a VHMS3 digital board that way!! Luckily, Eric Foster had a spare and sent it to me.

          Comment


          • #65
            Originally posted by Dean Sarelius View Post

            Ok will take a closer look at the source code although normally a rotary transition should be used to generate an interupt either from A or B and the routine will read the state of the other pin to determine the direction.
            Still trying to think how direction would work with only A as the input signal and have a hunch it may have somthing to do with what is happenning on the common pin.
            Click image for larger version

Name:	image.png
Views:	816
Size:	11.9 KB
ID:	410022
            Hi Dean ... yes I had a look at the rotary wiring and you are right I have wired the C ( common ) to the B switch Good Pickup !
            So I changed the wiring to AB and C to common and its still works OK ... so I guess the code and the wiring is foolproof by accident.

            I have never used interrupts for rotary encoders ...if you have some other more critical loop task ( like the TX interrupts ) then if the loop is fast enough to sample you get a rotary encoder or multiple REs with very little code overhead plus free debounce.

            The less interrupts the better I always say.

            moodz.

            Comment


            • #66
              ... here is the latest build .. that was featured earlier. I have selected cheap but sturdy plastic enclosure and flashed the interior with copper tape.

              A ground has been soldered to the tape and check with multimeter < 1 ohm everywhere.

              This shields the front end of the detector from stray capacitance that may be to hand ( like your hand for instance ... LOL ).

              Any stray capacitance will affect the LC product of the coil and will result in false target / or noisy operation.

              You can test a unit on the bench but will notice that the unshielded front end is sensitive in the vicinity.

              This unit is yours IBGold ... just wiring in the rotary encoder so you have volume control.

              It wont have the LCD fitted .....

              moodz

              Click image for larger version  Name:	IMG20230224134736.jpg Views:	0 Size:	447.0 KB ID:	410051

              Comment


              • #67
                Paul you again astound me you have taken all the work out of it I have the shaft battery pack Li-Ion ready to go.

                Regards, Ian.

                Comment


                • #68
                  Originally posted by IBGold View Post
                  Paul you again astound me you have taken all the work out of it I have the shaft battery pack Li-Ion ready to go.

                  Regards, Ian.
                  Thanks Ian .. I just took it out for a test swing ... seems to be OK ... I am not sending the shafts .. just illustrating how I mount them.

                  2 x 20mm conduit clamps - as you can see no expense spared LOL. You will have to open the electronics case ( carefully ) to remount them.

                  moodz

                  Click image for larger version

Name:	IMG20230224162720.jpg
Views:	831
Size:	667.2 KB
ID:	410054

                  Comment


                  • #69
                    Hi Paul no problems I have my own mounting system all organised cheers will send you pictures when set up.

                    Regards, Ian.

                    Comment


                    • #70
                      Originally posted by moodz View Post

                      Hi Dean ... yes I had a look at the rotary wiring and you are right I have wired the C ( common ) to the B switch Good Pickup !
                      So I changed the wiring to AB and C to common and its still works OK ... so I guess the code and the wiring is foolproof by accident.

                      I have never used interrupts for rotary encoders ...if you have some other more critical loop task ( like the TX interrupts ) then if the loop is fast enough to sample you get a rotary encoder or multiple REs with very little code overhead plus free debounce.

                      The less interrupts the better I always say.

                      moodz.
                      Hi Moodz,
                      Thats great that it still works so assume the mapping is A=AN4, B = AN2, C = AN5 and the Switch = AN3...?
                      Some interupts are good some are bad of course but I guess if you are going to use the encoder to adjust some values you kind of accept that there may be some interuptions to the regular operation.
                      I wrote an interupt routine in assembler for the AVR with the Alps PEC16 encoder it was only a few lines of code and would exit within a few clock ticks.
                      By the way have almost completed the schematic.
                      Having built some model aeroplanes I would like to power with 11.4V lithium packs as I have a charger for these also.
                      When these battery packs get low they will reach around 9V so am thinking to replace the -9V regulator with a -8V or lower reg also any thoughts..?
                      Have already replaced D4, D5,D6 and D7 with a schottky bridge rectifier KMB12S or CDBHM120L-G both provide around 0.45 Vdrop at 100mA which should help with the lower supply voltage also.

                      Comment


                      • #71
                        Originally posted by Dean Sarelius View Post

                        Hi Moodz,
                        Thats great that it still works so assume the mapping is A=AN4, B = AN2, C = AN5 and the Switch = AN3...?
                        Some interupts are good some are bad of course but I guess if you are going to use the encoder to adjust some values you kind of accept that there may be some interuptions to the regular operation.
                        I wrote an interupt routine in assembler for the AVR with the Alps PEC16 encoder it was only a few lines of code and would exit within a few clock ticks.
                        By the way have almost completed the schematic.
                        Having built some model aeroplanes I would like to power with 11.4V lithium packs as I have a charger for these also.
                        When these battery packs get low they will reach around 9V so am thinking to replace the -9V regulator with a -8V or lower reg also any thoughts..?
                        Have already replaced D4, D5,D6 and D7 with a schottky bridge rectifier KMB12S or CDBHM120L-G both provide around 0.45 Vdrop at 100mA which should help with the lower supply voltage also.
                        Hi Moodz,
                        I just noticed that you made a second revision of the circuit where you used a voltage doubler to assist with the lower battery voltages. I will remove the schottky bridge and replace with discrete schottky diodes.
                        Regarding the mapping for the encoder have set up as below.
                        ​​Click image for larger version

Name:	image.png
Views:	648
Size:	45.4 KB
ID:	410108

                        Comment


                        • #72
                          Originally posted by Dean Sarelius View Post

                          Hi Moodz,
                          I just noticed that you made a second revision of the circuit where you used a voltage doubler to assist with the lower battery voltages. I will remove the schottky bridge and replace with discrete schottky diodes.
                          Regarding the mapping for the encoder have set up as below.
                          ​​Click image for larger version

Name:	image.png
Views:	648
Size:	45.4 KB
ID:	410108
                          Hi Dean
                          The revision is so the detector will run OK from 2S Lithium Packs ( 2 x 3.7 volts ).
                          The schottky diodes dont really matter as the 5 volt linear regulator will run out of volts input before the voltage multiplier does on low battery.
                          Changing the -9 volt regulator to -8 volts may or may not be problematic as the -9 volt rail is required for the damping control loop.
                          The op amps are not rail to rail so you have to have enough headroom in that voltage rail to generate adequate bias for the damping loop - I have not tested at -8 volts.
                          Note that where the rotary encoder attaches is also the programming header on the original schematic.
                          moodz

                          Comment


                          • #73
                            Hi Moodz,
                            Thanks for the feedback.
                            Are you ok if I go ahead and re-map the GPIO's in your source code..?
                            I have been trying to simulate your circuit on Multism but I dont think I have the timing right and I note in a previous thread the timing may have changed from 30us to 40us..?
                            Reffering to your code pasted below the period is 60us and TX is on for half or 30us or 50% duty cycle.
                            When TX is off the damping loop is still active and will stop 1.7us later then commence again 1.6us after the end of the 1.7us..?
                            Sample and hold S2 and S3 will start after the 1.6us has expired and sample for 15us each..?
                            The reason I would like to get the simulation to work is because I am thinking of adding a buffer before the S&H switches.
                            In my experience when trying to charge up the caps straight from a high gain op-amp there is typically a dip in the signal, I am sure you have seen this also.
                            So in order to minimise corruption of the signal a buffer should be used to provide the charge to the S&H caps.

                            Click image for larger version

Name:	image.png
Views:	908
Size:	61.9 KB
ID:	410113

                            Comment


                            • #74
                              Originally posted by Dean Sarelius View Post
                              Hi Moodz,
                              Thanks for the feedback.
                              Are you ok if I go ahead and re-map the GPIO's in your source code..?
                              I have been trying to simulate your circuit on Multism but I dont think I have the timing right and I note in a previous thread the timing may have changed from 30us to 40us..?
                              Reffering to your code pasted below the period is 60us and TX is on for half or 30us or 50% duty cycle.
                              When TX is off the damping loop is still active and will stop 1.7us later then commence again 1.6us after the end of the 1.7us..?
                              Sample and hold S2 and S3 will start after the 1.6us has expired and sample for 15us each..?
                              The reason I would like to get the simulation to work is because I am thinking of adding a buffer before the S&H switches.
                              In my experience when trying to charge up the caps straight from a high gain op-amp there is typically a dip in the signal, I am sure you have seen this also.
                              So in order to minimise corruption of the signal a buffer should be used to provide the charge to the S&H caps.

                              Click image for larger version  Name:	image.png Views:	0 Size:	61.9 KB ID:	410113
                              Hi Dean ...

                              You can remap the GPIOs if you wish as its "open" source code however be aware that the intent of this thread on the forum is to support MAGPI V3 which is a through hole version of the detector and so if you are intending on forking the code and presumably a new board layout it might be
                              better to release it on a alternate thread or people will become confused if they load it into this hardware version. The reason for the through hole version is that there are lots of folks who would find a SMD version more challenging and are not of an age
                              where their eyesight or soldering skills are upto SMD. Additionally the components are relatively easy to find and easy to experiment with / probe etc.

                              The damping loop does not technically "stop" and "start" The reactive "X" error in damping of the coil is sampled and integrated ( stored ) to generate the damping bias on the damping mosfet BSP230 ... the bias is maintained on the BSP230 through the whole cycle.

                              All timings are referenced to 0 microseconds for each cycle. 0 occurs just after the finish of the preceding TX.
                              So the X sample begins at 1.6 us and ends at 1.7 us ( not the loop ).
                              The A target ( first ) sample begins at 0 and ends at 15 us.
                              The B target ( second ) sample begins at 15 us and ends at 30 us.
                              The TX cycle starts at 30 us and ends at 60 us.
                              ... as per the code.

                              The reason for 60 us total cycle time is because longer TX cycles ( eg 40 us on and 40 us off ) are will increase the flyback voltage and TX peak current. This will heat up the linear regulator and risk avalanche of the TX mosfet which will cause it to heat up and the damping time will increase.

                              A future detector will address these issues. ( MAGPI V4 ? )

                              The V3 is no slouch ... I have a $10000 commercial detector and the V3 is my goto detector now. ( the V3 is lower noise and lighter but same sensitivity).

                              You should note we are using integrators here not Sample and Hold. Except in the case of the X sample ( 1K resistor ) .... the other switches are driving integrators with 10K resistor inputs ... the opamp is rated to drive 75 ohms ... so the combined input impedance of the integrators does not
                              come anywhere near the rated drive capability of the preamp. A buffer will only consume power and potentially add noise.

                              You are right though ... I did have a earlier version that did use S&H for the loops etc and that did suffer from preamp output distortion due to sudden capactive load on the preamp output.

                              moodz







                              Comment


                              • #75
                                Thanks Moodz,
                                Appreciate all the help.

                                Comment

                                Working...
                                X