<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1245625687100399912</id><updated>2024-09-10T09:58:32.829-07:00</updated><title type='text'>Electronic  Circuits.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-2379765220104725558</id><published>2011-10-12T03:36:00.000-07:00</published><updated>2012-05-14T22:52:31.075-07:00</updated><title type='text'>The Monostable 555 Timer</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;The operation and output of the &lt;b&gt;555 Monostable&lt;/b&gt; is exactly the same as that for the transistorised  one we look at previously in the &lt;i&gt;Monostable Multivibrators&lt;/i&gt;   tutorial. The difference this time is that the two transistors have been  replaced by the 555 timer device. Consider the 555 Monostable circuit  below.&lt;/span&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-3389670430356639&quot;;
/* text_add */
google_ad_slot = &quot;6530551328&quot;;
google_ad_width = 468;
google_ad_height = 15;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR5Ap9HowEY956qedO2iqbXmOo9ugJCQeHz3VqSrahWdpz5SSY5KY7Xd64yM9nYK72nia1wpsfaO1lDyCktCo7QAgOB3EvxccfWrnMcQpChVe0fOqGW7c_HfTFARIhzQ9jH_ZtwS7H0UE/s1600/tim38.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;237&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR5Ap9HowEY956qedO2iqbXmOo9ugJCQeHz3VqSrahWdpz5SSY5KY7Xd64yM9nYK72nia1wpsfaO1lDyCktCo7QAgOB3EvxccfWrnMcQpChVe0fOqGW7c_HfTFARIhzQ9jH_ZtwS7H0UE/s320/tim38.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;When a negative (0V) pulse is applied to the trigger  input (pin 2) of the Monostable configured 555 Timer oscillator,  the internal comparator, (comparator No1) detects this input and &quot;sets&quot;  the state of the flip-flop, changing the output from a &quot;LOW&quot; state  to a &quot;HIGH&quot; state. This action inturn turns &quot;OFF&quot; the discharge  transistor connected to pin 7, thereby removing the short circuit across  the  external timing capacitor, &lt;span class=&quot;ntxt&quot;&gt;C1&lt;/span&gt;. This allows the timing capacitor to start to charge up through resistor, &lt;span class=&quot;ntxt&quot;&gt;R1&lt;/span&gt; until the voltage across the capacitor  reaches the threshold (pin 6) voltage of 2/3Vcc set up by the internal voltage divider network. At this point the comparators output  goes &quot;HIGH&quot; and &quot;resets&quot; the flip-flop back to its original state which inturn turns &quot;ON&quot; the transistor and discharges the  capacitor to ground through pin 7. This action also causes the output  to change its state back to the original stable &quot;LOW&quot; value awaiting  another trigger pulse to start the timing process over again.  Then as before, the Monostable Multivibrator has only ONE stable state.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The &lt;b&gt;Monostable 555 Timer&lt;/b&gt; circuit  triggers on a negative-going pulse applied to pin 2 and this  trigger pulse must be much shorter than the output pulse width allowing  time for the timing capacitor to charge and then discharge  fully. Once triggered, the 555 Monostable will remain in this &quot;HIGH&quot;  unstable output state until the time period set up by the  &lt;span class=&quot;ntxt&quot;&gt;R&lt;sub&gt;1&lt;/sub&gt;.C&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt; network has elapsed. The amount of time that the output voltage remains  &quot;HIGH&quot; or at a logic &quot;1&quot; level, is given by the following time constant equation.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #fff8c6; border: solid 1px #c8c8f5; margin-left: auto; margin-right: auto; padding: 20px; text-align: center; width: 200px;&quot;&gt;
&lt;img alt=&quot;555 Time Constant Equation&quot; border=&quot;0&quot; height=&quot;33&quot; src=&quot;http://www.electronics-tutorials.ws/waveforms/tim39.gif&quot; width=&quot;148&quot; /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Where, &lt;span class=&quot;ntxt&quot;&gt;t&lt;/span&gt; is in seconds, &lt;span class=&quot;ntxt&quot;&gt;R&lt;/span&gt; is in Ω&#39;s and &lt;span class=&quot;ntxt&quot;&gt;C&lt;/span&gt; in Farads.&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/2379765220104725558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/10/monostable-555-timer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/2379765220104725558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/2379765220104725558'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/10/monostable-555-timer.html' title='The Monostable 555 Timer'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR5Ap9HowEY956qedO2iqbXmOo9ugJCQeHz3VqSrahWdpz5SSY5KY7Xd64yM9nYK72nia1wpsfaO1lDyCktCo7QAgOB3EvxccfWrnMcQpChVe0fOqGW7c_HfTFARIhzQ9jH_ZtwS7H0UE/s72-c/tim38.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-3717891586525945214</id><published>2011-07-29T01:48:00.000-07:00</published><updated>2011-10-11T23:21:21.085-07:00</updated><title type='text'>LM3915/LM3916 VU Meter</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqExCsM7NOLuS3dom1R44ME-g2BJRwF6OEr0RCUSN8GbvbN79PS9owdroPpMyfWHBnD34KuhO6Su-fCD871i74jDt3tKb0PjZSb2wuAeUMFYKjPxMBMJk1YPKrPzPQwmlOLNmpcKjP3s8/s1600/Wire-the-LM3916-Circuit.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqExCsM7NOLuS3dom1R44ME-g2BJRwF6OEr0RCUSN8GbvbN79PS9owdroPpMyfWHBnD34KuhO6Su-fCD871i74jDt3tKb0PjZSb2wuAeUMFYKjPxMBMJk1YPKrPzPQwmlOLNmpcKjP3s8/s1600/Wire-the-LM3916-Circuit.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Features&lt;/b&gt;&lt;/span&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Fast responding electronic VU meter  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Drivers LEDs, LCDs, or vacuum fluorescents  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Bar or dot display mode externally selectable by user  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Expandable to displays of 70 dB  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Internal voltage reference from 1.2V to 12V  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Operates with single supply of 3V to 25V  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Inputs operate down to ground  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Output current programmable from 1 mA to 30 mA  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Input withstands ±35V without damage or false outputs  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Outputs are current regulated, open collectors  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Directly drives TTL or CMOS  &lt;/span&gt;&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;The internal 10-step divider is floating and can be referenced to a wide  range of voltages  &lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;The LM3916 is rated for operation from 0°C to +70°C. The LM3916N-1 is  available in an 18-lead molded DIP package.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-size: x-large;&quot;&gt;&lt;b&gt;Description&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;The LM3916 is a monolithic integrated circuit that senses analog voltage  levels and drives ten LEDs, LCDs or vacuum fluorescent displays, providing an  electronic version of the popular VU meter. One pin changes the display from a  bar graph to a moving dot display. LED current drive is regulated and  programmable, eliminating the need for current limiting resistors. The whole  display system can operate from a single supply as low as 3V or as high as  25V.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;The IC contains an adjustable voltage reference and an accurate ten-step  voltage divider. The high-impedance input buffer accepts signals down to ground  and up to within 1.5V of the positive supply. Further, it needs no protection  against inputs of ±35V. The input buffer drives 10 individual comparators  referenced to the precision divider. Accuracy is typically better than 0.2  dB.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Audio applications include average or peak level indicators, and power  meters. Replacing conventional meters with an LED bar graph results in a faster  responding, more rugged display with high visibility that retains the ease of  interpretation of an analog display.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;The LM3916 is extremely easy to apply. A 1.2V full-scale meter requires only  one resistor in addition to the ten LEDs. One more resistor programs the  full-scale anywhere from 1.2V to 12V independent of supply voltage. LED  brightness is easily controlled with a single pot.&lt;/span&gt;&lt;/li&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/3717891586525945214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/07/lm3915lm3916-vu-meter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3717891586525945214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3717891586525945214'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/07/lm3915lm3916-vu-meter.html' title='LM3915/LM3916 VU Meter'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqExCsM7NOLuS3dom1R44ME-g2BJRwF6OEr0RCUSN8GbvbN79PS9owdroPpMyfWHBnD34KuhO6Su-fCD871i74jDt3tKb0PjZSb2wuAeUMFYKjPxMBMJk1YPKrPzPQwmlOLNmpcKjP3s8/s72-c/Wire-the-LM3916-Circuit.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-1411060568848636306</id><published>2011-04-04T03:10:00.000-07:00</published><updated>2012-05-15T01:31:47.578-07:00</updated><title type='text'>Stereo FM/AM Receiver CXA1538</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkKTlbHn2KRHcYmqtt3F3GMFlxedQ3ugLuRVhWFldrXy8G2RTjLMJD-Glw5T1FNjW9PSOs-itbAv2fAHywsc991MqRoILY6T_Fnsbn-nDVdb-SBQ5Y5w1K-cxvwn4Hg27uXwc0yGWOzKc/s1600/FM-AM-Stereo-Receiver-With-CXA1538+good.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkKTlbHn2KRHcYmqtt3F3GMFlxedQ3ugLuRVhWFldrXy8G2RTjLMJD-Glw5T1FNjW9PSOs-itbAv2fAHywsc991MqRoILY6T_Fnsbn-nDVdb-SBQ5Y5w1K-cxvwn4Hg27uXwc0yGWOzKc/s320/FM-AM-Stereo-Receiver-With-CXA1538+good.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: justify;&quot;&gt;


&lt;span style=&quot;font-size: x-large;&quot;&gt;Description Of Stereo FM/AM Receiver CXA1538&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;The  CXA1538M/N/S is high performance  one-chip bipolar ICs designed for FM  stereo/AM radios. These include an  FM/AM front end, FM/AM IF &lt;/span&gt;&lt;span class=&quot;wp_keywordlink&quot; style=&quot;color: #134f5c; font-size: large;&quot;&gt;amplifier&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;,   FM/AM detection output and FM stereo demodulator output. Pin 4 is the   stereo indicator and VCO check pin. Therefore, in stereo mode (when   stereo indicator drive Tr Q2 is switched on), pin 4 voltage lowers down,   Q1 is cut off and VCO oscillation waveform can not be seen. In AM mode   as well, the oscillation waveform can not be seen as VCO turns off.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;Adjust the free run frequency at 76 kHz ±50 Hz. This IC has a built-in  auto blend &lt;/span&gt;&lt;span class=&quot;wp_keywordlink&quot; style=&quot;color: #134f5c; font-size: large;&quot;&gt;circuit&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt; and a MONO switch is not required as a rule. This  &lt;/span&gt;&lt;span class=&quot;wp_keywordlink&quot; style=&quot;color: #134f5c; font-size: large;&quot;&gt;circuit&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;  controls the separation in proportion to the signal level and  reduces  noise automatically for stereo reception below the mid electric  field  when the electric field strength reaches lower than about 40 dBμ.  When  the electric field strength turns below 10 to 15 dBμ, MONO  operation is  automatically activated. To switch MONO mode on externally,  ground pin  3 with 33 Kohm. This IC has a built-in soft muting &lt;/span&gt;&lt;span class=&quot;wp_keywordlink&quot; style=&quot;color: #134f5c; font-size: large;&quot;&gt;circuit&lt;/span&gt;&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;.   As shown in the following I/O characteristics diagram, 23 dB (Typ.)   muting is applied and noise level reduced during weak electric field and   out of tune instances.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: justify;&quot;&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
google_ad_client = &quot;ca-pub-3389670430356639&quot;;
/* text_add */
google_ad_slot = &quot;6530551328&quot;;
google_ad_width = 468;
google_ad_height = 15;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;Features Of Stereo FM/AM Receiver CXA1538&lt;/span&gt;&lt;/h3&gt;
&lt;ul style=&quot;color: #134f5c; text-align: justify;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Low current consumption (In FM mode ID=11.0 mA, in AM mode 8.5 mA, VCC=6.0 V)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Built-in LED drive circuit for tuning&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Built-in LED drive circuit for stereo indicator&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Built-in muting circuit for the FM band&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Few external parts&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/1411060568848636306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/04/stereo-fmam-receiver-cxa1538.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/1411060568848636306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/1411060568848636306'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/04/stereo-fmam-receiver-cxa1538.html' title='Stereo FM/AM Receiver CXA1538'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkKTlbHn2KRHcYmqtt3F3GMFlxedQ3ugLuRVhWFldrXy8G2RTjLMJD-Glw5T1FNjW9PSOs-itbAv2fAHywsc991MqRoILY6T_Fnsbn-nDVdb-SBQ5Y5w1K-cxvwn4Hg27uXwc0yGWOzKc/s72-c/FM-AM-Stereo-Receiver-With-CXA1538+good.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-6841331351083419272</id><published>2011-04-04T01:12:00.000-07:00</published><updated>2011-10-11T23:23:33.438-07:00</updated><title type='text'>AUDIO POWER METER circuit WITH LM3915</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7uArwcnQtIxQVNXFJb12DKEOewiuVyfH6C1B3sPQl8VEwtg8DEMtImA3p501q4KorR9FGeQgrAQ2QHU9c5F_brJldssx56Bvo5TjCsnOLw3W7v6OI2zhoE8wuKk7JN2ZNDJVHbZhgJPM/s1600/AUDIO+POWER+METER+WITH+LM3915.good.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7uArwcnQtIxQVNXFJb12DKEOewiuVyfH6C1B3sPQl8VEwtg8DEMtImA3p501q4KorR9FGeQgrAQ2QHU9c5F_brJldssx56Bvo5TjCsnOLw3W7v6OI2zhoE8wuKk7JN2ZNDJVHbZhgJPM/s1600/AUDIO+POWER+METER+WITH+LM3915.good.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;This VU (volume-unit) meter is capable of monitoring and displaying &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;power levels present at the speaker terminals of a stereo audio &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;power amplifier. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;The levels are displayed in ten discrete steps. This meter is not &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;designed to give an accurate display of the power levels.It is &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;designed to give an approximate visual indication of the audio &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;power output of each channel. For many situations - disco, parties this &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;is all which is required: the flashing LED&#39;s add atmosphere to the &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;situation. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;LM3915. This is a monolithic Dot/Bar Display Driver IC made by &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;National Semiconductor. It takes an analog voltage input on pin 5 &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;then drives 10 LED&#39;s providing a logarithmic 3dB/step analog display. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;When measuring power, a 3dB increase means that the power input &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;has doubled. As the power doubles, an additional LED will be lit until &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;the maximum is reached. The display can be bar or moving dot &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;depending on the connection of pin 9 to the positive supply. The LED &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;drive current is regulated which eliminates the need for current &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;limiting resistors. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;The supply voltage can be between 3V to 25V.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/6841331351083419272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/04/audio-power-meter-circuit-with-lm3915.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/6841331351083419272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/6841331351083419272'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/04/audio-power-meter-circuit-with-lm3915.html' title='AUDIO POWER METER circuit WITH LM3915'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7uArwcnQtIxQVNXFJb12DKEOewiuVyfH6C1B3sPQl8VEwtg8DEMtImA3p501q4KorR9FGeQgrAQ2QHU9c5F_brJldssx56Bvo5TjCsnOLw3W7v6OI2zhoE8wuKk7JN2ZNDJVHbZhgJPM/s72-c/AUDIO+POWER+METER+WITH+LM3915.good.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-3167274169188650056</id><published>2011-04-04T01:04:00.000-07:00</published><updated>2012-05-15T01:11:45.981-07:00</updated><title type='text'>Mini Audio Spectrum Analyzer LM3915</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJxlCcp4-wVYIk9CjfNG5pWzIBjLLZLk9jol4EIjLdiUAqcDF1ftbJkX-w5QFgDSSaRXc1IVY-wH1lXibz1YDYq5kmvFabkReCdlK1UTUmayRbDkMaJ4bcSJWWfhyphenhyphendF2Gg3APxV-BrTwc/s1600/Mini_Audio_Analyzer_Schematic.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJxlCcp4-wVYIk9CjfNG5pWzIBjLLZLk9jol4EIjLdiUAqcDF1ftbJkX-w5QFgDSSaRXc1IVY-wH1lXibz1YDYq5kmvFabkReCdlK1UTUmayRbDkMaJ4bcSJWWfhyphenhyphendF2Gg3APxV-BrTwc/s320/Mini_Audio_Analyzer_Schematic.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;The circuit has been designed to create a spectrum analyzer that will provide an analysis of &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;a sound to determine at various frequencies, the volume of sounds that make up the overall &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;sound spectrum. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-3389670430356639&quot;;
/* text_add */
google_ad_slot = &quot;6530551328&quot;;
google_ad_width = 468;
google_ad_height = 15;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: #990000; font-size: x-large;&quot;&gt;Circuit Explanation &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;The device is sensitive enough to determine the sound wave components of frequency and &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;amplitude with the changing of frequency and the width of an acoustic signal. The &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;proportionality of signal width is indicated by the brightness of LED as it turns ON while the &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;color indicates the proportionality of frequency. In order for the red LED to turn ON in strong &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;signal, the sensitivity of the input circuit is adjusted by resistor R2. The middle signal is &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;represented by a yellow LED while the low signal is indicated the green LED.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;The 10 LEDs in 3 lines comprise the display unit which is ensured the IC2 as it functions as &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;a counter decoder represented by the two gates ICa-b.the frequency of the counter is being &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;regulated by R6. No LED will turn ON in the absence of any signal in the input. The LEDs will &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;begin to flicker or blink depending on the intensity and tempo of the signal, once a signal &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;has been applied in the input. The values of the resistors R4 &amp;amp; R5 can be varied that will be &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;suitable for the desired requirements. Alternatively, this can be done by placing a 1K ohm &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;trimmer in place of R4 &amp;amp; R5 during the initial regulation and adjustment of the values. It can &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;be eventually removed and replaced with permanent resistors as soon as the desired &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;values are achieved. Additional LEDs can be added in connection to IC2 although this &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;circuit does not precisely measure the input signal. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;Part List &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;R1= 1K8Kohm &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;R2= 100Kohm trimmer &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;R3= 1Kohm &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;R4= 100 ohm…..1Kohm &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;R5= 100 ohm…..1Kohm &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;R6= 100Kohm trimmer &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;C1= 100nF 100V &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;D1….10= RED LED &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;D11….20= YELLOW LED &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;D21….30= GREEN LED &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #134f5c;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #134f5c; font-size: large;&quot;&gt;IC1= LM3915 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br style=&quot;color: #134f5c;&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/3167274169188650056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/04/mini-audio-spectrum-analyzer-lm3915.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3167274169188650056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3167274169188650056'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/04/mini-audio-spectrum-analyzer-lm3915.html' title='Mini Audio Spectrum Analyzer LM3915'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJxlCcp4-wVYIk9CjfNG5pWzIBjLLZLk9jol4EIjLdiUAqcDF1ftbJkX-w5QFgDSSaRXc1IVY-wH1lXibz1YDYq5kmvFabkReCdlK1UTUmayRbDkMaJ4bcSJWWfhyphenhyphendF2Gg3APxV-BrTwc/s72-c/Mini_Audio_Analyzer_Schematic.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-3886189096606008304</id><published>2011-03-30T20:45:00.000-07:00</published><updated>2011-10-11T23:28:20.528-07:00</updated><title type='text'>Controlling LED brightness using PWM</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCaeFlimg4MbKO58oJ5R8kQORlPIRl1MwmNO3LqQNlmW7w4NJzakPpEf_IejuGVqNvK1XT2jY93Q-V4uaZGE6HdZJOYRyvmhZHyHlWxkyl0fI9iGPJHfrMPw9KSzkJR4T_4cbETPbzkLU/s1600/600px-LED_PWM_titleshot.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCaeFlimg4MbKO58oJ5R8kQORlPIRl1MwmNO3LqQNlmW7w4NJzakPpEf_IejuGVqNvK1XT2jY93Q-V4uaZGE6HdZJOYRyvmhZHyHlWxkyl0fI9iGPJHfrMPw9KSzkJR4T_4cbETPbzkLU/s320/600px-LED_PWM_titleshot.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Pulse Width Modulation or PWM is a term you hear a lot if you are  interested in controlling power output using a microcontroller.  It has  many applications, although one of the most popular amongst hobbyists is  controlling the brightness of LEDs. In this tutorial we will cover the basic principles behind PWM and how  it can be used for LED brightness control including fading out LEDs  rather than just turning them on and off. &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This article will focus on some of the more specific details of  the PIC18F range of microcontrollers; however the techniques and  principles are the same for all other microcontroller products.  Some  microcontrollers include PWM modules which perform all of the hard work  for you; however this article focuses on the more universal (and  scalable) technique of using interrupts.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;&lt;span class=&quot;mw-headline&quot; style=&quot;font-size: x-large;&quot;&gt;Introduction&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;To control the brightness of an LED you can vary the power which is  sent to the LED, for example using a potentiometer (variable resistor),  the more power the LED receives the brighter it is, the less power it  receives the dimmer it is.   Microcontrollers are digital, meaning they  only have two ‘power’ states, on and off.  Although it is possible to  supply a varying power from a microcontroller (using a Digital to  Analogue Convertor (DAC)) this usually requires an additional chip. PWM provides the ability to ‘simulate’ varying levels of power by  oscillating the output from the microcontroller. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If, over a short duration of time, we turn the LED on for 50% and  off for 50%, the LED will appear half as bright since the total light  output over the time duration is only half as much as 100% on.  The  important factor here is the ‘duration’, if we turn the light on and off  too slowly the viewer will see the flashing of the LED not a constant  light output which appears dimmer. The pulsing width (in this case 50%)  is the important factor here.  By varying (or ‘modulating’) the pulsing  width we can effectively control the light output from the LED, hence  the term PWM or Pulse Width Modulation.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRw22J329PTOaZP7aApxSpNN6B7i01CM_xIysF9M8-qIXnM9B2RLfYsqZox2nICS9VmWL9AqoNp_0xm5MWKKjQ2v6SW8GXYKFjZOYU4f4TBHD7IxACqHR74pBA60tFgTriQKVmJRHviXA/s1600/Diagram.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRw22J329PTOaZP7aApxSpNN6B7i01CM_xIysF9M8-qIXnM9B2RLfYsqZox2nICS9VmWL9AqoNp_0xm5MWKKjQ2v6SW8GXYKFjZOYU4f4TBHD7IxACqHR74pBA60tFgTriQKVmJRHviXA/s320/Diagram.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;When using PWM it’s important to consider how slowly we can ‘flash’ the  LED so that the viewer does not perceive the oscillation.  The eye’s  inability to see rapid oscillations of light is caused by our  ‘persistence of vision’ which means, in very simple terms, we see the  light as on even after it has turned off.  This technique is how  televisions display a seemingly moving picture which is actually made up  of a number of different still frames displayed one after the other  very rapidly. The minimum speed of an LED oscillating which can be seen by the human  eye varies from person to person.  However, for the purposes of this  article, we will use a minimum speed of 50Hz, or 50 times per second.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h2&gt;&lt;span class=&quot;mw-headline&quot; style=&quot;font-size: x-large;&quot;&gt;Duty-Cycle&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGry0KC8HdQuvVsPh-aDpac8EKmIG0CprSEqvlBmFNkx4HKAQTbNML3nBnZgGUTiRQCmnP3X7p___vpgMcFujwApFeMIvIwYDt0yYvX7NERk-uweZSflFmBdWm_QZFbNshBfrNQdFgU5c/s1600/600px-PWMSlide24.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGry0KC8HdQuvVsPh-aDpac8EKmIG0CprSEqvlBmFNkx4HKAQTbNML3nBnZgGUTiRQCmnP3X7p___vpgMcFujwApFeMIvIwYDt0yYvX7NERk-uweZSflFmBdWm_QZFbNshBfrNQdFgU5c/s320/600px-PWMSlide24.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2&gt;&lt;span class=&quot;mw-headline&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;When using PWM there are certain terms which you will come across  again and again.  The most important term is ‘duty-cycle’.  The  duty-cycle refers to the total amount of time a pulse is ‘on’ over the  duration of the cycle, so at 50% brightness the duty-cycle of the LED is  50%.  The ‘cycle’ itself is measured (usually) in Hertz which gives us  the cycles-per-second.  So at 50Hz our cycle is 1 second divided by 50  cycles, which is 0.02 seconds.  Since we are using such small time  measurements it’s more useful to use microseconds (there are 1,000,000  microseconds in a second), this gives us a cycle duration of 20,000  microseconds which is 50 cycles per second or 50Hz. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;During the 20,000 microseconds we have to turn the LED either on  or off depending on the required duty-cycle so, for example, a 75%  duty-cycle requires the pulse to be on for 15,000 microseconds and then  off for 5,000 microseconds.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h2&gt;&lt;span class=&quot;mw-headline&quot;&gt; &lt;span style=&quot;font-size: x-large;&quot;&gt;PWM Resolution&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span class=&quot;mw-headline&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The accuracy with which we can control the duty-cycle is known as the  ‘PWM resolution’.  The higher our PWM resolution is, the more levels of  ‘brightness’ we can display.  However, since the duty-cycle is ‘fixed’  at 50Hz more resolution requires finer timing from the microcontroller.   The faster the microcontroller, the smaller durations it can time.   Another limiting factor is the code execution, the microcontroller must  not only time the ‘interrupt’ which causes the pulse generation, but  also run the code which controls the LED output, which must complete  before the next interrupt is called.  In addition, you probably want  your microcontroller to be performing tasks other than LED PWM  brightness control, so there has to be some spare execution time between  interrupts to do all of the other more general processing tasks. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;With PWM control of LEDs the primary advantage of higher PWM  resolutions is that it results in a smaller difference between ‘off’ and  the lowest possible brightness from the LED.  For example if our  duty-cycle is 20,000 microseconds (50Hz) and our resolution is only  10,000 microseconds, the difference between ‘off’ and the lowest  possible brightness will be 50% of the total possible brightness.  At a  resolution of 2,000 microseconds the difference would be 10% and so on.    Overall the ‘PWM resolution’ dictates the number of brightness  ‘levels’ we can support between completely off (0%) and completely on  (100%).  Again, the higher the resolution, the more timing accuracy and  processing overhead is required.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqNyAUG1eqRgOy_2vesWW43CXDN4b2J7QLdnE4OhjKoySgldXxTecybqcjtX1UIhZSqI3ix9_lUfuISTbAcnVFbTij2V1LbJ5zOl3egUiCzoh9Q93Sz_KNSvkCTY3Rc9Kig5cRjKSyWvI/s1600/600px-10_percent_resolution.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqNyAUG1eqRgOy_2vesWW43CXDN4b2J7QLdnE4OhjKoySgldXxTecybqcjtX1UIhZSqI3ix9_lUfuISTbAcnVFbTij2V1LbJ5zOl3egUiCzoh9Q93Sz_KNSvkCTY3Rc9Kig5cRjKSyWvI/s320/600px-10_percent_resolution.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #073763; font-size: large;&quot;&gt;For your application the required resolution and overall duty-cycle may  vary.  Simple displays require very little precision control (and  sometimes a little flickering is not the end of the world), for more  advanced displays the ability to control levels of brightness might be  critical (think of the issue of mixing colours using a RGB LED for  example).  The trade-off is simple, more control and accuracy requires  more and more microcontroller resources. In this article we will focus on an example which supplies a resolution  of 1,000 microseconds over a 20,000 microsecond duty-cycle (or 50Hz with  steps of 5% giving us 20 levels of brightness).  This level of control  and accuracy is suitable for many purposes. &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #073763;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: #073763; text-align: center;&quot;&gt;&lt;/div&gt;&lt;h2&gt;&lt;span class=&quot;mw-headline&quot;&gt; &lt;span style=&quot;font-size: x-large;&quot;&gt;Timing the Interrupt &lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;To perform the PWM using an interrupt we have to call the interrupt  once every 1,000 microseconds and decide if the LED should be on or off.   To do this we have to set up a timer on the microcontroller which  calls the interrupt when it expires. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;For this example we will take a Microchip PIC18F4550  microcontroller running at 48Mhz as the example.  48Mhz means the clock  of the microcontroller will ‘tick’ 48,000,000 times a second.  This is  referred to as ‘Fosc’ (the Frequency of oscillation).  A PIC18F4550  requires  4 ticks of the clock to process a single instruction.  This  means the smallest amount of time we can deal with using the  microcontroller is a quarter of the clock rate, i.e. 48,000,000 / 4 =  12,000,000 (this is also known as Fosc/4), if there are 1,000,000  microseconds in a second, this means we execute a command around once  every 0.0834 microseconds (12 MIPS (Million Instructions Per Second)).   Although this is not quite correct in PWM terms since to generate a  pulse we would need two commands (on and off) meaning a minimum cycle  time of 0.167 microseconds (this effectively limits the highest  frequency we can produce in software to 6Mhz, although this is not a  very practical maximum). &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If the Fosc/4 rate is 12,000,000 this means 1 microsecond of time  passes for every 12 processor cycles.  This means that 1,000  microseconds is equivalent to 12,000 processor cycles.  This is  important because with a 1:1 prescaler the PIC’s timers update once  every processor cycle (although this is referred to as a 1:1 prescale,  it really means no prescale at all).  The timer’s prescaler slows down  the rate at which the timer’s counter updates, with a 1:2 prescaler it  updates once every 2 processor cycles, with a 1:4 prescaler it updates  once every 4 processor cycles and so on. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;To use an 8-bit timer (you can use a 16-bit timer also if you  like) the maximum period the timer can measure is 256 ‘counts’ (0-255).   Therefore we have to pick a prescaler value which allows us to time  12,000 processor cycles in less than 256 timer ticks.   If we use a 1:64  prescaler we require 187.5 timer ticks to measure 1,000 microseconds: &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;12 processor cycles per microsecond, so 12 * 1000 = 12,000  processor cycles per 1,000 microseconds: 12,000 cycles / 64 (prescale)  =  187.5 timer ‘ticks’ &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Since we cannot count a ‘half’ we simply round the figure down to  the nearest integer (this means are resulting PWM will not be totally  accurate, but for the purpose of controlling LED brightness this is not  very critical).  The higher prescale value we use, the less accurate the  timing becomes.  This can be corrected by using a 16-bit timer which  allows us to count far more ticks and therefore use a lower prescale  value. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;For a PIC18F4550 this will result in code similar to the  following excerpt where the timer0 module is configured, enabled and set  to generate a low-priority interrupt:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;source-c&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;pre&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Enable interrupts with priority&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 IPEN &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
 &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Set up timer0&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 TMR0IP &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Set timer0 interrupt to low priority&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 TMR0IF &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Clear the timer0 interrupt flag&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 TMR0L &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;187&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Reset the timer0 counter&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
 T0CON &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; 0b11000101&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Timer0 on, 8-bit and 1:64 prescaler&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 TMR0IE &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Enable the timer0 interrupt&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
 &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Enable interrupts&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 GIEH &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Global enable all high priority interrupts&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 GIEL &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Global enable all low priority interrupts&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Once the timer is configured and running we need some interrupt code  to decide if the LED should be on or off for the interrupt.  Since we  have 20 possible brightness levels (and therefore 20 steps of resolution  in our PWM generation) we can simply use a counter which counts from  0-19 and is updated once every interrupt.  If the brightness of the LED  is represented using a number from 0-19 we simply have to check if the  PWM counter is higher or lower than the brightness number to see if the  LED should be on or off. &lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;source-c&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;pre&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Globals for PWM&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;unsigned&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; pwmCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;unsigned&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; ledBrightness &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
&lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Low priority interrupt procedure&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; interrupt low_priority lpHandler&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Is this timer0 interrupting?&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;TMR0IF&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ledBrightness &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; pwmCounter&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   LED0 &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; LED0 &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
  pwmCounter&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;++;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;pwmCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;19&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   pwmCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Get ready for the next interrupt&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  TMR0L &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;187&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Reset the timer0 counter&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  TMR0IF &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Clear the timer0 interrupt flag&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=1245625687100399912&amp;amp;postID=3886189096606008304&quot; id=&quot;Fading_the_LED&quot; name=&quot;Fading_the_LED&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;&lt;span class=&quot;mw-headline&quot;&gt; &lt;span style=&quot;font-size: x-large;&quot;&gt;Fading the LED &lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Since we know the cycle duration of the timer0 timer we can also use  this to provide fading effects on the LED.  To do this we have to store  two values for the LED brightness, one variable to store the actual  displayed brightness and another to store the target brightness for the  LED.  Since we only want fade off (you could adapt this easily to  support both fade on and fade off) if the target brightness is higher  than the actual brightness, we immediately bring the actual brightness  to the same level. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;However, for fading off we want to decrement the actual  brightness level one step at a time until it equals the target  brightness.  Since there are only 20 levels of brightness we cannot  simply subtract a level on each interrupt call since the interrupt call  is too fast for the fade to be perceived by the viewer (20 calls would  only consume 20,000 microseconds which is too fast to see). &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Instead we keep another counter which counts a number of  interrupt calls which should occur in between decrementing the actual  fade level.  Since we know the interrupt is called every 1,000  microseconds it’s pretty straight-forward to work out how many  interrupts we should count to get a desired fading rate.  For example,  if we want a fade from brightness level 19 to 0 to take 0.5 seconds we  simply divide the required time (in microseconds) by the interrupt time  of 1,000 microseconds and then by the number of levels.  Therefore 0.5  seconds (or 500,000 microseconds) = 500,000 / 1,000 = 500 /20 = 25.   This is shown in the following code excerpt: &lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;source-c&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;pre&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Globals for PWM&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;unsigned&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; pwmCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;unsigned&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; ledActualBrightness &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;unsigned&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; ledTargetBrightness &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;unsigned&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; fadeCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
&lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Low priority interrupt procedure&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; interrupt low_priority lpHandler&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kw4&quot; style=&quot;font-size: large;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Is this timer0 interrupting?&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;TMR0IF&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Perform the PWM brightness control&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ledActualBrightness &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; pwmCounter&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   LED0 &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; LED0 &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
  pwmCounter&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;++;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;pwmCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;19&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; pwmCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&amp;nbsp;
  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Perform fading control&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;ledTargetBrightness &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; ledActualBrightness&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   ledActualBrightness &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; ledTargetBrightness&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   fadeCounter&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;++;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;kw1&quot; style=&quot;font-size: large;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;fadeCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;24&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
    ledActualBrightness&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;--;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
    fadeCounter &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
   &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; 
&amp;nbsp;
  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Get ready for the next interrupt&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  TMR0L &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;187&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Reset the timer0 counter&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
  TMR0IF &lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nu0&quot; style=&quot;font-size: large;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;font-size: large;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;co1&quot; style=&quot;font-size: large;&quot;&gt;// Clear the timer0 interrupt flag&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
 &lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;font-size: large;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=1245625687100399912&amp;amp;postID=3886189096606008304&quot; id=&quot;Conclusions&quot; name=&quot;Conclusions&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;&lt;span class=&quot;mw-headline&quot;&gt; &lt;span style=&quot;font-size: x-large;&quot;&gt;Conclusions &lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Whilst it is perfectly possible to get PWM controls to work with LEDs  using pure guess work, calculating the desired optimum values makes  more efficient use of the available processor resources allowing you to  both do more with the microcontroller and/or control more LEDs  simultaneously from the same chip.  The same techniques shown here for  LEDs can also be used to control motors, analogue meter displays,  incandescent light bulbs, etc. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/3886189096606008304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/controlling-led-brightness-using-pwm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3886189096606008304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3886189096606008304'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/controlling-led-brightness-using-pwm.html' title='Controlling LED brightness using PWM'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCaeFlimg4MbKO58oJ5R8kQORlPIRl1MwmNO3LqQNlmW7w4NJzakPpEf_IejuGVqNvK1XT2jY93Q-V4uaZGE6HdZJOYRyvmhZHyHlWxkyl0fI9iGPJHfrMPw9KSzkJR4T_4cbETPbzkLU/s72-c/600px-LED_PWM_titleshot.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-2039772843509843673</id><published>2011-03-10T03:26:00.000-08:00</published><updated>2011-10-12T02:52:57.128-07:00</updated><title type='text'>InfraRed Proximity Detector</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgizAiEnV12_AAYDu786dLE4bTRI_bv8tHXjRrHUgHYRrMRFivDMDb8GOr2EDWlU41UHX5OzGfAVJluNB9ifstJBMPhcey9yHKWahOMwywrDJydy3oJ1p2PtdfWsfU-sfGtv8ps9w86Hwc/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgizAiEnV12_AAYDu786dLE4bTRI_bv8tHXjRrHUgHYRrMRFivDMDb8GOr2EDWlU41UHX5OzGfAVJluNB9ifstJBMPhcey9yHKWahOMwywrDJydy3oJ1p2PtdfWsfU-sfGtv8ps9w86Hwc/s1600/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;This proximity detector using an &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;infrared detector (Fig. 1) can be &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;used in various equipment like automatic &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;door openers and burglar alarms. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The circuit primarily consists of an infrared &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;transmitter and an infrared receiver. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The transmitter section consists of a &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;555 timer IC functioning in astable mode. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It is wired as shown in the figure. The &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;output from astable is fed to an infrared  &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;LED via resistor R4, which limits its operating current&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;. This circuit provides a frequency &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;output of 38 kHz at 50 per cent &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;duty cycle, which is required for the infrared &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;detector/receiver module. Siemens &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SFH5110-38 is a much better choice than &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SFH506-38. Siemens SFH5110-38 is turned &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;on by a continuous frequency of 38 kHz &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;with 50 per cent duty cycle, whereas &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SFH506 requires a burst frequency of 38k &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;to sense. Hence, SFH5110-38 is used.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyXzln_MOLjlOAqzr3c3itKLQLeOt1dcqz9P4g-SqKizAO_k7e5mhTAm0-5oGXvJIqZqFNefzLm3EmjqRX4TGGPrnYlXt5Z5WUGldJUN_Pto8Txe0yTuD-g4AU4W4LA0ROu9w0usLsPTI/s1600/02.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyXzln_MOLjlOAqzr3c3itKLQLeOt1dcqz9P4g-SqKizAO_k7e5mhTAm0-5oGXvJIqZqFNefzLm3EmjqRX4TGGPrnYlXt5Z5WUGldJUN_Pto8Txe0yTuD-g4AU4W4LA0ROu9w0usLsPTI/s1600/02.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The receiver section comprises an infrared &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;receiver module, a 555 monostable &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;multi vibrator, and an LED indicator. Upon &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;reception of infrared signals, 555 timer &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;(mono) turns on and remains on as long &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;as infrared signals are received. When the &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;signals are interrupted, the mono goes off &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;after a few seconds (period=1.1 R7xC6) &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;depending upon the value of R7-C6 combination. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Thus if R7=470 kilo-ohms and &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C6=4.7μF, the mono period will be around &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;2.5 seconds.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Both the transmitter and the receiver &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;parts can be mounted on a single breadboard &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;or PCB. The infrared receiver must &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;be placed behind the infrared LED to avoid &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;false indication due to infrared leakage. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;An object moving nearby actually &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;reflects the infrared rays emitted by the &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;infrared LED. The infrared receiver has &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;sensitivity angle (lobe) of 0-60 degrees, &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;hence when the reflected IR ray is &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;sensed, the mono in the receiver part is &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;triggered. The output from the mono may &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;be used in any desired fashion. For example, &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;it can be used to turn on a &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;light when a person comes nearby by &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;energizing a relay. The light would automatically &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;turn off after some time as the &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;person moves away and the mono pulse &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;period is over.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The sensitivity of the detector depends &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;on current-limiting resistor R4 in series &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;with the infrared LED. Range is approximately &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;40 cm. For 20-ohm value of R4 the &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;object at 25 cm can &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;be sensed, while for &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;30-ohm value of R4 &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;the sensing range reduces &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;by 22.5 cm.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/2039772843509843673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/infrared-proximity-detector.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/2039772843509843673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/2039772843509843673'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/infrared-proximity-detector.html' title='InfraRed Proximity Detector'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgizAiEnV12_AAYDu786dLE4bTRI_bv8tHXjRrHUgHYRrMRFivDMDb8GOr2EDWlU41UHX5OzGfAVJluNB9ifstJBMPhcey9yHKWahOMwywrDJydy3oJ1p2PtdfWsfU-sfGtv8ps9w86Hwc/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-7058538236774794781</id><published>2011-03-08T20:06:00.000-08:00</published><updated>2011-10-12T02:54:37.231-07:00</updated><title type='text'>RESISTOR COLOR CODE</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;A &lt;/span&gt;&lt;span style=&quot;font-size: large; font-weight: bold;&quot;&gt;resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; is a two-terminal  electrical component used in electronic circuits to oppose the flow of an electric current. If an object inserted in a  circuit displays a current flow which is proportional to the voltage across it, the ratio of voltage &lt;/span&gt;&lt;span style=&quot;font-size: large; font-style: italic; font-weight: bold;&quot;&gt;V&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; divided by current &lt;/span&gt;&lt;span style=&quot;font-size: large; font-style: italic; font-weight: bold;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; will be constant. This constant ratio is called resistance &lt;/span&gt;&lt;span style=&quot;font-size: large; font-style: italic; font-weight: bold;&quot;&gt;R=V/I&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;. It can be measured by a device called ohmmeter. In an ideal resistor &lt;/span&gt;&lt;span style=&quot;font-size: large; font-style: italic; font-weight: bold;&quot;&gt;R&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt; does not depend on the current. The Ohm&#39;s law states that &lt;/span&gt;&lt;span style=&quot;font-size: large; font-style: italic; font-weight: bold;&quot;&gt;I=V/R&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Since this is true only for materials that can be characterized by such a  resistance, it sounds like a tautology. In reality the Ohm&#39;s law should  be understood as the statement that there are substances [including  solids and liquids], called electrical conductors, that display this  kind of behavior, at least within certain range of currents. Physical  resistors are characterized by their resistance, maximum power they can  dissipate without failure, maximum working voltage, temperature  coefficient, noise, and parasitic inductance. The SI unit of electrical  resistance is the &lt;/span&gt;&lt;span style=&quot;font-size: large; font-weight: bold;&quot;&gt;ohm&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;, symbol Ω.  Its reciprocal quantity is conductance measured in siemens. Electronic  industry often uses a special coding system of colored stripes to  indicate the component&#39;s value and tolerance (see &lt;a href=&quot;http://www.smpspowersupply.com/resistor/resistorcolorcode.html#colorcodechart&quot;&gt;resistor color chart&lt;/a&gt;). These markings were originally published by Electronic Industries Alliance as EIA-RS-279, and currently are specified by &lt;a href=&quot;http://www.amazon.com/gp/product/B000Y2SD6C?ie=UTF8&amp;amp;tag=lazarspowerel-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B000Y2SD6C&quot;&gt;IEC 60062 Ed. 5.0&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=lazarspowerel-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=B000Y2SD6C&quot; style=&quot;border: medium none ! important; margin: 0px ! important;&quot; width=&quot;1&quot; /&gt;. This graphical calculator works both ways- you can get resistances from  color codes or generate the colour bands from ohm values (5%, 10% and  20% tolerance).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Note that only certain &quot;standard&quot; component values specified by  Electronic Industries Association (EIA) and IEC publication 60063 may  actually be available. See a complete &lt;a href=&quot;http://www.smpspowersupply.com/resistor/decadetable.html&quot;&gt;Standard Decade Resistor Values&lt;/a&gt; table. Resistors may have different number of color bands depending on  the tolerance. The same color scheme is used for capacitors (in  picofarads pF) and inductors (in microhenries µH), although they usually  have the numeric values actually stamped on them. Also see &lt;a href=&quot;http://www.smps.us/references.html&quot;&gt;electrical formulas&lt;/a&gt;  for the main circuit component connections in series and in parallel.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqo7Vr7H15x6lypX0L_0a2DwyzYEAx7669gKlKzfOQ5UkJILo_fcloMOs6ginpZG3PsQrsR1aoMNHHe_AocxP2gH5L-8uvTQ7FZN-EyiTYv0-FdO0RLnGWauLQQqqniU2YxXAcFYACgl0/s1600/resistor_color_code.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqo7Vr7H15x6lypX0L_0a2DwyzYEAx7669gKlKzfOQ5UkJILo_fcloMOs6ginpZG3PsQrsR1aoMNHHe_AocxP2gH5L-8uvTQ7FZN-EyiTYv0-FdO0RLnGWauLQQqqniU2YxXAcFYACgl0/s320/resistor_color_code.gif&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;float: left; height: 62px; margin-bottom: 10px; margin-right: 10px; margin-top: 10px; text-align: left; width: 470px;&quot;&gt;&lt;noscript&gt;&amp;amp;amp;amp;amp;lt;A HREF=&quot;http://ad.doubleclick.net/jump/SMPS.GSIAN;sz=468x60;ord=123456789?&quot; TARGET=&quot;_blank&quot;&amp;amp;amp;amp;amp;gt; &amp;amp;amp;amp;amp;lt;IMG SRC=&quot;http://ad.doubleclick.net/ad/SMPS.GSIAN;sz=468x60;ord=123456789?&quot; WIDTH=&quot;468&quot; HEIGHT=&quot;60&quot; BORDER=&quot;0&quot; ALT=&quot;Click here...&quot;&amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;lt;/A&amp;amp;amp;amp;amp;gt; &lt;/noscript&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/7058538236774794781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/resistor-color-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/7058538236774794781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/7058538236774794781'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/resistor-color-code.html' title='RESISTOR COLOR CODE'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqo7Vr7H15x6lypX0L_0a2DwyzYEAx7669gKlKzfOQ5UkJILo_fcloMOs6ginpZG3PsQrsR1aoMNHHe_AocxP2gH5L-8uvTQ7FZN-EyiTYv0-FdO0RLnGWauLQQqqniU2YxXAcFYACgl0/s72-c/resistor_color_code.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-6012881367474440744</id><published>2011-03-06T23:20:00.000-08:00</published><updated>2011-10-12T02:57:12.631-07:00</updated><title type='text'>Parrot Sounding AC door Bell</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho85oRx15bWsSdet9zOARK356eCyxC_jnIbbgNb5Vihsmn2b6m8mXBT7PsTDaAKzJoRTAFL50Fx09VMdjDWlb2-y9JAgDaRkOkRWbGf_US36vsGD3Na6hWAM9n0K77dqEj5WQp0Tbmelk/s1600/parrot01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho85oRx15bWsSdet9zOARK356eCyxC_jnIbbgNb5Vihsmn2b6m8mXBT7PsTDaAKzJoRTAFL50Fx09VMdjDWlb2-y9JAgDaRkOkRWbGf_US36vsGD3Na6hWAM9n0K77dqEj5WQp0Tbmelk/s1600/parrot01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Here is a mains-operated doorbell that produces parrot-likesweet voice  without requiring any musical IC. The circuit is cheap and easy to  construct. The AC mains is fed to the circuit without using any  step-down transformer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The complete circuit is shown in Fig. 1. The main components of the  circuit are a resistor-capacitor network, transistor BC337 and audio  output transformer X1. The oscillation frequency depends on the  combination of resistors R4 and R5 and capacitors C3, C4 and C5. When  switch S1 is closed, the audio signal generated due to oscillations is  amplified by transistor BC337 and parrot-like sound is reproduced from  loudspeaker LS1 connected across the secondary of transformer X1. Here  we have used an 8-ohm, 0.5W loudspeaker. The audio output transformer  (X1) is normally used in transistor radio. The function of the audio  output transformer is to transform the high impedance of the output  amplifier to match the much lower impedance of the speaker. This is  necessary to get an efficient transfer of the audio signal to the  speaker. If a wrong audio transformer is used, the result can be low  output and loss of tone quality.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgORvR5ZyzSZ_EjhBCnKFVszVLxM-wazkS4pIy0db6uQAUHWY436MMIzDgeCMR-iJHqLcZS7w-8MJB7Jq68EO9_3YLM-yfyQ_hHRlnJEgBXplbsBnJb0JNI0-tVMYmmLtnyXrp56Ehyphenhyphen1U8/s1600/parrot02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgORvR5ZyzSZ_EjhBCnKFVszVLxM-wazkS4pIy0db6uQAUHWY436MMIzDgeCMR-iJHqLcZS7w-8MJB7Jq68EO9_3YLM-yfyQ_hHRlnJEgBXplbsBnJb0JNI0-tVMYmmLtnyXrp56Ehyphenhyphen1U8/s1600/parrot02.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The audio frequency tone across  the speaker terminal is about 3 kHz.  The dimensions of the audio transformer used in the  experimental setup  are shown in Fig. 2. The circuit is powered directly from 220V AC mains.  The operating DC voltage obtained at the cathode of diode D1 is about  6V. However, if you press switch S1 continuously for a few seconds, the  maximum voltage developed at this point may go up to 20 volts, which  must be avoided to prolong the life of the circuit. R1 limits surge  current in the circuit. The parallel combination of resistor R1 and  capacitor C1 limits the circuit current to a safe level for circuit  operation. R2 across C1 provides DC path for the current as well as a  discharge path when the circuit is switched off. This is to prevent a  possible shock to the operator by charged capacitor C1.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/6012881367474440744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/parrot-sounding-ac-door-bell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/6012881367474440744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/6012881367474440744'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/parrot-sounding-ac-door-bell.html' title='Parrot Sounding AC door Bell'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho85oRx15bWsSdet9zOARK356eCyxC_jnIbbgNb5Vihsmn2b6m8mXBT7PsTDaAKzJoRTAFL50Fx09VMdjDWlb2-y9JAgDaRkOkRWbGf_US36vsGD3Na6hWAM9n0K77dqEj5WQp0Tbmelk/s72-c/parrot01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-1282134551451765994</id><published>2011-03-04T02:35:00.000-08:00</published><updated>2011-10-12T02:57:46.199-07:00</updated><title type='text'>STK4050V 200 watt amp</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBAExrB5e0KB4Hqbt7hJ2PjtWq_Xjmzr1qDhBsOCB_vCCz_nxkWLtzoKcZA4QSf_gRm5HfI0aYpYitM_ameOeqOTH7mbazGrgFXYDYyNcVnEegg5RmSALVXUxu7MDDbfNV_L_odNIl988/s1600/4050+pic.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBAExrB5e0KB4Hqbt7hJ2PjtWq_Xjmzr1qDhBsOCB_vCCz_nxkWLtzoKcZA4QSf_gRm5HfI0aYpYitM_ameOeqOTH7mbazGrgFXYDYyNcVnEegg5RmSALVXUxu7MDDbfNV_L_odNIl988/s320/4050+pic.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;This &lt;b&gt;&lt;i&gt;200 watt amp schematic circuit&lt;/i&gt;&lt;/b&gt; is based&amp;nbsp; on &lt;b&gt;&lt;i&gt;STK4050V high power audio amplifier&lt;/i&gt;&lt;/b&gt; IC and is designed do deliver up to 200 watts audio power on a single channel .&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;STK4050V 200 watt amp audio amplifier IC is pin compatibility with other STK amplifiers series .&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Because of current mirror circuit application the distortions are reduced to 0.08 % .&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;STK4050V supports addition of electronic circuits for thermal shutdown  and load-short protection circuit as well as pop noise muting which  occurs when the power supply switch is turned on and off.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The maximum output power of STK4050V audio amplifier is around 200  watts on 8 ohms load impedance with a 66 volts split power supply .&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;If you want to make this power amplifier you need to make a separate  thermal protection and load short protection circuit because the IC  don’t offer these kind of protection and you can destroy the chip and  the speaker box .&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVVGTaOiwVZFKdVa1-fKXLWMsci6o01VKUwQL4wDKj5nc2XozPLXf8GFB5vzlC0kxC-IpsQVp6NkskVyYLbK6UDuqElUfltpH5vHQhpRpndjkm1buelLbFZJF4mpAT0PRI3lU3aZLsPmQ/s1600/4050+spec.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVVGTaOiwVZFKdVa1-fKXLWMsci6o01VKUwQL4wDKj5nc2XozPLXf8GFB5vzlC0kxC-IpsQVp6NkskVyYLbK6UDuqElUfltpH5vHQhpRpndjkm1buelLbFZJF4mpAT0PRI3lU3aZLsPmQ/s320/4050+spec.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisFoofzRzy0sh20JiyffssfGw4woHZK9biwAUd3SA12Dg6l9dOgGklyyVRiUAq6WX-nY73pjsp-Hhn9EPUc86VFffYRXPmFNFW1UL_IgBEUFwYJGqyakp0K7FCT0Q2TFZEvw-GUKjUpqw/s1600/pcb.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisFoofzRzy0sh20JiyffssfGw4woHZK9biwAUd3SA12Dg6l9dOgGklyyVRiUAq6WX-nY73pjsp-Hhn9EPUc86VFffYRXPmFNFW1UL_IgBEUFwYJGqyakp0K7FCT0Q2TFZEvw-GUKjUpqw/s1600/pcb.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnwTB_8VEwNAx8avnPBlmn0Q1GnkELe7YDzlJMni0eyc6Cn3kCVsNV60N0G0kKaboZqVNhNd_2iX-8qOXgp66O2voLTULeqnr2U0ra8rQmpzs8lhp1wNNOtmvVueNo_m6pQm4JqYwAY7o/s1600/stk4050.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;242&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnwTB_8VEwNAx8avnPBlmn0Q1GnkELe7YDzlJMni0eyc6Cn3kCVsNV60N0G0kKaboZqVNhNd_2iX-8qOXgp66O2voLTULeqnr2U0ra8rQmpzs8lhp1wNNOtmvVueNo_m6pQm4JqYwAY7o/s320/stk4050.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRG3vl77ZZthHBtp1YJlvTMtYBCHJB33Zgxfk9FZUI3Fkxu9W5oplgCGLaqKldaurJYwdfDhneQ0PKQLO6TZRPb4Jke7Rp7ZPMAZratMPjqSd_cbZfE_g1uoAW2kWc1SFmSj4oX3gtSg/s1600/power.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoRG3vl77ZZthHBtp1YJlvTMtYBCHJB33Zgxfk9FZUI3Fkxu9W5oplgCGLaqKldaurJYwdfDhneQ0PKQLO6TZRPb4Jke7Rp7ZPMAZratMPjqSd_cbZfE_g1uoAW2kWc1SFmSj4oX3gtSg/s320/power.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/1282134551451765994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/stk4050v-200-watt-amp.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/1282134551451765994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/1282134551451765994'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/stk4050v-200-watt-amp.html' title='STK4050V 200 watt amp'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBAExrB5e0KB4Hqbt7hJ2PjtWq_Xjmzr1qDhBsOCB_vCCz_nxkWLtzoKcZA4QSf_gRm5HfI0aYpYitM_ameOeqOTH7mbazGrgFXYDYyNcVnEegg5RmSALVXUxu7MDDbfNV_L_odNIl988/s72-c/4050+pic.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-5515213619662579248</id><published>2011-03-03T19:10:00.000-08:00</published><updated>2011-10-12T02:58:31.378-07:00</updated><title type='text'>Musical light chaser circuit</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhwdh1eN3GReahbeml1JVCjvOQ2XRdkI-fxUcMYsJob-SxED2T1nPZJnEKPJKf5FcBGDyymlDAajv8NaDAtm-otGbuM4rR70fhKH1gFc55Up4ANDitZHRjAu-vufZQwCZUIApEIjcSCAU/s1600/music+light.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhwdh1eN3GReahbeml1JVCjvOQ2XRdkI-fxUcMYsJob-SxED2T1nPZJnEKPJKf5FcBGDyymlDAajv8NaDAtm-otGbuM4rR70fhKH1gFc55Up4ANDitZHRjAu-vufZQwCZUIApEIjcSCAU/s1600/music+light.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Circuit Diagram&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;H&lt;/b&gt;ere  is a simple state of the art musical chaser circuit that can be used in  discotheques or even at home if you are a little music crazy .The  working of the circuit is straight forward ,the condenser mic pickup the  sound and Q1amplifies it.This signal is fed to clock input of IC1 ,CD  4016.The IC is wired in divide by ten mode.The out put of IC1 is given  to clock input of IC2, CD4016.The out puts of IC 2  shown in the right  side of IC2  in circuit diagram will run run according to the frequency  of the input.Result ,we get 10 lights dancing in the according frequency  of the sound available.If no sound is there the first light will glow  steady.For saving space only arrangement for connecting only one lamp is  shown in the diagram.Make 9 lamp arrangements like the one shown in  figure and connect each if them to the each outputs of IC2 with the  other ends connected to the circuit as that of one shown in circuit.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The  power supply for the circuit is directly derived from the mains itself  using D2 , R9,C4,C3 and D3, which adds an extra  bonus of avoiding the  bulky transformer to make the circuit compact.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Notes &lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt; If the  output doesn&#39;t respond to the music and only the first light remains  glowing, adjust the level of input signal to IC1 by adjusting   R1   since the cause of problem is the low voltage level of input to  IC1.Problem is solved.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Some parts of the circuit are live with potential shock hazard.So be careful. &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/5515213619662579248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/musical-light-chaser-circuit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/5515213619662579248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/5515213619662579248'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/musical-light-chaser-circuit.html' title='Musical light chaser circuit'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhwdh1eN3GReahbeml1JVCjvOQ2XRdkI-fxUcMYsJob-SxED2T1nPZJnEKPJKf5FcBGDyymlDAajv8NaDAtm-otGbuM4rR70fhKH1gFc55Up4ANDitZHRjAu-vufZQwCZUIApEIjcSCAU/s72-c/music+light.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-5780044143247082031</id><published>2011-03-03T19:07:00.000-08:00</published><updated>2011-10-12T03:01:05.778-07:00</updated><title type='text'>Sound Level Meter</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuS6QxFSI-TJka0fYzLp2dRIosx64siLMH1OKXBl5d3A_nigtHxJfTR7v7a_9EbF73Ii6hM8rOph_jOVWTsIswBdpJVGlIl4mQ4HyUPDkV0vS566pIs-5hmLfoi2PgEwmWO1fnyLGuM4Y/s1600/000.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuS6QxFSI-TJka0fYzLp2dRIosx64siLMH1OKXBl5d3A_nigtHxJfTR7v7a_9EbF73Ii6hM8rOph_jOVWTsIswBdpJVGlIl4mQ4HyUPDkV0vS566pIs-5hmLfoi2PgEwmWO1fnyLGuM4Y/s1600/000.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Circuit Diagram&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This  is a one chip sound level meter that can be use for displaying sound  level of an amplifier or simply the sound level from a microphone.The  heart of the circuit is  IC LM 3915 Audio level IC.Even though it is a  stand alone IC , a peak detector based on Transistor BC 558  and diode  1N4001  is also included for better performance.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Tips&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Supply  voltage  can be  from 3V to 20V.The input is set for  audio line  voltage (1V peak to peak) and has a max  input voltage of 1.3V.   To  make the circuit use a moving dot display instead of  bar graph  display,Pin 9 can be should be disconnected from +V.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Parts List.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;C1                            2.2uF 25V Electrolytic Capacitor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;C2, C3                    0.1uF Ceramic Disc Capacitor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;R1, R3                    1K 1/4W Resistor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;R2                          10K 1/4W Resistor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;R4                          100K 1/4W Resistor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;R5                          1M 1/4W Resistor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;D1                          1N4001 Silicon Diode&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Q1                         BC 558 PNP Transistor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;LED1-LED10       Standard LED or LED Array&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;U1                         LM3915 Audio Level IC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;MISC                    Board, Wire, Socket For U1&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/5780044143247082031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/sound-level-meter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/5780044143247082031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/5780044143247082031'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/sound-level-meter.html' title='Sound Level Meter'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuS6QxFSI-TJka0fYzLp2dRIosx64siLMH1OKXBl5d3A_nigtHxJfTR7v7a_9EbF73Ii6hM8rOph_jOVWTsIswBdpJVGlIl4mQ4HyUPDkV0vS566pIs-5hmLfoi2PgEwmWO1fnyLGuM4Y/s72-c/000.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-4584369311586443015</id><published>2011-03-02T19:01:00.000-08:00</published><updated>2011-10-12T03:03:05.539-07:00</updated><title type='text'>Ultra Bright LED Lamp</title><content type='html'>&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This ultra-bright white LED lamp works on 230V AC with minimal power   consumption. It can be used to illuminate VU meters, SWR meters, etc.   Ultra-bright LEDs available in the market cost Rs 8 to 15. These LEDs   emit a 1000-6000mCd bright white light like welding arc and work on 3   volts, 10 mA. Their maximum voltage is 3.6 volts and the current is 25   mA. Anti-static precautions should be taken when handling the LEDs.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj9CQq0Wpzkz5OqKw_N_Ohe0uHDUlmNgc2fyBAGhyphenhypheng5kwkvAWb79n9KWPjH9IledXb_avmUMIPfBDXrgdSlAZJ7xxWQSgZqIE5qu_KY_O-6mGe2lgj0SZazCNOkcU_5nEzJmp9YLQ8nKg/s1600/ultra-bright-led-lamp-circuit-diagram.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj9CQq0Wpzkz5OqKw_N_Ohe0uHDUlmNgc2fyBAGhyphenhypheng5kwkvAWb79n9KWPjH9IledXb_avmUMIPfBDXrgdSlAZJ7xxWQSgZqIE5qu_KY_O-6mGe2lgj0SZazCNOkcU_5nEzJmp9YLQ8nKg/s320/ultra-bright-led-lamp-circuit-diagram.png&quot; style=&quot;color: red;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;The  LEDs in water-clear plastic package emit spotlight, while diffused  type  LEDs have a wide-angle radiation &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;pattern. This circuit (Fig. 1)  employs  capacitive reactance for limiting the current flow through the  LEDs on  application of mains voltage to the circuit. If we use only a  series  resistor for limiting the current with mains operation, the  limiting  resistor itself will dissipate around 2 to 3 watts of power,  whereas no  power is dissipated in a capacitor. The value of capacitor  is calculated  by using the following relationships:&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;color: blue;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;XC = 1/(2pfC) ohms  —————(a)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;XC = VRMS /I   ohms   ———— (b)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;where XC is  capacitive reactance in ohms, C is capacitance in  farads, I is the  current through the LED in amperes, f is the mains  frequency in Hz, and  Vrms is the input mains voltage. The 100-ohm, 2W  series resistor avoids  heavy ‘inrush’ current during transients. MOV at  the input prevents  surges or spikes, protecting the circuit. The  390-kilo-ohm, ½-watt  resistor acts as a bleeder to provide discharge  path for capacitor Cx  when mains supply is disconnected.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;The  zener diode at the output section prevents excess reverse voltage   levels appearing across the LEDs during negative half cycles. During   positive half cycle, the voltage across LEDs is limited to zener   voltage. Use AC capacitors for Cx. Filter capacitor C1 across the output   provides flicker-free light. The circuit can be enclosed in a CFL  round  case, and thus it can be connected directly to AC bulb holder  socket.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt; A  series combination of 16 LEDs (Fig. 2) gives a luminance (lux)   equivalent of a 12W bulb. But if you have two series combinations of 23   LEDs in parallel (total 46 LEDs as shown in Fig. 3), it gives light   equal to a 35W bulb. 15 LEDs are suitable for a table-lamp light. Diode   D1 (1N4007) and capacitor C1 act as rectifying and smoothing elements  to  provide DC voltage to the row of LEDs. For a 16-LED row, use Cx of  0.22  µF, 630V; C1 of 22 µF, 100V; and zener of 48V, 1W. Similarly, for  23+23  LED combination use Cx of 0.47 mF, 630V; C1 of 33 µF, 150V; and  zener  of 69V, 1W&lt;/span&gt;.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/4584369311586443015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/ultra-bright-led-lamp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/4584369311586443015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/4584369311586443015'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/03/ultra-bright-led-lamp.html' title='Ultra Bright LED Lamp'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj9CQq0Wpzkz5OqKw_N_Ohe0uHDUlmNgc2fyBAGhyphenhypheng5kwkvAWb79n9KWPjH9IledXb_avmUMIPfBDXrgdSlAZJ7xxWQSgZqIE5qu_KY_O-6mGe2lgj0SZazCNOkcU_5nEzJmp9YLQ8nKg/s72-c/ultra-bright-led-lamp-circuit-diagram.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-4695850881508345186</id><published>2011-02-28T02:33:00.000-08:00</published><updated>2011-10-12T03:03:43.868-07:00</updated><title type='text'>Fading LED by LM358</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi39TVXFKv9IoY1qVo7yPicBk2A8__DRHo0NU8HcIEy5V-ozG10Fv8DH5f3hneadbCsAcIkuEwjKaBT9GabM8WvSU9ykdmr-3t5IV1QnINF4FZJ2O2tvnKzAthTqfnHbVFyN9ihONXe4Ro/s1600/fading-led-by-lm358.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi39TVXFKv9IoY1qVo7yPicBk2A8__DRHo0NU8HcIEy5V-ozG10Fv8DH5f3hneadbCsAcIkuEwjKaBT9GabM8WvSU9ykdmr-3t5IV1QnINF4FZJ2O2tvnKzAthTqfnHbVFyN9ihONXe4Ro/s320/fading-led-by-lm358.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;This circuit uses op-amps to obtain a triangle wave. The triangle wave  causes the Led to slowly get brighter and then slowly get dimmer until  it isn’t producing any light. It then gets slowly brighter again. With  the components shown each cycle takes about 4 seconds. The capacitor and  the 4.7M resistor are the timing components. The circuit works best  when a high brightness Led is used.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/4695850881508345186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/02/fading-led-by-lm358.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/4695850881508345186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/4695850881508345186'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/02/fading-led-by-lm358.html' title='Fading LED by LM358'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi39TVXFKv9IoY1qVo7yPicBk2A8__DRHo0NU8HcIEy5V-ozG10Fv8DH5f3hneadbCsAcIkuEwjKaBT9GabM8WvSU9ykdmr-3t5IV1QnINF4FZJ2O2tvnKzAthTqfnHbVFyN9ihONXe4Ro/s72-c/fading-led-by-lm358.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-788336004669540032</id><published>2011-02-25T04:19:00.000-08:00</published><updated>2011-10-12T03:04:30.077-07:00</updated><title type='text'>Classic LED Flasher Circuit</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWWmZ0GYhNjnoSMKfA0xIi0_5ciJQTBfW3gB977FGEsYVhAWCm2w56xOm10BgiK5gnKwdlO8rerMuV9-vARtETeLKIC8nfAPVhxfG_Crz19HBN4sXG5m4cRpqTJWOQnQjuE7BiU5ul_cg/s1600/led-flasher-transistor.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWWmZ0GYhNjnoSMKfA0xIi0_5ciJQTBfW3gB977FGEsYVhAWCm2w56xOm10BgiK5gnKwdlO8rerMuV9-vARtETeLKIC8nfAPVhxfG_Crz19HBN4sXG5m4cRpqTJWOQnQjuE7BiU5ul_cg/s320/led-flasher-transistor.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This LED flasher circuit is a classic two transistor flip flop. This  flasher circuit is very popular and it’s usually the first circuit to  build when starting electronic circuit building hobby. Here is the  schematic diagram of the famous LED flasher circuit:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;How LED Flasher Circuit Works&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The circuit consist of two transistors,  two capacitors, four resistors, and two LEDs.&amp;nbsp; When the power supply is  first connected to this LED flasher circuit, both transistor is racing  to be triggered first by the base current through 100k resistor.  Actually when one transistor is triggered first than the other, the  first activated transistor will behave like a closed switch, so the LED  will turn ON and the base of the other transistor will be grounded  through the capacitor. This grounding keep the first transistor to be  activated and the second one to stay off untill the capacitor is charged  above the bias voltage needed to activate the second transistor. After  reaching this voltage, the second transistor will be switched on and now  the second transistor will turn ON the LED on its collector, turning  off the first transistor by grounding its base through the second  capacitor. This alternating process will be repeated forever until the  power supply is turned off. The flashing rate will depend on the  resistors (100k) and the capacitors values. You can change the values of  the capacitors to change the flashing frequency. Use a higher  capacitance value for lower flashing rate, and vice verse.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/788336004669540032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/02/classic-led-flasher-circuit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/788336004669540032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/788336004669540032'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2011/02/classic-led-flasher-circuit.html' title='Classic LED Flasher Circuit'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWWmZ0GYhNjnoSMKfA0xIi0_5ciJQTBfW3gB977FGEsYVhAWCm2w56xOm10BgiK5gnKwdlO8rerMuV9-vARtETeLKIC8nfAPVhxfG_Crz19HBN4sXG5m4cRpqTJWOQnQjuE7BiU5ul_cg/s72-c/led-flasher-transistor.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-8004622054202181065</id><published>2010-12-14T19:08:00.000-08:00</published><updated>2011-10-11T23:05:45.147-07:00</updated><title type='text'>Emergency Light &amp; Alarm</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://english.cxem.net/guard/guard17.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;139&quot; src=&quot;http://english.cxem.net/guard/guard17.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;left&quot; style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Device purpose:&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #45818e;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: large;&quot;&gt;This circuit is permanently plugged into a mains socket and NI-CD batteries are trickle-charged. When a power outage occurs, the lamp automatically illuminates. Instead of illuminating a lamp, an alarm sounder can be chosen.&lt;br /&gt;
When power supply is restored, the lamp or the alarm is switched-off. A switch provides a &quot;latch-up&quot; function, in order to extend lamp or alarm operation even when power is restored.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #45818e;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #45818e;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Circuit operation:&lt;/b&gt;&lt;/span&gt; &lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: large;&quot;&gt;Mains voltage is reduced to about 12V DC at C2&#39;s terminals, by means of the reactance of C1 and the diode bridge (D1-D4). Thus avoids the use of a mains transformer.&lt;br /&gt;
Trickle-charging current for the battery B1 is provided by the series resistor R3, D5 and the green LED D6 that also monitors the presence of mains supply and correct battery charging.&lt;br /&gt;
Q2 &amp;amp; Q3 form a self-latching pair that start operating when a power outage occurs. In this case, Q1 biasing becomes positive, so this transistor turns on the self latching pair.&lt;br /&gt;
If SW3 is set as shown in the circuit diagram, the lamp illuminates via SW2, which is normally closed; if set the other way, a square wave audio frequency generator formed by Q4, Q5 and related components is activated, driving the loudspeaker.&lt;br /&gt;
If SW1 is left open, when mains supply is restored the lamp or the alarm continue to operate. They can be disabled by opening the main on-off switch SW2.&lt;br /&gt;
If SW1 is closed, restoration of the mains supply terminates lamp or alarm operation, by applying a positive bias to the Base of Q2. &lt;/span&gt; &lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #990000;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Notes:&lt;/b&gt;&lt;/span&gt; &lt;/span&gt; &lt;/div&gt;&lt;ul style=&quot;color: #cc0000;&quot;&gt;&lt;li&gt;   &lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: large;&quot;&gt;Close SW2 &lt;b&gt;after&lt;/b&gt; the circuit is plugged.   &lt;/span&gt;   &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;   &lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: large;&quot;&gt;&lt;b&gt;Warning!&lt;/b&gt; The circuit is connected to 220Vac mains, then some parts   in the circuit board are subjected to &lt;b&gt;lethal potential!&lt;/b&gt;. Avoid touching   the circuit when plugged and enclose it in a plastic box. &lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div align=&quot;left&quot; style=&quot;color: #45818e;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: large;&quot;&gt;&lt;b&gt;Parts:&lt;/b&gt; &lt;/span&gt;                  &lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R1____________220K   1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R2____________470R   1/2W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R3____________390R   1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R4______________1K5  1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R5______________1R   1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R6_____________10K   1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R7____________330K   1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R8____________470R   1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #b4a7d6; font-size: large;&quot;&gt;R9____________100R   1/4W Resistor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;color: #c27ba0; font-size: large;&quot;&gt;C1____________330nF  400V Polyester Capacitor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #c27ba0; font-size: large;&quot;&gt;C2_____________10µF   63V Electrolytic Capacitor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #c27ba0; font-size: large;&quot;&gt;C3____________100nF   63V Polyester Capacitor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #c27ba0; font-size: large;&quot;&gt;C4_____________10nF   63V Polyester Capacitor&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: #f6b26b; font-size: large;&quot;&gt;D1-D5________1N4007 1000V 1A Diodes&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #f6b26b; font-size: large;&quot;&gt;D6______________LED  Green (any shape)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #f6b26b; font-size: large;&quot;&gt;D7___________1N4148   75V 150mA Diode&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;

Q1,Q3,Q4______BC547   45V 100mA NPN Transistors
Q2,Q5_________BC327   45V 800mA PNP Transistors

&lt;/span&gt;&lt;span style=&quot;color: #6aa84f; font-size: large;&quot;&gt;SW1,SW2________SPST Switches&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #6aa84f; font-size: large;&quot;&gt;SW3____________SPDT Switch&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: #351c75; font-size: large;&quot;&gt;LP1____________2.2V or 2.5V 250-300mA Torch Lamp&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: #351c75; font-size: large;&quot;&gt;SPKR___________8 Ohm Loudspeaker&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: #351c75; font-size: large;&quot;&gt;B1_____________2.5V Battery (two AA NI-CD rechargeable cells wired in series)&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: #351c75; font-size: large;&quot;&gt;PL1____________Male Mains plug&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #45818e;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #45818e;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: large;&quot;&gt;&amp;nbsp;Enjoy.......&lt;/span&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/8004622054202181065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/emergency-light-alarm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/8004622054202181065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/8004622054202181065'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/emergency-light-alarm.html' title='Emergency Light &amp; Alarm'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-5020353903084029528</id><published>2010-12-13T23:13:00.000-08:00</published><updated>2011-10-12T03:06:02.360-07:00</updated><title type='text'>LED STEREO SOUND LEVEL INDICATOR</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.electronicecircuits.com/wp-content/uploads/2009/11/LED-STEREO-SOUND-LEVEL-INDICATOR-for-audio-amplifier.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;151&quot; src=&quot;http://www.electronicecircuits.com/wp-content/uploads/2009/11/LED-STEREO-SOUND-LEVEL-INDICATOR-for-audio-amplifier.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Many circuits can be designed as level indicators by using a comparator  IC or transistors but these are costly and complex and also time  consuming. This circuit removes all the complexity by using a single  TA7666p IC. LEDs are used as a power indicator. Different colour LEDs  can be used for both the channels. One can also use an LED bargraph  display. INPUT signals should be given from preamplifiers. Otherwise,  LEDs will not glow at low volumes.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.electronicecircuits.com/wp-content/uploads/2009/11/LED-STEREO-sound-LEVEL-INDICATOR-circuit-for-audio-amplifier-circuit-diagram.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;http://www.electronicecircuits.com/wp-content/uploads/2009/11/LED-STEREO-sound-LEVEL-INDICATOR-circuit-for-audio-amplifier-circuit-diagram.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; style=&quot;height: 127px; width: 220px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;PARTS LIST&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;R1-R10&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1kΩ&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;R11&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;15kΩ&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;R12&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;15kΩ&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C1&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;0.1µF&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C2&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;0.1µF&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C3&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1µF 16V&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;C4&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1µF 16V&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;D1-D10&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;10 LEDs&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;IC1&lt;/span&gt;&lt;/td&gt; &lt;td style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;TA7666P&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;f you have mono systems, signals should be  given into both the channels. The input is given through two 4.7 µF  capacitors and two 18k resistors to pins 1 and 16 respectively.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.electronicecircuits.com/wp-content/uploads/2009/11/TA7666P-stereo-sound-level-indicator-ic.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.electronicecircuits.com/wp-content/uploads/2009/11/TA7666P-stereo-sound-level-indicator-ic.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;color: #134f5c;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Suitable for stereo LED driver&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Wide Supply Voltage Range : V&lt;sub&gt;CC &lt;/sub&gt;= 6V to 12V&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Low Quiscent Current : I&lt;sub&gt;CCQ&lt;/sub&gt; = 4ma (typ.) at V&lt;sub&gt;cc&lt;/sub&gt; = 9V&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Variable Voltage Gain Because of Inverting Amplifier&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Easy Arrangement for Dual 10 LED’s Driver by Series Connection of TA77666P and TA7667P&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/5020353903084029528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/led-stereo-sound-level-indicator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/5020353903084029528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/5020353903084029528'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/led-stereo-sound-level-indicator.html' title='LED STEREO SOUND LEVEL INDICATOR'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-3899962134330626386</id><published>2010-12-13T22:56:00.000-08:00</published><updated>2010-12-13T22:56:56.795-08:00</updated><title type='text'>Audio VU Meter</title><content type='html'>&lt;span style=&quot;color: #38761d;&quot;&gt;This circuit uses two quad op-amps to form an eight LED audio level  meter. The op-amp used in this particular circuit is the LM324.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://english.cxem.net/amplifier/amplifier57.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;315&quot; src=&quot;http://english.cxem.net/amplifier/amplifier57.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #b45f06;&quot;&gt;&lt;i&gt;The 1K resistors in the circuit are essential so that the LED&#39;s turn  on at different audio levels. There is no reason why you can&#39;t change these resistors, although anything above 5K may cause some of the LED&#39;s  to never switch on. This circuit is easily expandable with more op-amps, and is not limited to use with the LM324. Pretty much any  op-amp will work as long as you look up the pinouts and make sure everything is properly connected.&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;color: #b45f06;&quot;&gt;&lt;i&gt;The 33K resistor on the schematic is to keep the signal input to the  circuit at a low level. It is unlikely you will find a 33K resistor, so  the closest you can get should do. The value of this resistor may need to be  changed, so it is best you breadboard this circuit before actually constructing it on PCB. The circuit in it&#39;s current form will accept  line level inputs from sources such as the aux out on a Hi-Fi, all  though could be easily modified to accept speaker inputs.&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;color: #b45f06;&quot;&gt;&lt;i&gt;The audio + is connected to the main positive rail, while the audio -  is used for signal input. The 50k pot can be used to vary the  sensitivity of the circuit.&lt;/i&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/3899962134330626386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/audio-vu-meter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3899962134330626386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/3899962134330626386'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/audio-vu-meter.html' title='Audio VU Meter'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-6755399217533307189</id><published>2010-12-09T23:24:00.000-08:00</published><updated>2011-10-12T03:07:39.120-07:00</updated><title type='text'>Battery Charger for 12V SLA</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjipr_HGfh4dH7HBPvFyWDgyeb7-Y-43UfMWwW9gudocl-AJ9zG8_Xni9qshR8uBGw1B-Wy09wUb6abG7Jt3RGENQOyEm_5Vl1hD-kZ766BqGzEbvCHH1flaf8uv61Vbh95Cl-QMbuEc6k/s1600/sla.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjipr_HGfh4dH7HBPvFyWDgyeb7-Y-43UfMWwW9gudocl-AJ9zG8_Xni9qshR8uBGw1B-Wy09wUb6abG7Jt3RGENQOyEm_5Vl1hD-kZ766BqGzEbvCHH1flaf8uv61Vbh95Cl-QMbuEc6k/s1600/sla.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: #674ea7; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Battery Charger &lt;/span&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;for    12v SLA&lt;/span&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;(Sealed     Lead-Acid)&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #674ea7; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Batteries&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-family: Arial;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Arial;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i style=&quot;color: #674ea7;&quot;&gt;HOW THE CIRCUIT WORKS&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;   &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy4IOzenPILWJIerb7xinfOoVaoQmY3F0TBlMBwSdEI4o7P-PQICR0xZe6OyCZQ-mhn9VSGAlnGnTVIHzJZEzlp71CbDwX1USpu0Gg6RXNXU2374nfoZ3sa_IppVXulBrtSQifVEXfD2M/s1600/BatteryCharger12vSLA-blocks.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy4IOzenPILWJIerb7xinfOoVaoQmY3F0TBlMBwSdEI4o7P-PQICR0xZe6OyCZQ-mhn9VSGAlnGnTVIHzJZEzlp71CbDwX1USpu0Gg6RXNXU2374nfoZ3sa_IppVXulBrtSQifVEXfD2M/s320/BatteryCharger12vSLA-blocks.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: navy; font-family: Arial; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;The circuit does not turn on    until a battery is connected across the terminals as shown in the    diagram. (A push switch has been provided to start the circuit when a    totally flat battery is fitted.)&lt;br /&gt;
This action turns on the PNP transistor in the &quot;Turn ON&quot; block. The    resistance between the collector-emitter terminals decreases and the    indicator LED comes on. &lt;br /&gt;
The path to the bottom rail of the circuit goes through a signal diode,    the gate-cathode junction of the SCR and through two 1R8 resistors in    parallel.    This is why the LED illuminates.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: lime; font-family: Arial; font-size: large;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;left&quot; style=&quot;color: lime;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: Arial; font-size: large;&quot;&gt;&lt;b&gt;MUST USE AC PLUG PACK&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;Before we go any further, the circuit works on an &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;AC plug pack&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;. It must    be an AC supply as we do not want any electrolytics to be present on the    power rail as this will allow a very high charge-current to flow and    possibly damage the SCR. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   A DC supply will not allow the SCR to turn off, as it turns off when the    current through it falls to zero. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;color: #cc0000;&quot;&gt;THE CIRCUIT IS A HALF-WAVE RECTIFIER!&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;The circuit is actually a half-wave rectifier. It only charges the    battery on every half cycle. The plug pack doesn&#39;t like this as it leaves    residual flux in the core of the transformer and causes it    to overheat. But that&#39;s the only drawback with the circuit.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   The SCR turns on during each half cycle and current flows into the    battery. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   A voltage is developed across the two 1R8 resistors (in parallel) and this voltage is    fed into the 47u electrolytic. It charges and turns on the BC547    transistor. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   The transistor robs the SCR of gate voltage and the SCR turns off. The    energy in the 47u feeds into the transistor but after a short time it    cannot keep the transistor turned on. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   The transistor turns off and the SCR switches on and delivers another    pulse of current to    the battery. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   As the battery charges, its voltage increases and this is monitored by    the &quot;Voltage Monitor&quot; block. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   The circuit is very complex and one way to look at the operation is to    consider the top rail as a fixed rail and as the battery voltage    increases, the rail connected to the negative terminal of the battery is    pushed down. &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   This lets you see how the &quot;Turn On&quot; transistor is activated and how the    &quot;Voltage Monitor&quot; components create voltage drops across each of them.   &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-size: large;&quot;&gt;   The    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: large;&quot;&gt;   &quot;Voltage Monitor&quot; components consist of a transistor and zener    diode as well as an 8k2 resistor, the 1k pot, a    1k5 resistor, a 150R resistor and a signal diode. &lt;br /&gt;
The signal diode is actually part of the flasher circuit and we discuss    its operation later.&lt;br /&gt;
As the voltage across the battery increases to 13.75 volts, each    resistor in the &quot;voltage detecting network&quot;&amp;nbsp; will have a voltage drop across it that corresponds to the    resistance of the resistor. The diode will have a constant 0.7v across    it. &lt;br /&gt;
The voltage on the wiper of the pot will be about 3.25v and the voltage    across the zener will be 10v. This leaves 0.6v between the base and    emitter of the Voltage Monitor transistor. &lt;br /&gt;
This voltage is sufficient to turn the transistor ON. &lt;br /&gt;
When the    &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: large;&quot;&gt;   Voltage Monitor transistor turns ON, it robs the &quot;Turn On&quot; transistor of    base-emitter voltage and the circuit turns off. &lt;br /&gt;
The SCR has only two states: ON and OFF. &lt;br /&gt;
During the half-cycle when it is turned on, the battery gets a high    pulse of current and the current is only limited by the capability of    the plug pack. &lt;br /&gt;
There are no electrolytics to allow very high pulses of current to be    delivered and this is fortunate as the SCR is only a 0.8 amp device, but    will endure surges of 10amp for half a cycle. &lt;br /&gt;
Whenever the SCR is triggered into conduction during the half cycle of    its operation, it remains in conduction until the voltage delivered by    the plug pack falls to zero. This is when the SCR turns off. &lt;br /&gt;
When the plug pack delivers a negative voltage to the top rail and a    positive voltage to the lowest rail, the SCR is not triggered into    conduction and none of the components in the circuit deliver current to    the battery. The SCR delivers current for a few half-cycles and    then it is turned off for a few cycles. This is how the average    current delivered to the battery is controlled. &lt;br /&gt;
The circuit is designed to deliver about 300 - 400 mA average    charge-current. The actual value is determined by the 1R8 resistors. &lt;br /&gt;
When the battery is fully charged, the indicator LED begins to flash.   &lt;br /&gt;
The flashing is produced by the 2k2 resistor and 47u (connected to the    voltage monitor section). &lt;br /&gt;
When the battery is charging, the 47u is charged via the diode connected    to the BC557 transistor and through the 150R and signal diode to the    negative of the battery. &lt;br /&gt;
When the battery is fully charged, the Voltage Monitor section turns ON    and turns off the &quot;Turn ON&quot; section. &lt;br /&gt;
This removes the voltage on the positive side of the 47u and the    positive side is brought to the negative rail via the 2k2 resistor. This    brings down the negative side of the 47u and the 150R resistor is&amp;nbsp;    allowed to drop below the negative rail due to the presence of the    diode, as the diode becomes reverse-biased.&lt;br /&gt;
This holds the circuit in the &quot;off&quot; condition, as the voltage monitor    section sees an extra voltage across it and thinks the battery it is    &quot;over-charged.&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3BSY3nqSV87HvVyzBwTMCL-VkcTR3-TsVhED8-jArIPGq-l_H6D_kEBqHJkZUMqmlrnN40znZqLkezacXiIlP1VgwRy-y01uDq26O5ZUBu2jVlwHr3_drhiu_sbtPGHMEQgs4jjZP01M/s1600/BatteryCharger-13.76v.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3BSY3nqSV87HvVyzBwTMCL-VkcTR3-TsVhED8-jArIPGq-l_H6D_kEBqHJkZUMqmlrnN40znZqLkezacXiIlP1VgwRy-y01uDq26O5ZUBu2jVlwHr3_drhiu_sbtPGHMEQgs4jjZP01M/s1600/BatteryCharger-13.76v.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;left&quot; style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;The 47u discharges and the circuit turns ON to pump a small burst of    current into the battery to keep it charged. This is called &quot;Trickle    Mode&quot;&amp;nbsp; or &quot;Pulse Mode.&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;DEAD BATTERIES&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #45818e; font-size: large;&quot;&gt;The circuit will not turn on if the voltage of the battery you are    charging is less than 4 volts.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #45818e;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #45818e; font-size: large;&quot;&gt;   If you have a good battery that has been totally discharged, you can    manually start the charging process by connecting the battery and    pressing the button. This will raise the voltage &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br style=&quot;color: #45818e;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;color: #45818e; font-size: large;&quot;&gt;   on each cell and the circuit will take over in the normal way once the    voltage rises more than 4 volts. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;  &lt;span style=&quot;color: black; font-family: Arial;&quot;&gt;   &lt;span style=&quot;font-family: Arial; font-size: x-small;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;&lt;table bgcolor=&quot;#cccccc&quot; border=&quot;1&quot; id=&quot;table13&quot; style=&quot;width: 153px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;      &lt;td width=&quot;95&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;SCR: MCR100&lt;/span&gt;&lt;/td&gt;      &lt;td&gt;&lt;/td&gt;           &lt;/tr&gt;
&lt;tr&gt;      &lt;td width=&quot;95&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;type - 6&lt;/span&gt;&lt;/td&gt;      &lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;400v&lt;/span&gt;&lt;/td&gt;           &lt;/tr&gt;
&lt;tr&gt;      &lt;td width=&quot;95&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;current&lt;/span&gt;&lt;/td&gt;      &lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;0.8A&lt;/span&gt;&lt;/td&gt;           &lt;/tr&gt;
&lt;tr&gt;      &lt;td width=&quot;95&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Max current&lt;br /&gt;
for half cycle&lt;/span&gt;&lt;/td&gt;      &lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;10A&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;table bgcolor=&quot;#ccdead&quot; border=&quot;1&quot; id=&quot;table9&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;center&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;b&gt;      &lt;span style=&quot;color: red; font-family: comic sans MS; font-size: medium;&quot;&gt;PARTS       LIST&lt;br /&gt;
&lt;/span&gt;      &lt;span style=&quot;font-size: medium;&quot;&gt;12v SLA Battery Charger&lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: small;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Arial;&quot;&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;     &lt;/tr&gt;
&lt;tr&gt;      &lt;td height=&quot;36&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;2 - 1R8 0.5watt resistors&lt;br /&gt;
1 - 150R 0.25 watt resistor&lt;br /&gt;
1 - 180R&lt;br /&gt;
1 - 560R&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Verdana; font-size: x-small;&quot;&gt;1       - 1k5&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-small;&quot;&gt;&lt;br /&gt;
3 - 2k2 &lt;br /&gt;
1 - 3k3&lt;br /&gt;
1 - 4k7&lt;br /&gt;
1 - 8k2&lt;br /&gt;
1 - 1k mini trim pot&lt;br /&gt;
&lt;br /&gt;
1 - 1n ceramic&lt;br /&gt;
2 - 47u 25v electrolytics&lt;br /&gt;
&lt;br /&gt;
1 - 5mm red LED&lt;br /&gt;
&lt;br /&gt;
4 - 1N4148 signal diodes&lt;br /&gt;
1 - 10v 0.25watt zener&lt;br /&gt;
1 - BC 547 transistor&lt;br /&gt;
2 - BC557 transistors&lt;br /&gt;
1 - MCR100-6 SCR &lt;br /&gt;
1 - 1m red lead&lt;br /&gt;
1 - 1m black lead&lt;br /&gt;
2 - alligator clips&lt;br /&gt;
1 - 2m very fine solder&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;&lt;b&gt;1 - SLA Battery Charger PCB&lt;br /&gt;
&lt;br /&gt;
&lt;/b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Also required:&lt;br /&gt;
1 - 12v AC transformer (500mA AC)&lt;br /&gt;
1 - power lead&lt;br /&gt;
1 - case&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;color: navy; font-family: Arial;&quot;&gt;&lt;span style=&quot;color: black; font-family: Arial; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/6755399217533307189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/battery-charger-for-12v-sla.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/6755399217533307189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/6755399217533307189'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/12/battery-charger-for-12v-sla.html' title='Battery Charger for 12V SLA'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjipr_HGfh4dH7HBPvFyWDgyeb7-Y-43UfMWwW9gudocl-AJ9zG8_Xni9qshR8uBGw1B-Wy09wUb6abG7Jt3RGENQOyEm_5Vl1hD-kZ766BqGzEbvCHH1flaf8uv61Vbh95Cl-QMbuEc6k/s72-c/sla.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-1963993455571044042</id><published>2010-11-29T22:57:00.000-08:00</published><updated>2010-11-29T22:57:11.673-08:00</updated><title type='text'>Knight Rider Lights Project</title><content type='html'>&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;This is a simple knight Rider light system that can be built using well known&amp;nbsp; popular integrated circuits. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Circuit diagram for standard LED output.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMIiNal7iGmsoSiTLAFV59_M6Lu7RiYvBo35uhOHz9K0b3exZqW3Y6uw13XilWlu8WrgWPQULb2Yo4q7zFTDTBfey2t0BX_d5gphPNlauogokriPHMgvsvx7hxXcxqHGz1YjgECX03DUA/s1600/knight.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMIiNal7iGmsoSiTLAFV59_M6Lu7RiYvBo35uhOHz9K0b3exZqW3Y6uw13XilWlu8WrgWPQULb2Yo4q7zFTDTBfey2t0BX_d5gphPNlauogokriPHMgvsvx7hxXcxqHGz1YjgECX03DUA/s320/knight.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Hq5VunMPUfCNYFa1cmMDfm2pwGYYSWgNAGHH0W2tHyFX8R7MQz0uA9QR9girC05uS3LJkHA9aH801FViFbOsqgEQY3eF8sOUyBTmOLsliC5_oECSbMwNso_vkNnhV1HcxZKri-7k5xw/s1600/v2.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8Hq5VunMPUfCNYFa1cmMDfm2pwGYYSWgNAGHH0W2tHyFX8R7MQz0uA9QR9girC05uS3LJkHA9aH801FViFbOsqgEQY3eF8sOUyBTmOLsliC5_oECSbMwNso_vkNnhV1HcxZKri-7k5xw/s320/v2.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This set up is ideal for running off a car battery.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
You can use 12V bulbs for the output, simply substitute the IC for the LEDs,  the bulbs are then connected to&amp;nbsp; the IC&#39;s outputs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Components List&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;td align=&quot;center&quot; colspan=&quot;5&quot;&gt;&lt;h3&gt;&lt;span style=&quot;color: #ffee00;&quot;&gt;PARTS LIST&lt;/span&gt;&lt;/h3&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; colspan=&quot;5&quot;&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #00dddd;&quot;&gt;ICs&lt;/span&gt;&lt;/b&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #00dddd;&quot;&gt;DIODES&lt;/span&gt;&lt;/b&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #00dddd;&quot;&gt;BULBS&lt;/span&gt;&lt;/b&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #00dddd;&quot;&gt;RESISTORS&lt;/span&gt;&lt;/b&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #00dddd;&quot;&gt;CAPACITORS&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot;&gt;1*NE555&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;8* 1N4148&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt; &lt;td align=&quot;center&quot; style=&quot;color: black;&quot;&gt;6* 1K&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1* 10uF&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td align=&quot;center&quot;&gt;1* 4017B&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1* 3.3K&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1* 0.01uF&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td align=&quot;center&quot; colspan=&quot;3&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/td&gt; &lt;td align=&quot;center&quot; style=&quot;color: black;&quot;&gt;1* 8.2K&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;1* 6.8nF&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td align=&quot;center&quot;&gt;&lt;/td&gt; &lt;td align=&quot;center&quot; style=&quot;color: black;&quot;&gt;6* LED&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt; &lt;td align=&quot;center&quot;&gt;&lt;/td&gt; &lt;td align=&quot;center&quot; style=&quot;color: black;&quot;&gt;1* 10K&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt; &lt;td align=&quot;center&quot; rowspan=&quot;4&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; colspan=&quot;3&quot; style=&quot;color: black;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bulb Version&lt;/i&gt;&lt;/td&gt; &lt;td align=&quot;center&quot; style=&quot;color: black;&quot;&gt;1* 100K&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt;&lt;td align=&quot;center&quot; style=&quot;color: black;&quot;&gt;1* ULN2001N&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;&amp;nbsp; &lt;/td&gt;&lt;td align=&quot;center&quot; style=&quot;color: black;&quot;&gt;6* 12V/2.2W&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt; &lt;td align=&quot;center&quot; rowspan=&quot;2&quot;&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr style=&quot;color: black;&quot;&gt;&lt;td align=&quot;center&quot; colspan=&quot;3&quot;&gt;Plus 6* suitable Bulb Holders.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/1963993455571044042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/11/knight-rider-lights-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/1963993455571044042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/1963993455571044042'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/11/knight-rider-lights-project.html' title='Knight Rider Lights Project'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMIiNal7iGmsoSiTLAFV59_M6Lu7RiYvBo35uhOHz9K0b3exZqW3Y6uw13XilWlu8WrgWPQULb2Yo4q7zFTDTBfey2t0BX_d5gphPNlauogokriPHMgvsvx7hxXcxqHGz1YjgECX03DUA/s72-c/knight.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-2390850311738555531</id><published>2010-11-28T19:32:00.000-08:00</published><updated>2013-07-18T20:20:20.897-07:00</updated><title type='text'>Led Clock</title><content type='html'>&lt;h2&gt;
12Hr Led clock using&amp;nbsp; 16F628.&lt;/h2&gt;
&lt;br /&gt;
Using only 2 capacitors, 3 resistors, 4 seven-segment Display, 1 xtal, 2  switches n.o. and 1 Microcontroller PIC, you can build this Digital Led  Clock. you can use common anode or common cathode display, just select  the display type. Here is the pinout information:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Pin 3 defines the display type. If you will use common cathode display,  connect to negative. For common anode, connect to positive. Here is a  example circuit:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
The minutes displays are upside down. &lt;br /&gt;
For the capacitors, I used 30pf. You have to read the xtal manufacturer  specifications to know the capacitor value recommended. Short  connections on xtal is a must to keep accuracy.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg78CdlQtZ9minsB-6qisG81RnCz22pRdSxgZTisIsqY8oS5EOYmt-G7joBdAJbf6cPRXFlueM73j-Fymhs3jQnvZrNTMax4nGeDXNPJPk348UIGuIgx4QPhLZdJke-xPrw5Z-aI6KYLNg/s1600/clockv3.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg78CdlQtZ9minsB-6qisG81RnCz22pRdSxgZTisIsqY8oS5EOYmt-G7joBdAJbf6cPRXFlueM73j-Fymhs3jQnvZrNTMax4nGeDXNPJPk348UIGuIgx4QPhLZdJke-xPrw5Z-aI6KYLNg/s320/clockv3.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Use your PIC programmer to program your PIC16F628 device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you Jose.</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/2390850311738555531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/11/led-clock.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/2390850311738555531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/2390850311738555531'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/11/led-clock.html' title='Led Clock'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg78CdlQtZ9minsB-6qisG81RnCz22pRdSxgZTisIsqY8oS5EOYmt-G7joBdAJbf6cPRXFlueM73j-Fymhs3jQnvZrNTMax4nGeDXNPJPk348UIGuIgx4QPhLZdJke-xPrw5Z-aI6KYLNg/s72-c/clockv3.bmp" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1245625687100399912.post-7366386095025596350</id><published>2010-11-23T23:28:00.000-08:00</published><updated>2010-11-23T23:28:35.731-08:00</updated><title type='text'>Bar Graph LED Project</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtcreZPQ8Joy7hi-9S_kD0V6HwyUIqOYTlI6pwSdhZVYp1nkwXFCbA0zOGsUBQhmHx2a-Wg_J4nT9VQcWiAIxIIdVcvD_UuG35zvoyhY4fg1iruhYQtxY1q3ImSD0mqNVnaCeOHWrAJnc/s1600/bar.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtcreZPQ8Joy7hi-9S_kD0V6HwyUIqOYTlI6pwSdhZVYp1nkwXFCbA0zOGsUBQhmHx2a-Wg_J4nT9VQcWiAIxIIdVcvD_UuG35zvoyhY4fg1iruhYQtxY1q3ImSD0mqNVnaCeOHWrAJnc/s320/bar.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
This bar graph LED battery level indicator project is based on LM3914 monolithic&amp;nbsp;&lt;span style=&quot;color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;background-color: transparent; border-bottom: 1px solid blue; color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-weight: 400; position: relative;&quot;&gt;&lt;/span&gt;&lt;/span&gt;ic from National Semiconductor that senses the voltage levels of the&amp;nbsp;&lt;span style=&quot;color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: x-small; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;background-color: transparent; border-bottom: 1px solid blue; color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-weight: 400; position: relative;&quot;&gt;&lt;/span&gt;&lt;/span&gt;battary and drives the 10 light emitting diodes based on the voltage level that is detected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&amp;nbsp;It  provides a linear&amp;nbsp;&lt;a class=&quot;kLink&quot; href=&quot;http://www.electronics-project-design.com/BarGraphLED.html#&quot; id=&quot;KonaLink2&quot; style=&quot;position: static; text-decoration: underline ! important;&quot; target=&quot;undefined&quot;&gt;&lt;span style=&quot;color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;background-color: transparent; border-bottom: 1px solid blue; color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-weight: 400; position: relative;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;analog display output and has a pin that can be configured to display the output in moving dot or bar graph. The current driving the LEDs is regulated and programmable hence limiting&amp;nbsp;&lt;a class=&quot;kLink&quot; href=&quot;http://www.electronics-project-design.com/BarGraphLED.html#&quot; id=&quot;KonaLink3&quot; style=&quot;position: static; text-decoration: underline ! important;&quot; target=&quot;undefined&quot;&gt;&lt;span style=&quot;color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-weight: 400; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;background-color: transparent; border-bottom: 1px solid blue; color: blue ! important; font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-weight: 400; position: relative;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;resistors are not required. &lt;br /&gt;
&lt;br /&gt;
The schematic shows how the various components are connected. Switch S1 is used to change the display type from moving dot to bar graph type. When S1 is ON, the display type is bargraph but when it is OFF the display changes to moving dot type. VR1 is used to set the lower limit of the display. By using a variable DC power supply, set the VBAT to 10.5V. Adjust VR1 until the LED L1 turns ON. Next, set the VBAT to 15V, adjust VR2 until all the LEDs turn ON (When S1 is ON). The specifications of LM3914 can be obtained from  National Semiconductor Website.   &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Parts List&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;263&quot; src=&quot;http://www.electronics-project-design.com/images/BargraphledPartsList.GIF&quot; width=&quot;360&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX18UAHadJNemcyyUXvXGKjh7SbxWAl3nlZMaeuNLyOc1RQayt6uPljn161aPGjfyGg0Ya2DrIvlQ1HRMRtklt6sjCD4ec0F7uB-2xnx4rKMRbCIK38DRH12y-FnKgmzj_Djnz7H5NUQQ/s1600/cct1.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX18UAHadJNemcyyUXvXGKjh7SbxWAl3nlZMaeuNLyOc1RQayt6uPljn161aPGjfyGg0Ya2DrIvlQ1HRMRtklt6sjCD4ec0F7uB-2xnx4rKMRbCIK38DRH12y-FnKgmzj_Djnz7H5NUQQ/s320/cct1.bmp&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojects4everyone.blogspot.com/feeds/7366386095025596350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/11/bar-graph-led-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/7366386095025596350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1245625687100399912/posts/default/7366386095025596350'/><link rel='alternate' type='text/html' href='http://electronicprojects4everyone.blogspot.com/2010/11/bar-graph-led-project.html' title='Bar Graph LED Project'/><author><name>Manoj Palliyage</name><uri>http://www.blogger.com/profile/11635261856040982444</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtcreZPQ8Joy7hi-9S_kD0V6HwyUIqOYTlI6pwSdhZVYp1nkwXFCbA0zOGsUBQhmHx2a-Wg_J4nT9VQcWiAIxIIdVcvD_UuG35zvoyhY4fg1iruhYQtxY1q3ImSD0mqNVnaCeOHWrAJnc/s72-c/bar.bmp" height="72" width="72"/><thr:total>0</thr:total></entry></feed>