Author Topic: I2C enabled mosfet switch  (Read 5028 times)

0 Members and 1 Guest are viewing this topic.

Offline bryce1Topic starter

  • Regular Contributor
  • *
  • Posts: 75
I2C enabled mosfet switch
« on: September 19, 2014, 11:53:15 am »
Hi guys,

I designed a low side n-mosfet switch that is controlled by an attiny48 (i2c slave). The idea was to have a couple of relatively generic relais alternatives that can also do pwm with 12V loads in a couple of different places.

It works well, but I keep wondering if there is a better way. Do you know of any i2c enabled ICs that do this kind of stuff already and are cheaper or better suited?

Thanks!
 

Offline abaxas

  • Regular Contributor
  • *
  • Posts: 131
Re: I2C enabled mosfet switch
« Reply #1 on: September 19, 2014, 12:07:18 pm »
http://www.adafruit.com/products/732

or pick your favorite i/o expander of choice.
 

Offline Precipice

  • Frequent Contributor
  • **
  • Posts: 403
  • Country: gb
Re: I2C enabled mosfet switch
« Reply #2 on: September 19, 2014, 12:20:01 pm »
or pick your favorite i/o expander of choice.

And perhaps an optocoupler?
i2c, multi-board design, currents high enough to be switched by relays, with FET-speed edges - not always a happy combination. 
Certainly take care.
 

Offline bryce1Topic starter

  • Regular Contributor
  • *
  • Posts: 75
Re: I2C enabled mosfet switch
« Reply #3 on: September 19, 2014, 12:25:00 pm »
that is some valuable advice. can you elaborate?

the attiny costs less then one dollar. this is more expensive and does less.
« Last Edit: September 19, 2014, 12:30:25 pm by bryce1 »
 

Offline abaxas

  • Regular Contributor
  • *
  • Posts: 131
Re: I2C enabled mosfet switch
« Reply #4 on: September 19, 2014, 12:59:50 pm »
that is some valuable advice. can you elaborate?

the attiny costs less then one dollar. this is more expensive and does less.

Time to write software is not 'free'.
 

Offline bryce1Topic starter

  • Regular Contributor
  • *
  • Posts: 75
Re: I2C enabled mosfet switch
« Reply #5 on: September 19, 2014, 03:07:18 pm »
that is true.but writing software scales better.
 

Offline bryce1Topic starter

  • Regular Contributor
  • *
  • Posts: 75
Re: I2C enabled mosfet switch
« Reply #6 on: October 03, 2014, 07:33:16 am »
with FET-speed edges - not always a happy combination. 

how do I take properly take care of fet speed edges?
 

Offline Precipice

  • Frequent Contributor
  • **
  • Posts: 403
  • Country: gb
Re: I2C enabled mosfet switch
« Reply #7 on: October 03, 2014, 10:58:47 am »
how do I take properly take care of fet speed edges?

'carefully' :)

Slow them down with resistors, but not so much that unlucky circumstances (high load, edge-case FET) is at risk from thermal damage as it turns on or off. (I seem to recall you were doing relay-style switching, so is should just be individual edges you care about, rather than sustained heat from PWM turning it on and off all the time).
You can also use current limiting, but that's harder.

You might also want to put some capacitance in parallel with the gate, since you can't really trust the gate capacitance to be the same from transistor to transistor, batch to batch.

Or/and you could also put a bit of resistance under the Source, to limit the current the load can take, especially at switch-on. Have a search for source degeneration.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf