<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TI and Würth Elektronik LED RoadTest+ - The Schema - 5/10</title><link>/products/roadtest/b/blog/posts/ti-and-wurth-elektronik-led-roadtest---the-schema---5-10</link><description>It took a while for me to post my blog... just had to face some issues and The Christmas celebrations. I have managed to do my schematics of my Smart Headlight circuit. The 3.3 voltage, GND and ADC channel 8 goes through the ST1 scre...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: TI and Würth Elektronik LED RoadTest+ - The Schema - 5/10</title><link>https://community.element14.com/products/roadtest/b/blog/posts/ti-and-wurth-elektronik-led-roadtest---the-schema---5-10</link><pubDate>Mon, 04 Jan 2016 14:25:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c2faade2-52e6-4acc-b898-20f45908d7ec</guid><dc:creator>jc2048</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Don&amp;#39;t do the pcb yet, this isn&amp;#39;t going to work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The LEDs won&amp;#39;t light up (and the transistors couldn&amp;#39;t switch them properly if they did).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You need to read up on Ohm&amp;#39;s law and look carefully at how diodes behave.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Let&amp;#39;s start with the transistors and pretend, for the moment, that your LED&amp;#39;s were taking their design current of 350mA. The three groups of LEDs would take 1.75A (5 x 350mA), 2.1A (6 x 350mA), and 2.8A (8 x 350mA).&lt;/p&gt;&lt;p&gt;Absolute maximum for 2N2222A is 800mA, so all three exceed the capability of the transistor by at least twice. So switching them with this transistor is a non-starter.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Even if the current were much less, it wouldn&amp;#39;t work as you expect. Let&amp;#39;s say that there were just two strings of LEDs taking 2 x 350mA = 700mA. If you look at the datasheet for the transistor it says that the current gain falls to 40 at 500mA collector current. Let&amp;#39;s pretend that it&amp;#39;s the same for 700mA (not true, but good enough for this discussion), then you need 700mA/40 base current which is 17.5mA. But your base resistor only gives you about (5V-0.6V)/1000 ohms = 4.4mA (I&amp;#39;m assuming the uP IO is 5V, adjust accordingly if it&amp;#39;s 3.3V), which isn&amp;#39;t enough. You could decrease the size of the resistor, but then you&amp;#39;d be sourcing 18mA from your IO pin which it would manage but is a bit on the high side.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Anyway, to get around this you either need more gain and a heftier part (look at a darlington pair) or use an n-channel MOSFET.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now to the LEDs.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Imagine the LEDs weren&amp;#39;t there and were replaced with wire links. What is the resistor current? By Ohm&amp;#39;s law, it&amp;#39;s 12V/1000 ohms = 12mA. Let&amp;#39;s put back one LED with a voltage drop of 3.2V. What&amp;#39;s the current now? (12V - 3.2V)/1000 = 8.8mA. [That value isn't accurate - the forward voltage is at the rated current of 350mA and would be a good bit less for only 8mA - but the point is that the 12mA is the most you can ever get and adding diodes reduces from that.]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, let&amp;#39;s say we put three diodes in a string, run them from the 12V, and calculate the resistor value we need.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The resistor value to get 350mA is (12V - (3 x 3.2v))/0.35A = 6.85 ohms. The resistor heat dissipation is 2.4V x 0.35 A = 0.84W, so that would need to be a 1W resistor. [Note, while we're here, that each LED is about 1W, so the resistor is using about a quarter of the total power for the string, which is quite wasteful.]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;However, the LED will warm up (how much depends on how good your heatsinking is) and the forward voltage will drop. That means more voltage across the resistor and the current will go up. A drop of 0.2v [for each LED] isn&amp;#39;t unreasonable for the kind of heatsinking you&amp;#39;ll manage (LED chip at 80C rather than the 25C at which the datasheet Vf value is measured). That would then give a current of (12 - (3 x 3.0))/6.85 = 438mA. So, you can see the resistor isn&amp;#39;t regulating the current very well at all. It&amp;#39;s also worth bearing in mind that the forward voltage is just a typical figure, and the actual LEDs you have may be different.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You also have the further problem that your supply isn&amp;#39;t really 12V in a car (automobile). If the alternator is running, the regulator will hold the supply higher than that to charge the battery, and if it isn&amp;#39;t running the supply depends on how run down the battery is. [Be aware,too, that you need good protection on automotive circuits - there can be hugh spikes on the supply.]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you use an IC LED driver, it will measure the current through the LEDs and keep adjusting the voltage across the LEDs to keep that current at the required value. Any changes, because the LEDs differ from the typical value, or because they heat up, or because the supply voltage varies, don&amp;#39;t matter [as long as they're within the range the driver can adjust for, obviously].&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=989&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: TI and Würth Elektronik LED RoadTest+ - The Schema - 5/10</title><link>https://community.element14.com/products/roadtest/b/blog/posts/ti-and-wurth-elektronik-led-roadtest---the-schema---5-10</link><pubDate>Wed, 30 Dec 2015 22:15:46 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c2faade2-52e6-4acc-b898-20f45908d7ec</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nice start.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=989&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>