Pages: [1]   Go Down
Author Topic: LED driver circuit  (Read 1902 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



I am trying to build a lamp using a tilt user interface, I have the sketch and the interface figured out, but since I don't want to run 110 AC through my Arduino I decided to use an LED. Is this circuit right in terms of controlling my 3 watt LED?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34563
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Two points.
1) You need a 100R resistor in the gate to limit switch on current.
2) You can't control a 3W LED like this because you need something to limit the current. A resistor or just a low voltage won't hack it. See this discussion:- http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1234273497
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In addition to GM's points, you need to make the type of MOSFET device known. Most won't turn on completely with just the +5vdc output of a digital output pin when high. A logic level MOSFET is required for direct connection to a output pin.

Lefty
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6788
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And a 3.3V supply is low for most modern high-power LEDs (it might prevent you from blowing things up without the current limiting resistor, though.)

I would think that you could get away without a gate resistor for most moderate-power logic-level MOSFETs...
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34563
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I would think that you could get away without a gate resistor for most moderate-power logic-level MOSFETs

I am sure you would get away with it but you would exceed the absolute maximum current output for the output pin for a very short length of time. Who know what long term damage that might do, maybe nothing but maybe it will reduce the lifetime of the arduino.
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 137
Posts: 6788
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
you would exceed the absolute maximum current output for the output pin for a very short length of time.
Do you know the practical gate capacitance limit below which you no longer need to worry at all?  After all, inputs to additional CMOS logic gates are also capacitive, and no one expects you to need current limiting resistors to connect "reasonable" fanouts of additional logic...
Logged

Pages: [1]   Go Up
Jump to: