Author Topic: High side driver (7V-9V) with 3.3V microcontroller pin to switch it questions...  (Read 2605 times)

0 Members and 1 Guest are viewing this topic.

Offline alank2Topic starter

  • Super Contributor
  • ***
  • Posts: 2200
I'm thinking about using 4 NiMH cells for a 3.3V project.  It might use up to 300mA maxmimum, probably half of that or less normally.

I'm probably going to use a TR05S3V3 dc-to-dc to convert the 4.4V to 5.8V battery voltage to the 3.3V.

My question is what can be done to charge from a 7V adapter.  Something else in this same system uses the 7V adapter, so that is the voltage the adapter needs to be.

I looked at some NiMH charge controller IC's, but they all seemed very pricy, like $8+ for some reason.

This is for a retrocomputer and it has a 4 pack NiCd that it has its own charging method for.  It basically uses a resistor to trickle charge it at one rate and then monitors the battery voltage to decide whether to bypass a resistor and kick up the charging current.  It basically has an always inline resistor of a smaller value (fast charging) and then uses a resistor to switch past another resistor which when added to the smaller value resistor lowers the current to the slow/trickle method.

My question is - what kind of driver is best to switch this?  I've been looking up transistor/mosfet high side drivers, but there seems to be an issue trying to turn on a p channel mosfet when you only have a 3.3V logic level unless you use a BJT to drive the gate.  Is there an easier way or solution?  Basically I want to switch by the larger value resistor from a 3.3V logic level to allow a higher voltage (7V, but potentially 9V) to charge a battery pack.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 17427
  • Country: us
  • DavidH
I've been looking up transistor/mosfet high side drivers, but there seems to be an issue trying to turn on a p channel mosfet when you only have a 3.3V logic level unless you use a BJT to drive the gate.  Is there an easier way or solution?  Basically I want to switch by the larger value resistor from a 3.3V logic level to allow a higher voltage (7V, but potentially 9V) to charge a battery pack.

How much simpler for level shifting than a single bipolar transistor or MOSFET do you want?

If you have a logic level n-channel MOSFET, connect its gate to the 3.3 volt positive supply and its source to the logic output.  When the logic output is low, it will pull the drain down to the same low logic level.  When the logic output is high, the drain can be pulled up to the breakdown voltage of the MOSFET.

An NPN transistor can be used the same way with a resistor in series with the base as long as the transistor is allowed to saturate.  Or if the resistor is moved to the emitter, then the bipolar transistor becomes a switchable current sink which might be advantageous in some applications but the collector cannot fall lower than the logic supply.

 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
You may use an optocoupler, the led diode driven off the MCU 3.3V level via a 1k resistor, and the output transistor bypassing the larger value resistor. I think this is the simplest solution.
« Last Edit: July 25, 2019, 11:11:08 pm by imo »
Readers discretion is advised..
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 17427
  • Country: us
  • DavidH
An optocoupler has the virtue of galvanic isolation which prevents ground loops.
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 749
  • Country: us
The single transistor is nice if open collector/drain is adequate, but what's the easiest solution when you need a high-voltage totem pole (low output impedance in both the high and low states) with logic-level input?  I ended up using a FAN3268 but was not sure if simpler options were available.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 17427
  • Country: us
  • DavidH
The single transistor is nice if open collector/drain is adequate, but what's the easiest solution when you need a high-voltage totem pole (low output impedance in both the high and low states) with logic-level input?  I ended up using a FAN3268 but was not sure if simpler options were available.

Add a class-b complementary emitter follower pair to the output.  If the sink current is great enough, then the bottom transistor may be replaced with a diode.
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 749
  • Country: us
Sorry, not an analog guy, so I may not know the correct terminology.  By "totem pole output" I meant a typical CMOS structure, with a low ohmic path to +V when on, and a low ohmic path to GND when off, where +V is higher than typical logic voltages (in my case 10 volts).  In other words, the rise and fall times at the output should be symmetric.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 17427
  • Country: us
  • DavidH
Sorry, not an analog guy, so I may not know the correct terminology.  By "totem pole output" I meant a typical CMOS structure, with a low ohmic path to +V when on, and a low ohmic path to GND when off, where +V is higher than typical logic voltages (in my case 10 volts).  In other words, the rise and fall times at the output should be symmetric.

The example I gave does have a low impedance in either state.  There are various ways to do it and some are better than others but they all come down to doing a high impedance DC level shift followed by amplification to lower the output impedance.  Faster designs use AC coupling across the DC level shift to speed up the high side transistor.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Lots of plain MOSFET driver ICs can do this. My favourite is the TC4420 or TC4429, but there are many options.
https://ww1.microchip.com/downloads/en/DeviceDoc/21419D.pdf
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 749
  • Country: us
Sorry, not an analog guy, so I may not know the correct terminology.  By "totem pole output" I meant a typical CMOS structure, with a low ohmic path to +V when on, and a low ohmic path to GND when off, where +V is higher than typical logic voltages (in my case 10 volts).  In other words, the rise and fall times at the output should be symmetric.

The example I gave does have a low impedance in either state.  There are various ways to do it and some are better than others but they all come down to doing a high impedance DC level shift followed by amplification to lower the output impedance.  Faster designs use AC coupling across the DC level shift to speed up the high side transistor.

I must be really dense.  The output is taken from the drain of the IRF540, right?  How does that give you a low impedance to +V?

Edit:  I *am* really dense.  Took me until now to figure out the IRF540 was just there as a gate-drive example  :palm:
« Last Edit: July 28, 2019, 01:52:42 am by mark03 »
 

Offline poorchava

  • Super Contributor
  • ***
  • Posts: 1673
  • Country: pl
  • Troll Cave Electronics!
Lots of plain MOSFET driver ICs can do this. My favourite is the TC4420 or TC4429, but there are many options.
https://ww1.microchip.com/downloads/en/DeviceDoc/21419D.pdf

+1, I use those a lot too. Also, there are MCP1404, which are 4 Amps peak (TC are 1.5A), but TC442x parts are much more tolerant to various kinds of abuse.

There is also MCP1415 and 1416 if u need only one signal.

That's what I like about Microchip. They make lots of simple, useful chips that are cheap, available and just get the job done. Too bad they really suck at designing microcontrollers though.

Nice "trick" with TC4428 and similar complimentary drivers is that you can connect inputs together, feed them with any random 50% pwm from a microcontroller , hook up a trafo with cap in series to it and there you have a floating power supply. Perfect for floating gate drives and similar stuff.
« Last Edit: July 29, 2019, 02:14:30 pm by poorchava »
I love the smell of FR4 in the morning!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf