Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Differential TX driver for TDI?

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

  • #46
    Originally posted by algan View Post
    This code should have samples like the original TDI, if my colleague Eduardo has measured them, he can say what they are exactly, and the pulse should be able to change between 2 and 5 kilohertz, it should have a low and high pulse, and regarding the AI, if you haven't watched the videos, it has already changed and is trying to fool people, it deliberately confuses you, it can give you the correct code, but you have to write to it for a few days and it repeats its mistakes, and then it also lets you always answer, but in general it tries to annoy people with its games and I wonder why the creators allowed this problem of its, but it is close to the mind to slow down the chat so that they have more traffic and profit from it for the benefit of the creators.
    Attached Files

    Comment


    • #47
      Originally posted by algan View Post
      ...regarding the AI, if you haven't watched the videos, it has already changed and is trying to fool people, it deliberately confuses you, it can give you the correct code, but you have to write to it for a few days and it repeats its mistakes...

      Just try it. I'm not good at programming either, but when I asked him, he always gave me adequate help.

      Comment


      • #48
        Thanks Eduardo, but for the bipolar, is that how the samples should be? Click image for larger version

Name:	PULSES TDI bipo;ar.jpg
Views:	296
Size:	93.1 KB
ID:	443075

        Comment


        • #49
          Hi Algan. I don't know. I don't have much experience with bipolar detectors, except for Carl's Bipolar PI. I suppose the other four samples also need to be modified, but I can't say for sure. In the end, I'll stick with unipolar designs because I don't really understand bipolar ones. In the future, I'll build the AF108 circuit, but the original one, not with a microcontroller.

          Comment


          • #50
            I think this is more correct and I'm learning too, but let Carl say if this option will work. Click image for larger version

Name:	PULSES TDI.jpg
Views:	272
Size:	94.5 KB
ID:	443084

            Comment


            • #51
              If you intend to use the TX driver as in post #1, then both TX pulses need to be positive.

              Comment


              • #52
                Thanks, Carl, it would be interesting to try it post #1 and see how it would affect depth and discrimination.

                Comment


                • #53
                  hello Eduardo , may be this can help think of it also you can run the h bridge if you want , if some body can do spic its better , regards to all
                  Attached Files

                  Comment


                  • #54
                    Originally posted by algan View Post
                    Hi ,Boilcoil, I don't know how to write code, but what you wrote is correct. Can you rewrite the code for example for pic16f18426? Thanks.
                    Hello Algan,
                    I have now reviewed the code posted by Karl in more detail.
                    It fits perfectly into the data sheet of the pic16f18426 microcontroller.
                    Just remove :
                    //#pragma config ZCDDIS = OFF
                    //#include "AppDSP.h"
                    from AppMain.c ,
                    then compile with XC8.
                    I do not have a simulation model of this processor in any of the installed PROTEUS, so I cannot use Proteus VSM for it and I do not know how it would work. But if you have a real metal detector with this chip, you can do it in live​

                    Comment


                    • #55
                      Thanks Boilcoil, but it still doesn't compile. I'm going to use the pic16f18426 from Carl's project for ITMD3, but since I have a working TDI sound, and in the circuit there GND is the plus of the battery, I have to change my project.

                      Comment


                      • #56
                        Here it is.


                        algan_code PIC16F18426.X.rar

                        Comment


                        • #57
                          Originally posted by boilcoil View Post
                          Here it is.


                          [ATTACH]n443121[/ATTACH]
                          Thanks, Boilcoil, the code compiles, I tested it and it works, it has a frequency of 397 hertz and four samples are also there, I don't know here, a potentiometer, for delay how it is connected, let Carl say.

                          Comment


                          • #58
                            Hi Algan,
                            Carl wrote that he will be away for a while and will not have time, so I will try to help you if I can of course.
                            I think that digging into someone else's code is like digging into someone else's bag - it is neither pleasant nor honorable, so let Carl accept my apologies.
                            As far as I understood from the code, the potentiometer sliders are connected to PORTA, 0 and PORTC, 4, and their two ends to Vdd and Vss.
                            The pulse outputs are:
                            The pulse for the MOSFET driver - to PORTA,1;
                            The target sample - to PORTA, 2;
                            EFE sample for the target signal (subtracted from the target signal) - to PORTC, 0;
                            The ground balance sample - to PORTC, 1;
                            EFE sample for the ground balance (subtracted from the GB signal) - PORTC, 2;
                            PORTC, 5 is used, perhaps, temporarily/testingly in the interrupt procedure, but in the final version it is not used, although it is set when the timings are initialized (you can remove it from the program and use it for something).

                            It is quite possible that what I am writing to you is absolutely wrong, but these are my capabilities. I have already written that I am not good at programming, so further, when Karl has time, he can give completely correct information.​

                            Comment


                            • #59
                              Hi, Boilcoil, I think Carl would not mind if you changed the code. He gave it to help us, but it is not yet ready to serve what he wanted. Eduardo, to test it on TDI, the code must be changed and there can be two versions, which I have given as an example with pictures. In the first picture, as Carl said, both pulses must be positive, and in the second picture it will also be completely different and one pulse will be negative.

                              Comment


                              • #60
                                Hello Algan,
                                From the microcontroller all signals are positive relative to Vss, there are no negative signals, if necessary they are changed in hardware.
                                Regarding the code for the bipolar pulse induction metal detector, Karl has uploaded everything necessary to the "Bipolar PI design" folder, so there is no need to do anything.
                                I think there is no need to discuss Karl's publications anymore - his designs are perfect, and the accompanying programs are brilliant.
                                So let's stop.​

                                Comment

                                Working...
                                X