hi,Eric, thanks for the edit. Are those electrolytic or ceramic (MLCC) caps. I have both flavors, just want to be sure I'm using the correct type.
Electrolytic capacitors.
E
hi,Eric, thanks for the edit. Are those electrolytic or ceramic (MLCC) caps. I have both flavors, just want to be sure I'm using the correct type.
So if you go from PWM range 255 to 254, the SMPS starts to go over-current?Ultimately, I'd rather just figure out how to lessen the inrush current.
Experiment will get you the answer to that. Do you have the extra capacitors fitted?OK, so a final tweak of the code, I set the pwm to 254 for 3 seconds at startup and then my warm up loop runs. Now, on startup, the SMPS drops for about half a second and then comes up. The rest of the program then runs as expected. It appears the smaller pulse width (which is the smallest I can implement) has dampened the effect enough to be usable. I'm wondering if changing the pwm frequency would help at all. Question is, do I go slower or faster. My guess is faster so the load appears for a shorter amount of time and this may fall outside the range of the SMPS over current protection circuit. Thoughts?
Curious. Reading the datasheet, it seems the micro sets them as tristate on reset. Does the chip have a bootloader code (which might mess with the pins) or is it a bare chip?The micro writes a 0 to all I/O ports at initialization.
Depends upon the voltage connected to the PNP emitter.This means I should be using a PNP with a pull-down resistor to ensure the gate of the mosfet will stay off until the program starts.
When switching MOSFETs, they need to transition from on to off and vice versa as quickly as possible to minimise the heat generated in them. The gate behaves as a capacitor, so to charge/discharge that quickly the driving circuit resistance should be minimal. Hence R9 (post #15) could be reduced by at least an order of magnitude to speed up the gate capacitance charging.My thinking was to limit the current from the micro to below 20mA and limit the current to the gate of the mosfet, but I don't remember why now. I know you mentioned swapping the values of the two, but I'm not sure why (or, more to the point, I'd like to understand why).
Good catch, Ron.The MOSFET has a Gate pull up resistor to +24V. The MOSFET has a max G-S voltage of only 20V.
Ron, Ron, Ron......where were you last week buddy, lol. Of course, the resistor is pulling the gate high when Q1 is off. That's why its been acting erractically. I also read the datasheet wrong. It actually appears as though I can drive this mosfet directly from the micro. So I don't even have to mess with Q1. I will try that out and let you know what I get.The MOSFET has a Gate pull up resistor to +24V.
You are correct. Trying to substitute a PNP for the NPN and rerouting the circuit did not work for me at all.Depends upon the voltage connected to the PNP emitter.
It can't be higher than the micro supply voltage.
Yes, it has a bootloader, but I may have just figured out the actual problem. We'll see with my next update.Curious. Reading the datasheet, it seems the micro sets them as tristate on reset. Does the chip have a bootloader code (which might mess with the pins) or is it a bare chip?
Alec, thanks for the info. I will commit this to memory now.When switching MOSFETs, they need to transition from on to off and vice versa as quickly as possible to minimise the heat generated in them. The gate behaves as a capacitor, so to charge/discharge that quickly the driving circuit resistance should be minimal.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
XL6005 understanding the datasheet | General Electronics Chat | 15 | ||
K | High power LED array dimming | Power Electronics | 9 | |
G | Dimming High Power LEDs? | Power Electronics | 55 | |
E | High frequency PWM dimming of LEDs? | General Electronics Chat | 2 | |
H | fish tank lights-high power leds & dimming | Power Electronics | 6 |
by Jeff Child
by Jake Hertz
by Aaron Carman