Announcement

Collapse
No announcement yet.

Digital PI coil drive

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

  • Digital PI coil drive




    The only thing digital about this is that I do not want anything to burn up if the software leaves the coil drive signal on too long. This could happen if I am debugging the software and hit a breakpoint while the coil is on, or it could happen because of a software error. I have set this up so that the FET will not stay on for longer than a couple of milliseconds.

    The logic signal will be low most of the time and Q1 and Q2 will be off. Q2 is P channel. To turn the coil on, the logic signal will go high, which will turn Q1 on, which will turn Q2 on. Normally the logic signal will go low again within a couple hundred micro seconds and the circuit behaves pretty much like a direct coupled coil drive. But if the logic signal gets stuck high for any reason the capacitor will eventually charge up and Q1 will turn off. Hopefully this will prevent Q2 from burning up.

    Is there any reason not to use P channel MOSFET's? Everyone else seems to use N channel. I have never designed anything with power MOSFET's before, so I do not know what I am doing. The last time I designed anything like this was at least 20 years ago and I think MOSFET's must have been too expensive then because we were not using them.

    Robert

  • #2
    Re: Digital PI coil drive

    Looks like Q1's base current is left to charge the cap, which could take several seconds, depending on ß. Should you add a pull-down resistor as well?

    The SandShark & SMPI both use P-devices. With PMOS, power supply configuration is a little more straightforward. But NMOS offers a higher breakdown voltage and lower channel resistance than PMOS, so there is more flexibility. NMOS is also probably faster due to lower parasitics. However, PMOS is probably plenty good enough.

    - Carl

    Comment


    • #3
      Re: Digital PI coil drive

      Carl

      I agree that the base current is charging the cap and ß determines how long it will take for the FET to turn off, but I do not get the same result as you.

      The worst case occurs when there is no charge on the cap to start with and the logic signal goes high and stays high. Initially there is about 4.3 volts across the 4.7K resistor so the current into the cap starts at a little less than a mA and decays exponentially. To pull the collector down 2V takes about 4 mA of Ic. If ß is 200 that is about 20 uA of base current. Which is about 2% of the initial current. So within about 4 time constants (9 msec) the FET should shut off. Even with ß = 300 it should be off in about 10 msec.

      You may be right anyway that there should be a resistor in there.

      I was thinking of using a 2N3904 because I have a drawer full of them. I don't even know if they make them any more, but you used them in your design. So I guess that either means that they do still make them, or else you are as old as I am and also have a drawer full.

      Robert

      Comment


      • #4
        Re: Digital PI coil drive

        Within seconds of pressing the Post button I realized that the ADuC will not source that much current, so it will take longer to charge. But putting a base emitter resistor in there will not help in that area. I guess I will have to look at that a little more.

        Robert

        Comment


        • #5
          Re: Digital PI coil drive

          I just tested it with 100 and 200 nF. The initial current is around 250 uA. It crosses 20 uA at 3 msec for 100 nF and 6 msec for 200 nF. Extrapolating from that it would be about 14 msec for 470 nF. I will probably use 100 or 200.

          The time constant is longer than RC because I did not take into account the impedance of the source.

          Robert

          Comment


          • #6
            Re: Digital PI coil drive

            Yup, I was not looking at it the right way. When the input pulse goes high, so does the other side of the cap.

            2N3904 is still one of the most popular GP npns. Along with the 3906 pnp. They are what I use for just about everything.

            - Carl

            Comment


            • #7
              Re: Digital PI coil drive

              Hi,
              I had the same problem when I was debugging the code on my design. Every so often when I stopped the emulator at the wrong spot the coil and FET started getting very hot. The FET started to let its smoke out. If all of the smoke gets out, they usually stop working While debugging my code, I disconnected the coil in order to get rid of that problem. I also started out with a problem where the coil defaulted to "on" at power up and after the code initialized the ports, the coil was turned off. This became a problem if I did something stupid that stopped the code from executing to the point where the ports were set. Like, if I left the LCD unplugged and powered up, it would get very hot. I changed my hardware so that the logic was reversed and a port initialization wasn't required in order to turn off the coil. It was defaulted to off. Its all of those little things you run into while ironing out a design that makes it so fun.
              Good luck,
              Fred

              Comment


              • #8
                Re: Digital PI coil drive

                Fred

                I have let all the smoke escape from enough parts in the past. I am trying to be more careful on this project.

                Robert

                Comment

                Working...
                X