Go Down

Topic: DC dimmer circuit (Read 4196 times) previous topic - next topic

dc42


In theory, if I did pull the gate of a p-channel mosfet to ground, would that not turn it on rather than off?


If the gate of the P-channel mosfet is grounded while the source it at +12v, then that would turn the mosfet on. However, a pulldown resistor on the gate will not drive it to ground in that circuit, because the output resistance of the TC4429 is much less than 10K.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

BenF

Why did you choose a target time of 50ns? We're not talking about switching at several MHz here, just a few tens of kHz.

There is no qualified reason to design for less than optimal performance other than cost/size (power, drive circuit) and so any PWM design irrespective of base frequency should aim at minimizing switch time. The practicality of this is typically limited downwards to somewhere in the 20ns-60ns range for any given MOSFET. I suggested 50ns as a target in a previous post and 80ns is what is used for characterization in the datasheet.

Other than that it seems as if the dimmer is shaping up nicely.

Pokey

Well I FINALLY had a chance to get this circuit together. :smiley-eek:

Life is what happens to you when you are trying to work on electronics projects... :)

The circuit is now set up as in the attached diagram. However something is not quite right. For testing, I am running the circuit on 11.9 volts. When D10 is high the output from the TC4429 reads 11.65 volts on my multimeter and 11.9 when D10 is low. Obviously, that is not enough to turn the IRF5210 on.

May I once again appeal to the experts for some advice?

Thank you for your patience.

dc42

You have drawn the mosfet the wrong way round, however if you have wired it up according to the S G D labels in your schematic then you have wired it correctly.

You haven't shown the pin numbers you used for the connections to the TC4429. Check these connections, in particular make sure you have connected both ground pins and both Vdd pins (the datasheet says this is required for proper operation of the device).
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pokey

#19
Jul 17, 2012, 06:31 pm Last Edit: Jul 17, 2012, 06:54 pm by Pokey Reason: 1
Hello dc42!

Well, I have quintuple checked the connections multiple times. (My brain has involuntarily been going over every little detail for hours)

I wired the IR5210 according to the datasheet where pins 1, 2, and 3, are G, D, and S, respectively. (See attached)

WRT the TC4429, I have all the pins connected except for 3 which is supposed to be left unconnected. The chip is mounted upside down on my circuit (again see attached), so the pin numbering is clockwise from the top-right.

Even now my gut feeling is that something is "misconnected," but I can't see anything wrong.

dc42

The resistor shown as 10K in the schematic is actually 1K in the photo, but that doesn't matter. The wiring to the chip in the photo looks OK as far as it goes, assuming you have the chip the right way round (as it is upside down, I can't see which end has the pin 1 marking). Can you post a photo of the whole setup, so I can see how the chip is connected to the mosfet, Arduino and power supply?
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pokey

#21
Jul 17, 2012, 10:42 pm Last Edit: Jul 17, 2012, 11:21 pm by Pokey Reason: 1
Thanks for your time dc42.

Here is the whole circuit. The violet wire from the top is 12v and the red wire (top-right) is ground, both from the power supply. There are several other things going on too, but i hope you can make out the connections for the mosfet.

I should note that the middle pin (pin 2, D) on the IRF5210 is bent forward a little, it is not attached to the resistor.

dc42

I can't see anything obviously wrong with the wiring in your photo. There is the possibility that the mosfet gate oxide may have been damaged by static charge. Try disconnecting one end of the 47 ohm resistor and measuring the output from the TC4429 again. Also check that the ground pins of the TC4429 really are at 0v all the time, in case you have a bad joint.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pokey

Quote
Try disconnecting one end of the 47 ohm resistor and measuring the output from the TC4429 again


Okay, I tried that and I get the same result 11.99v when input is high and 11.65v when input is low.

Quote
Also check that the ground pins of the TC4429 really are at 0v all the time, in case you have a bad joint.


It reads a perfect 0v.

Do you think the TC4429 is bad? Luckily I ordered two; I will try replacing it.

TNX

Pokey

Hooray! It works!

Replacing the TC2249 solved the problem.

Thanks, dc42 for helping me track this down.

(I'll add another one to your tab. :))

Pokey

Well, the new TC2249 is now exhibiting the same problem. The only thing I did was to set it to output a 32 ?s pulse width. I was getting strange readings so I set it back to a simple digitalWrite HIGH.

Now I get a similar 11.7v on the TC2249 output instead of the expected 0v. I was careful to ground myself when working on it. Is it possible that 30kHz is burning something out?

Is there a more robust way to drive a mosfet?

TNX

dc42

I would expect the TC2249 to be quite robust. The only ways I can think of causing it to burn out and exhibit the symptom you report are to short its output to the +12v supply, or to drive continuously at a high frequency with a substantial capacitive load.

What value resistor do you have between the TC2249 output and the mosfet gate?
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pokey

Quote
What value resistor do you have between the TC2249 output and the mosfet gate?


47 ohms.

dc42

#28
Jul 20, 2012, 11:24 pm Last Edit: Jul 20, 2012, 11:27 pm by dc42 Reason: 1

Quote
What value resistor do you have between the TC2249 output and the mosfet gate?


47 ohms.


That should be sufficient to protect the TC2249 from just about any load. I guess the other thing that could destroy the TC2249 is a large negative-going transient on the +12v supply. Such a transient could possibly occur when the LED switches on or off. To avoid such transients, add a decoupling capacitor between the -ve side of the LED and the source of the mosfet.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pokey

#29
Jul 21, 2012, 12:54 am Last Edit: Jul 21, 2012, 01:40 am by Pokey Reason: 1
How about using a motor driver such as an SN754410?

Or a TI UC2714?

My opinion of the TC2249 is at an ultimate low. I am not sure I want to order more...although its failure is probably a result of my inexperience.

Thank you for your help, dc42.

Go Up