<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Drive LED or Opto-isolators with AVR</title>
	<atom:link href="http://www.scienceprog.com/drive-led-or-opto-isolators-with-avr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scienceprog.com/drive-led-or-opto-isolators-with-avr/</link>
	<description>ScienceProg serves scientific, embedded, biomedical engineering, physics based contents. If you want your article or scientific project to be on this site, do not hesitate to contact.</description>
	<lastBuildDate>Wed, 08 Sep 2010 00:13:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: scienceprog</title>
		<link>http://www.scienceprog.com/drive-led-or-opto-isolators-with-avr/comment-page-1/#comment-28538</link>
		<dc:creator>scienceprog</dc:creator>
		<pubDate>Thu, 21 Jan 2010 10:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.scienceprog.com/drive-led-or-opto-isolators-with-avr/#comment-28538</guid>
		<description>Yep you are right. For smaller supply voltages is more visible, but for higher this can be neglected to simplify calculations and do it faster. But if keep in mind that it is better to chose at least 50% higher resistor values to preserve LEDs lifetime, such calculation can be accepted. Any way thanks for pointing that out.</description>
		<content:encoded><![CDATA[<p>Yep you are right. For smaller supply voltages is more visible, but for higher this can be neglected to simplify calculations and do it faster. But if keep in mind that it is better to chose at least 50% higher resistor values to preserve LEDs lifetime, such calculation can be accepted. Any way thanks for pointing that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bootstrap</title>
		<link>http://www.scienceprog.com/drive-led-or-opto-isolators-with-avr/comment-page-1/#comment-28535</link>
		<dc:creator>bootstrap</dc:creator>
		<pubDate>Thu, 21 Jan 2010 03:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.scienceprog.com/drive-led-or-opto-isolators-with-avr/#comment-28535</guid>
		<description>Your calculation of the resistance does not take into account the voltage drop of the LED. The voltage you divide by the current is the supply LESS the LED voltage drop. eg Blue LED drop is ~3V so 5V-3V = 2V. 2V/20ma = 100 ohm. Red LED drop is ~1.8V so 3.2V/20ma = 160 ohm. Green ~2.2V drop (140 ohm). These are the MINIMUM resistance values since - as you correctly stated - the maximum sink current of an AVR is 20 ma per pin.

Also, if you are advising people to interface silicon components to relays, insist they use a freewheeling diode across the coil to prevent back EMF spikes damaging components. Idealy this should be a &#039;fast&#039; diode, but that is getting picky.

Otherwise good stuff dude.</description>
		<content:encoded><![CDATA[<p>Your calculation of the resistance does not take into account the voltage drop of the LED. The voltage you divide by the current is the supply LESS the LED voltage drop. eg Blue LED drop is ~3V so 5V-3V = 2V. 2V/20ma = 100 ohm. Red LED drop is ~1.8V so 3.2V/20ma = 160 ohm. Green ~2.2V drop (140 ohm). These are the MINIMUM resistance values since &#8211; as you correctly stated &#8211; the maximum sink current of an AVR is 20 ma per pin.</p>
<p>Also, if you are advising people to interface silicon components to relays, insist they use a freewheeling diode across the coil to prevent back EMF spikes damaging components. Idealy this should be a &#8216;fast&#8217; diode, but that is getting picky.</p>
<p>Otherwise good stuff dude.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
