Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

DIY Hi Side switch - switching waveform woes (load switch)

Status
Not open for further replies.
Well it's looking like the most viable solution (low parts count, lowish current) is to simply go with my first schematic (two fets), but bring the value of the 1st fet drain resistor down to about 3.3k...but also add in one extra resistor above it (so now, the first fet drain will have both a 3.3k and 660R resistor connecting to 9V) ...and then take the 'junction' of the two resistors to the p mosfet gate - job done.

The litmus test wrt how successful the revised switching waveform is....is simply to look at the LEDs (ie the load). With a 16khz switching waveform at a duty cycle of 1/256th, the LEDs should be barely visibly on ...beforehand, at 1/256th duty cycle they were too visibly on (this being due to the aforementioned CR induced slope essentially extending the duty cycle on/off ratio to the LEDs) ...but by reducing the drain resistor value (therefore less CR induced slope) and adding in an extra resistor to form a potential divider on the switching waveform (therefore the P-chan gate now only sees 9V-> 8V(ish) switching voltage vs 9V->0V with just one drain resistor), the LEDs are indeed now very low intensity at a duty cycle of 1/256th (being high brightness leds, even a duty cycle of 1/256th has them discernibly 'on'.) When the N channel is on, there's about 3mA flowing through the two resistors (attributed to the switching on/off the p chan mosfet)...I'd have preferred less, but I can live with it.

Thanks for all your input.
 
Last edited:
What program do I need to get to do those sims?
LTSpice (a free download....well worth the money!!).
Also would anyone be able to knock one up for the result I got in my last scope trace
See attached. Note that increasing R2 softens the base pulse falling edges, hence the collector pulse rising edges. Not a direct match with your scope traces. BTW, what base resistor value did you use?
 

Attachments

  • TransistorCapacitance.png
    TransistorCapacitance.png
    17.9 KB · Views: 158
  • TransistorCapacitance.asc
    891 bytes · Views: 102
thanks alec

Not a direct match with your scope traces. BTW, what base resistor value did you use?

I didn't because there's a base resistor integrated inside the transistor ...ie a digital tranny (I'd assume it to be something like 1k)
 
Last edited:
Ahh, digital transistors are great, but see if you can get the datasheet, the base resistors can vary between 1k, to 47k and can cause issues later on when things don't behave quite as you'd expect. Seems the most common by far is 4.7K to base, and 4.7K from base to emitter.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top