Author Topic: How do reduce droop?  (Read 477 times)

0 Members and 1 Guest are viewing this topic.

Offline stafilTopic starter

  • Regular Contributor
  • *
  • Posts: 205
  • Country: us
How do reduce droop?
« on: March 03, 2020, 07:29:17 am »
I am using LTspice to simulate a circuit that has a PWM driving a pulled-up sensor using a NPN BJT.

When the PWM truns off I see a droop of about .6Volt.

What's the best way to get rid of it? Should I use a capacitor in parallel to the BJT?

My circuit is:

Code: [Select]
                    +------/\/\/\/\------+
                    |                    |
  PWM source ------NPN                   +--- PWM consumer
                    |                    |
                    |                   12v
                    |                    |
                   GND                  GND


 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1352
  • Country: si
  • I like to measure things.
Re: How do reduce droop?
« Reply #1 on: March 03, 2020, 07:59:57 am »
Just because the circuit seems to work in simulation, doesn't mean that it works in reality. Check the current that is flowing through the base of the transistor when the PWM input is high. That amount of current would surely destroy a transistor in the real world.

What you're seeing is the base-collector capacitance dragging the collector below ground when the base voltage starts dropping.
First you need to add a resistor between the PWM source and base and calculate it so it doesn't saturate the transistor too much. You might try adding a Baker clamp to further improve the result.
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 
The following users thanked this post: Nominal Animal, stafil

Offline stafilTopic starter

  • Regular Contributor
  • *
  • Posts: 205
  • Country: us
Re: How do reduce droop?
« Reply #2 on: March 03, 2020, 08:42:32 am »
Just because the circuit seems to work in simulation, doesn't mean that it works in reality. Check the current that is flowing through the base of the transistor when the PWM input is high. That amount of current would surely destroy a transistor in the real world.

What you're seeing is the base-collector capacitance dragging the collector below ground when the base voltage starts dropping.
First you need to add a resistor between the PWM source and base and calculate it so it doesn't saturate the transistor too much. You might try adding a Baker clamp to further improve the result.


Oh ok. In the datasheet 2N3904 was rated 200mA and according to LTSpice the current was from 120mA to -40mA(droop?) so I thought I would be ok. Good that I asked :D

The Baker Clamp however altered the PWM signal, but adding a 10k Ohm resistor helped a lot, thanks!



 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf