<?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-7544910319096087273</id><updated>2024-09-14T22:30:56.448-07:00</updated><title type='text'>For Every 1</title><subtitle type='html'>This blog is for circuit hungry people. Those people that are interested in practical work rather than software. This blog is for Engineers and Technicians who chooses either Electrical, Electronic, Telecom as there field. From basics to High Level Projects circuit diagrams with details are given in this blog that not only helps in developing practical knowledge but also strong the theoretical knowledge of students.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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>88</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7544910319096087273.post-1410355342920933133</id><published>2014-10-19T02:00:00.002-07:00</published><updated>2014-10-19T02:00:49.542-07:00</updated><title type='text'>http://monthlyyouth.com/?ref=583095</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
http://monthlyyouth.com/?ref=583095&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/1410355342920933133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2014/10/httpmonthlyyouthcomref583095.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1410355342920933133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1410355342920933133'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2014/10/httpmonthlyyouthcomref583095.html' title='http://monthlyyouth.com/?ref=583095'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-6423137786978924093</id><published>2011-04-28T16:36:00.000-07:00</published><updated>2011-04-28T16:41:54.183-07:00</updated><title type='text'>Universal Preamplifier</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhERGRpqCcdwwi9AV3rwjudCY9PARm2MLrKjjca1P8TmF132BOyTYjfh4jkqH7MPZTJlplfSmqyrxtvyexprD-ECqP7jvNFzzIsx6fluVWTROmfVRL0U2cyrc17b2Uql-dc-z14Z1_tZQ/s1600/UNIVERSAL+PREAMPLIFIER.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 242px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhERGRpqCcdwwi9AV3rwjudCY9PARm2MLrKjjca1P8TmF132BOyTYjfh4jkqH7MPZTJlplfSmqyrxtvyexprD-ECqP7jvNFzzIsx6fluVWTROmfVRL0U2cyrc17b2Uql-dc-z14Z1_tZQ/s320/UNIVERSAL+PREAMPLIFIER.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5600782947918597778&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Audio Amplifier systems with preamplifiers have various characteristics that includes low gain linear response for tuners, high gain RIAA equalization for magnetic phone cartridges and high gain liner response for magnetic microphones.&lt;br /&gt;       &lt;br /&gt;       To meet this broad requirement, most amplifier         designers include a single universal preamplifier         circuit. Basically a high-gain linear amplifier, its         characteristics can be altered by switching         alternative resistor filter networks into its         feedback system.&lt;br /&gt;       &lt;br /&gt;       For example, when the selector switch is set to the         Mag phono position, alternative input sources can be         selected by S1-a, and appropriate linear-response         gain control feedback resistors 220K, 470K, and 1M         are now selected by S1-b. Those feedback resistor         values are selected between 10 kilo ohms and 10         megohms to suit individual listener tastes. Circuit         gain will be proportional, to the feedback resistor         value.</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/6423137786978924093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2011/04/universal-preamplifier.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6423137786978924093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6423137786978924093'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2011/04/universal-preamplifier.html' title='Universal Preamplifier'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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/AVvXsEhERGRpqCcdwwi9AV3rwjudCY9PARm2MLrKjjca1P8TmF132BOyTYjfh4jkqH7MPZTJlplfSmqyrxtvyexprD-ECqP7jvNFzzIsx6fluVWTROmfVRL0U2cyrc17b2Uql-dc-z14Z1_tZQ/s72-c/UNIVERSAL+PREAMPLIFIER.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7544910319096087273.post-8836772197394029945</id><published>2009-08-26T15:22:00.000-07:00</published><updated>2009-08-26T15:23:08.885-07:00</updated><title type='text'></title><content type='html'>&lt;object class=&quot;dm_videowall logo_left&quot; width=&quot;708&quot; height=&quot;228&quot; data=&quot;http://www.dailymotion.com/videowall/en/featured/channel/fun&amp;amp;zap=1&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.dailymotion.com/videowall/en/featured/channel/fun&amp;amp;zap=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/8836772197394029945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/blog-post_6475.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8836772197394029945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8836772197394029945'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/blog-post_6475.html' title=''/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-2687011778126586810</id><published>2009-08-26T15:18:00.001-07:00</published><updated>2009-08-26T15:18:40.358-07:00</updated><title type='text'></title><content type='html'>&lt;object class=&quot;dm_videowall logo_left&quot; width=&quot;708&quot; height=&quot;228&quot; data=&quot;http://www.dailymotion.com/videowall/en/featured/channel/tech&amp;amp;zap=1&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.dailymotion.com/videowall/en/featured/channel/tech&amp;amp;zap=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/2687011778126586810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/blog-post_26.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/2687011778126586810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/2687011778126586810'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/blog-post_26.html' title=''/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-7851738044423247169</id><published>2009-08-26T15:11:00.000-07:00</published><updated>2009-08-26T15:15:21.326-07:00</updated><title type='text'></title><content type='html'>&lt;object class=&quot;dm_videowall logo_left&quot; width=&quot;708&quot; height=&quot;228&quot; data=&quot;http://www.dailymotion.com/videowall/en/featured&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.dailymotion.com/videowall/en/featured&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;/param&gt;&lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/7851738044423247169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/7851738044423247169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/7851738044423247169'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/blog-post.html' title=''/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-4507891427862457447</id><published>2009-08-02T10:19:00.000-07:00</published><updated>2009-08-02T10:21:05.965-07:00</updated><title type='text'>Simple power down</title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://www.elecfree.com/electronic/wp-content/uploads/2009/07/simple-power-down.gif&quot;&gt;&lt;img src=&quot;http://www.elecfree.com/electronic/wp-content/uploads/2009/07/simple-power-down-250x130.gif&quot; alt=&quot;&quot; title=&quot;simple-power-down&quot; class=&quot;alignnone size-medium wp-image-4699&quot; width=&quot;250&quot; height=&quot;130&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt; This circuit adds a power down function to analog I/O ports (for example, the AD7769 and AD7774). Moreover, the diodes ordinarily needed to protect the devices against power-supply missequencing can be&lt;br /&gt;eliminated&lt;br /&gt;In the circuit, MOSFETs Q1 and Q2 switch the +5- and +12-V supplies, respectively, in a sequence controlled by two cross-coupled CD4001 CMOS NOR gates (U1C and U1D). The sequence in which power isapplied is important: The controlled circuits may be damaged anytime Vcc exceeds Vdd+0.3V. Consequently, the NOR gates must be powered from a 12-V supply throughout the power-down sequence. [...]&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/4507891427862457447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/simple-power-down.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/4507891427862457447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/4507891427862457447'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/simple-power-down.html' title='Simple power down'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7544910319096087273.post-1949557366145512750</id><published>2009-08-02T10:18:00.000-07:00</published><updated>2009-08-02T10:19:17.819-07:00</updated><title type='text'>Arduino Perpetual Pendulum</title><content type='html'>&lt;h3&gt;Basic Idea&lt;/h3&gt;  &lt;p&gt;I wanted to set up a pendulum with a small magnet on its end, place an electromagnet beneath where the pendulum would swing, and then energize the electromagnet briefly from time to time to &quot;nudge&quot; the pendulum so that it would swing &quot;forever&quot;. (Note that the electromagnet works best if &lt;i&gt;under&lt;/i&gt; the swing of the pendulum, not at the end of the swing, mounted so that it would be hit by the pendulum if it were to swing just a little &quot;too far&quot;.)&lt;/p&gt;  &lt;p&gt;That&#39;s about all there is to it! The project is almost that simple. Why bother to make one? To be sure I could, and the spot I have in mind for this toy is a two story high atrium, and a suitable pendulum gently swinging back and for there will, I think, look rather nice. And be a relaxing sight.&lt;/p&gt;  &lt;h3&gt;Details....&lt;/h3&gt;  &lt;!-- aht8pendu given adsense skyscraper 28 Mar 08. There were 82 channels left at that time.--&gt;  &lt;!-- begin Google adsense --&gt; &lt;div style=&quot;float: right; margin-left: 24px; margin-bottom: 20px; margin-top: 10px; text-align: center;&quot;&gt; &lt;!-- Start Google Adsense Wide Skyscraper --&gt; &lt;script type=&quot;text/javascript&quot;&gt;&lt;!-- google_ad_client = &quot;pub-5707789324079656&quot;; google_ad_width = 160; google_ad_height = 600; google_ad_format = &quot;160x600_as&quot;; google_ad_type = &quot;text&quot;; google_ad_channel =&quot;&quot;; //--&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;script src=&quot;http://pagead2.googlesyndication.com/pagead/expansion_embed.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;http://googleads.g.doubleclick.net/pagead/test_domain.js&quot;&gt;&lt;/script&gt;&lt;script&gt;google_protectAndRun(&quot;ads_core.google_render_ad&quot;, google_handleError, google_render_ad);&lt;/script&gt;&lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 600px; position: relative; visibility: visible; width: 160px;&quot;&gt;&lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 600px; position: relative; visibility: visible; width: 160px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; hspace=&quot;0&quot; id=&quot;google_ads_frame1&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;google_ads_frame&quot; src=&quot;http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5707789324079656&amp;amp;dt=1249233318292&amp;amp;lmt=1249233316&amp;amp;format=160x600_as&amp;amp;output=html&amp;amp;correlator=1249233318292&amp;amp;url=http%3A%2F%2Fsheepdogguides.com%2Farduino%2Faht8pendu.htm&amp;amp;ad_type=text&amp;amp;ref=http%3A%2F%2Fwww.circuit-projects.com%2Fmiscellaneous-circuits%2Farduino-based-pendulum-using-small-magnet.html&amp;amp;frm=0&amp;amp;ga_vid=1257561563.1249233318&amp;amp;ga_sid=1249233318&amp;amp;ga_hid=1631612440&amp;amp;flash=10.0.22&amp;amp;w=160&amp;amp;h=600&amp;amp;u_h=768&amp;amp;u_w=1024&amp;amp;u_ah=738&amp;amp;u_aw=1024&amp;amp;u_cd=32&amp;amp;u_tz=300&amp;amp;u_his=1&amp;amp;u_java=true&amp;amp;u_nplug=17&amp;amp;u_nmime=80&amp;amp;dtd=21&amp;amp;xpc=8M7Ps6UBTL&amp;amp;p=http%3A//sheepdogguides.com&quot; style=&quot;left: 0pt; position: absolute; top: 0pt;&quot; vspace=&quot;0&quot; scrolling=&quot;no&quot; width=&quot;160&quot; frameborder=&quot;0&quot; height=&quot;600&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;!-- End Google Adsense --&gt; &lt;/div&gt;  &lt;p&gt;&lt;b&gt;Definition:&lt;/b&gt; &lt;i&gt;Reed switch&lt;/i&gt;: Usually two tiny metal leaves in a sealed glass tube, arranged so that when a magnet is near, the leaves come together and electricity will flow through the device. When there is no magnet nearby, the leaves spring apart, and no electricity flows. Usually a single pole, single throw switch.&lt;/p&gt;  &lt;p&gt;If, in addition to the electromagnet, you also put reed switches under the arc through which the pendulum swings, then you can use their closures (as the pendulum and its magnet swing over them) to time when the electromagnet is energized. If it isn&#39;t turned on and off at the right times, you don&#39;t get good results. You might think that one reed switch would do... but using only one gives rise to problems. (You might want to try to figure out what they are before the answer is given farther down the page.)&lt;/p&gt;  &lt;p&gt;If your skills are up to it, I suspect that using LEDs and phototransistors to detect the pendulum passing a certain point would give better results. But I used reed switches, and made them work.&lt;/p&gt;  &lt;p&gt;I would suggest putting the switches and the electromagnet near the point the pendulum would be over if it were hanging, still, not swinging. This has pros and cons, which I invite you to explore for yourself, if only in your mind. Be sure the reed switch nearest the electromagnet is not so near that turning on the electromagnet will cause the reed switch to close.&lt;/p&gt;  &lt;p&gt;The following diagram should merely recap what you already know. The green arrows (pointing down) represent the five wires which lead away from the pendulum/ switches/ electromagnet to the place where you have the Arduino and other electronic elements. Don&#39;t be tempted to combine the two &quot;earth&quot; wires. (More on this later.) &quot;SWouter&quot;and &quot;SWinner&quot; are just shorthand names for the two &lt;b&gt;sw&lt;/b&gt;itches.&lt;/p&gt;  &lt;img src=&quot;http://sheepdogguides.com/arduino/aht8pendumech.jpg&quot; alt=&quot;Picture of mechanical elements&quot; width=&quot;70%&quot; border=&quot;0&quot; /&gt;  &lt;h3&gt;Building it... mechanical....&lt;/h3&gt;  &lt;p&gt;You cannot spend too much time making sure you have a &lt;i&gt;good&lt;/i&gt; pendulum. If it isn&#39;t well mounted, so that it will swing consistently, you will spend the rest of the time you spend on this project being annoyed. In other words you don&#39;t want the setup of switches and electromagnet I had in the prototype!!&lt;/p&gt; &lt;br /&gt;&lt;center&gt;&lt;img src=&quot;http://sheepdogguides.com/arduino/aht8penduswem.jpg&quot; alt=&quot;Setup of switches and electomagnet I had in the prototype!!&quot; width=&quot;40%&quot; border=&quot;0&quot; /&gt;&lt;/center&gt;&lt;br /&gt;&lt;p&gt;(The blurred vertical at the left is the pendulum, the vertical on the right supports the pendulum.)&lt;/p&gt;  &lt;p&gt;The longer your pendulum is the better, within reason.&lt;/p&gt;  &lt;p&gt;A heavy weight near the bottom will be helpful. It will help if the center of the weight&#39;s gravity coincides with the center of the magnet mounted on the end of the pendulum. (If this is not done, the pendulum will try to twist when the electromagnet pulls on the pendulum magnet.)&lt;/p&gt;   &lt;p&gt;I used quite a dinky disk magnet, and mounted it &quot;flat&quot;, i.e. with the flat faces horizontal when the pendulum is at rest. Having said that, it is a modern (strong) &quot;dinky&quot; magnet, and I was lucky enough to have a good electromagnet to hand. Neither is a critical element, just use the best of each that you can obtain easily.&lt;/p&gt;  &lt;p&gt;The &lt;b&gt;&lt;i&gt;precise&lt;/i&gt;&lt;/b&gt; positioning of the two reed switches and the electromagnet is critical to the satisfactory working of this toy. You will do yourself a favor if you mount them in a way that facilitates fine adjustments. One of the advantages of the broken- light- beam approach to detecting the pendulum&#39;s position accurately, with less effort on the mechanical side, become easier. The spacing between the two reed switches isn&#39;t critical... you will probably get away with anything that isn&#39;t silly. Put them far enough apart, though, that there will be at least a little time when neither is activated when the pendulum is between them.&lt;/p&gt;  &lt;p&gt;Both the &lt;a href=&quot;http://en.wikipedia.org/wiki/Coriolis_effect&quot; target=&quot;_blank&quot;&gt;Coriolis effect&lt;/a&gt; and forces arising from elements in the design can deflect the swing of the pendulum from a nice simple &quot;back and forth&quot; in one plane. So mount your pendulum such that it resists any attempts to deviate.&lt;/p&gt;  &lt;p&gt;How you &lt;a href=&quot;http://sheepdogguides.com/arduino/aht8pendu2.htm&quot;&gt;hang the pendulum&lt;/a&gt; is up to you; I doubt you need my help, but I&#39;ve posted a few ideas on the page the link will take you to, if you are interested.&lt;/p&gt;  &lt;h3&gt;Building it... electrical/ electronic....&lt;/h3&gt;  &lt;p&gt;The following gives you most of what you need....&lt;/p&gt;  &lt;center&gt;&lt;img src=&quot;http://sheepdogguides.com/arduino/aht8penduelec5335.jpg&quot; alt=&quot;Picture of circuits&quot; width=&quot;90%&quot; border=&quot;0&quot; /&gt;&lt;/center&gt;  &lt;p&gt;&lt;b&gt;N.B.:&lt;/b&gt; I would love to build the whole thing with just one power supply, and it &quot;should&quot; be possible. However, there&#39;s something called &quot;field collapse&quot; which you need to know about. Consider the electromagnet in this project. When you connect it to a voltage, electro-magnetism builds up around the electromagnet. When you &lt;i&gt;dis-&lt;/i&gt;connect the voltage, that magnetism &quot;collapses&quot; in on the coil, and &lt;b&gt;&lt;i&gt;gives rise to a pulse of high voltage.&lt;/i&gt;&lt;/b&gt; That much I know and understand. That is why the diode (D2) is present. It is inserted the way it is so that &lt;i&gt;no&lt;/i&gt; electricity flows through it when the voltage from PSU2 is applied across the electromagnet. (You&#39;ll cause all sorts of problems... unless PS2 is short circuit friendly... if you connect things up with the diode the wrong way &#39;round.) When the voltage from PSU2 is removed, the role of the diode is to &quot;drain off&quot; the voltage arising from the collapsing field. All of that logic also applies to D1, by the way. Whenever you have a relay in a circuit, you put a diode across the coil thus. 1N4004s work well... just be sure to use something like that, capable of handling significant current. Some of the small &quot;signal&quot; diodes may not be up to the strain.&lt;/p&gt;  &lt;p&gt;Continuing the story of why there are two power supplies (PSUs): Years ago, I set out to built a computer controlled model railway. I had a PIC (poor man&#39;s Arduino) programmed to control the voltage supplied to the train track. That voltage went into the motor of the train. A motor is, in many ways, just a special electromagnet. &lt;b&gt;&lt;i&gt;And I &quot;blew up&quot; (permanently fried) a number of PICs.&lt;/i&gt;&lt;/b&gt; I never did figure out why I was destroying my PICs. I looked into a number of things, I took great care, I built protection into everything... and still I destroyed PICs.&lt;/p&gt;  &lt;p&gt;You &quot;should&quot; be able to build something like my Perpetual Pendulum without needing two power supplies... but I didn&#39;t want to risk damaging my Arduino, hence my cautious, two PSU, design.&lt;/p&gt;  &lt;p&gt;One of the LEDs (LEDspare) isn&#39;t used at all. You don&#39;t &lt;i&gt;need&lt;/i&gt; the LEDs for the project to work... but the visual indication of what the Arduino is &quot;seeing&quot; and &quot;doing&quot; can be very useful during troubleshooting, and &quot;costs&quot; nothing. If you decide to dispense with one or more of the LEDs, you can still run the program just as published below.&lt;/p&gt;  &lt;p&gt;Electromagnet: I was lucky... I had a nice 12volt solenoid in my junk box. I left its actuator in place, taped to the retracted position. That made a nice iron core to focus the magnetism. I put the current through the coil so that the magnet on the end of the pendulum is attracted to the electromagnet when it is energized. This was to avoid having the pendulum pushed sideways, out of a nice straight arc. If your electromagnet is repelling your magnet, you only have to reverse the connections to the electromagnet. Be sure to do it &quot;downstream&quot; (distal from) the diode... you want to reverse the direction of current flow through the coil, but still present the voltage to the diode as before.&lt;/p&gt;  &lt;p&gt;If you have to build your own electromagnet, be careful that the load it places on PSU2 isn&#39;t too high. Another component that will be under some strain is the relay. The electromagnet will be energized again and again and again. And when it is energized, there will be what amounts to a brief almost short circuit across the contacts... high current. If your pendulum stops working after a few days or weeks, the relay is the first thing I&#39;d check, assuming that the swing of the pendulum still takes it over the reed relays properly.&lt;/p&gt;  &lt;p&gt;There&#39;s no reason to site the Arduino right next to the pendulum. The five wires between the electromagnet and the two switches and everything else can be quite long.&lt;/p&gt;  &lt;p&gt;So! that&#39;s about all I have to say about the system. Here&#39;s the software. (There will be a few comments on the software after it....)&lt;/p&gt;  &lt;div class=&quot;tkbArdu&quot;&gt; &lt;pre&gt;/*&lt;br /&gt;Pendulum01&lt;br /&gt;ver 29 May 08&lt;br /&gt;&lt;br /&gt;Hardware: 3 LEDs for data output:&lt;br /&gt;LEDInnerRS: Announces state of reed switch nearest center&lt;br /&gt;               of pendulum swing&lt;br /&gt;LEDOuterRS: Announces state of reed switch farthest from&lt;br /&gt;               center of pendulum swing&lt;br /&gt;LEDElectMag: Announces state of output to relay&lt;br /&gt;&lt;br /&gt;One output line to control relay to control electromagnet&lt;br /&gt;&lt;br /&gt;Two inputs from reed switches.&lt;br /&gt;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;#define LEDOuterRS 13  //no ; here.&lt;br /&gt;#define LEDInnerRS 11  //no ; here.&lt;br /&gt;#define LEDElectMag 9   //no ; here.&lt;br /&gt;#define LEDSpare 7   //no ; here.&lt;br /&gt;&lt;br /&gt;#define SWInner 10 //no ; here.&lt;br /&gt;#define SWOuter 12 //no ; here.&lt;br /&gt;&lt;br /&gt;#define ElectMag 8 //no ; here. This output will be used&lt;br /&gt;  // to turn electromagnet on.&lt;br /&gt;&lt;br /&gt;//Set up values for the variable LastSwitched&lt;br /&gt;#define inner 0 //no ; here. Not &quot;necessary&quot; but makes code&lt;br /&gt;#define outer 1 //no ; here.        more readable&lt;br /&gt;int LastSwitched = 0;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void setup()&lt;br /&gt;{&lt;br /&gt;pinMode(LEDInnerRS,OUTPUT);&lt;br /&gt;pinMode(LEDOuterRS,OUTPUT);&lt;br /&gt;pinMode(LEDElectMag,OUTPUT);&lt;br /&gt;pinMode(LEDSpare,OUTPUT);&lt;br /&gt;&lt;br /&gt;pinMode(ElectMag,OUTPUT);&lt;br /&gt;&lt;br /&gt;pinMode(SWInner,INPUT);&lt;br /&gt;pinMode(SWOuter,INPUT);&lt;br /&gt;digitalWrite(SWInner, HIGH);//Turn on internal pull up resistor&lt;br /&gt;digitalWrite(SWOuter, HIGH);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void MagnetOnBriefly()&lt;br /&gt;{&lt;br /&gt;/*The LED is not a necessary element, just helpful in&lt;br /&gt;diagnostic work.*/&lt;br /&gt;digitalWrite(ElectMag,HIGH);&lt;br /&gt;digitalWrite(LEDElectMag,HIGH);&lt;br /&gt;delay(290);&lt;br /&gt;digitalWrite(ElectMag,LOW);&lt;br /&gt;digitalWrite(LEDElectMag,LOW);&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void loop()&lt;br /&gt;{&lt;br /&gt; if (digitalRead(SWOuter)==HIGH)&lt;br /&gt;           {digitalWrite(LEDOuterRS,LOW);}&lt;br /&gt;            else&lt;br /&gt;           {digitalWrite(LEDOuterRS,HIGH);&lt;br /&gt;            LastSwitched=outer;&lt;br /&gt;            };&lt;br /&gt; if (digitalRead(SWInner)==HIGH)&lt;br /&gt;           {digitalWrite(LEDInnerRS,LOW);}&lt;br /&gt;            else&lt;br /&gt;           {digitalWrite(LEDInnerRS,HIGH);&lt;br /&gt;            if (LastSwitched==outer){MagnetOnBriefly();};&lt;br /&gt;            delay(40);//debounce&lt;br /&gt;            LastSwitched=inner;&lt;br /&gt;            };&lt;br /&gt;}//End &quot;loop&quot;&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;  &lt;p&gt;==== Discussion of program.... ====&lt;/p&gt;  &lt;p&gt;Remember the conundrum set earlier? &quot;Why two switches?&quot;&lt;/p&gt;  &lt;p&gt;For the sake of discussion... it didn&#39;t happen, really!.... let&#39;s imagine that at first I only one switch. Why can&#39;t we trigger the electromagnet each time the pendulum goes over it?&lt;/p&gt;  &lt;p&gt;You&#39;d be half right. Assuming things are arranged as in the first diagram, and assuming you&#39;ve wired things so that an energized electromagnet attracts the pendulum, then yes, you &lt;i&gt;want&lt;/i&gt; to energize the electromagnet when the pendulum is swinging left- to- right.... which it will be doing half of the time it passes over the switch But! What about the times when the pendulum is swinging &lt;i&gt;away&lt;/i&gt; from the electromagnet! You don&#39;t want to &quot;call it back&quot; at those times, do you?&lt;/p&gt;  &lt;p&gt;By having two switches, you can ask where the pendulum was a moment ago. Do yourself a little table showing the sequence of &quot;switch ons&quot; you get from the two switches as the pendulum swings. Assuming a pretty wide swing, you&#39;ll see that the switch that is on goes...&lt;/p&gt;  &lt;p&gt;I(nner), O(uter), O, I, I, O, O, I, I....&lt;/p&gt;  &lt;p&gt;The right time to turn the electro-magnet on briefly is when the inner switch is on immediately after the outer switch has been on.&lt;/p&gt;  &lt;p&gt;Just as a little aside: In this project (and most Arduino work, as far as I&#39;m aware) we are working with the states of the inputs at specific moments. In some electronic control work, we are able to look for and work with &quot;edges&quot;, instead of what we&#39;re doing here, working with &quot;levels&quot;. &quot;Edges&quot; occur when the state of an input changes. A change from low to high is called a rising edge, and the other change is a falling edge. While working with edges is nice in some ways, they are nasty in others. In particular, edges are very brief, so you usually have a way to ask &quot;has an edge occurred since I last asked?&quot; In our Perpetual Pendulum project, we only concern ourselves with levels, and we check and re-check the states of the inputs so often that there will not be a case where one goes high and then low again so quickly that we won&#39;t have looked at least once during the brief (in human, but not computer, terms) time it was high.&lt;/p&gt;  &lt;p&gt;=== Further discussion... ===&lt;/p&gt;  &lt;p&gt;To get you Perpetual Pendulum working well, you&#39;ll have to adjust the following to get what is right for whichever you chose to change first....&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;Position of electromagnet  &lt;/li&gt;&lt;li&gt;Position of inner switch  &lt;/li&gt;&lt;li&gt;Position of outer switch  &lt;/li&gt;&lt;li&gt;Length of debounce delay*  &lt;/li&gt;&lt;li&gt;Length of time electro-magnet is switched on &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;Re- the &quot;debounce delay&quot;, marked &quot;*&quot; in the list above. It is the one inside the &quot;loop&quot; function. To be honest with you, I&#39;m &lt;i&gt;entirely&lt;/i&gt; quite sure why this delay is needed... but it does make a difference to the way the program performs. I suspect it prevents the program from &quot;seeing&quot; the switch close more than once for one pass of the pendulum overhead... although 40ms seems an awfully short time to accomplish this. It works, so I used it!&lt;/p&gt;  &lt;p&gt;The length of time the electomagnet is switched on is controlled by the delay in the &quot;MagnetOnBriefly&quot; function. Too long, and when the pendulum is swinging widely, the electro-magnet will limit the swing, as it will pull &lt;i&gt;back&lt;/i&gt; on the pendulum after the pendulum has swung past the electro-magnet, and is trying to go out on its swing to the right. If the electromagnet is not on for a long enough period, the magnet on the pendulum will be relatively far away from the electro-magnet for the whole time it is energized. And therefore the attraction between the two will only be minimal.&lt;/p&gt;  &lt;p&gt;=== Further discussion.... ===&lt;/p&gt;  &lt;p&gt;You may have found the....  &lt;/p&gt;&lt;div class=&quot;tkbArdu&quot;&gt; &lt;pre&gt;#define inner 0 //no ; here. Not &quot;necessary&quot; but makes code&lt;br /&gt;#define outer 1 //no ; here.        more readable&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;  &lt;p&gt;... unexpected. During the program&#39;s execution, we need to know which switch was last seen to close. As far as the program is concerned, &quot;0&quot; is a code standing for the inner switch, and &quot;1&quot; is a code standing for the outer switch. We store, say, 0 in the variable &quot;LastSwitched&quot; when the inner switch is seen to close. Once we&#39;ve done that, we only need to say &quot;if LastSwitched==0....&quot; to set up something to happen if the last switch seen to close was the inner switch.&lt;/p&gt;  &lt;p&gt;Because of my &lt;b&gt;define&lt;/b&gt;s, we can use the words &quot;inner&quot; and &quot;outer&quot; in place of &quot;0&quot; and &quot;1&quot;. The English equivalents for the numerical codes are a little easier for our gray cells to process.&lt;/p&gt;  &lt;p&gt;With &quot;inner&quot; and &quot;outer&quot; defined, we can say things like &quot;LastSwitched=inner&quot; and &quot;if (LastSwitched==inner)...&quot;&lt;/p&gt;  &lt;p&gt;=== Further discussion.... ====&lt;/p&gt;  &lt;p&gt;The heart of the program, shown below, is deceptively simple. If you take out everything except the two lines starting &quot;if&quot;, can you rebuild the code to do what has to be done? It would be an excellent challenge for a programming class. I&#39;m not even sure that it is &quot;perfect&quot;... but it does work. I did get some odd behavior for a while (before the delay was added). That odd behavior might also have stemmed from the electro-magnet&#39;s magnetism &quot;spilling over&quot; and causing one or both reed switched to close.&lt;/p&gt;  &lt;p&gt;Heart of program.....&lt;/p&gt;  &lt;div class=&quot;tkbArdu&quot;&gt; &lt;pre&gt;  if (digitalRead(SWOuter)==HIGH)&lt;br /&gt;           {digitalWrite(LEDOuterRS,LOW);}&lt;br /&gt;            else&lt;br /&gt;           {digitalWrite(LEDOuterRS,HIGH);&lt;br /&gt;            LastSwitched=outer;&lt;br /&gt;            };&lt;br /&gt; if (digitalRead(SWInner)==HIGH)&lt;br /&gt;           {digitalWrite(LEDInnerRS,LOW);}&lt;br /&gt;            else&lt;br /&gt;           {digitalWrite(LEDInnerRS,HIGH);&lt;br /&gt;            if (LastSwitched==outer){MagnetOnBriefly();};&lt;br /&gt;            delay(40);//debounce&lt;br /&gt;            LastSwitched=inner;&lt;br /&gt;            };&lt;br /&gt;&lt;/pre&gt; &lt;/div&gt;  &lt;h3&gt;Extensions....&lt;/h3&gt;  &lt;p&gt;=== Things which might be fun.... Count swings&lt;/p&gt;  &lt;p&gt;Add some code so that the number of swings is counted. The easy thing to do would be to put an accumulator in the &quot;MagnetOnBriefly&quot; function... but this is not a good answer! (If you want to pursue one of the other extensions which I&#39;m going to mention in a moment.&lt;/p&gt;&lt;p&gt;  &lt;/p&gt;&lt;p&gt;It will probably be simplest to count the instances of SWinner being on immediately after SWouter being on.&lt;/p&gt;  &lt;p&gt;Once you have started counting the swings, if you want to connect an LCD panel (or other means of output) to the Arduino you can list that, just to amaze people, and/ or try to display a time of day derived from the time-keeping capability of the pendulum. Of course you then have to introduce ways of setting the time of day at the start. All beyond what amuses me... but easy enough to do! (Speaking of &quot;amaze&quot;: I have an anemometer (wind speed sensor) which may have turned 10 million times since it&#39;s counter was last reset. This figure is a little worrying... the counter&#39;s figure sometimes &quot;jumps&quot; due to electrical noise... but the program that monitors it has executed 610,000 passes though its main loop since the last time... not long ago... the program was reset, so who knows?)&lt;/p&gt;  &lt;p&gt;=== Things which might be fun.... Auto-restart&lt;/p&gt;  &lt;p&gt;From time to time &quot;things&quot; happen. The cat plays with the pendulum, there&#39;s a power outage, whatever.&lt;/p&gt;  &lt;p&gt;The software given above works while it works, but if things go wrong, the pendulum will stop swinging, and not start again without human intervention. In particular, if for some reason the outer switch doesn&#39;t close for a few swings, the electro-magnet doesn&#39;t energize for a few swings, and before long the swings are too short for the magnet to reach the outer switch and we are headed towards a dead pendulum.&lt;/p&gt;  &lt;p&gt;It would not be beyond the wit of programmer-kind to include some extra code which would &quot;do things&quot; when the outer switch wasn&#39;t being closed. The normal system, with its feedback circuit, allows for optimal swinging. But an alternative, &quot;crude&quot;, system might be able to get the pendulum swinging well enough for the feedback-driven alternative to start working again.&lt;/p&gt;  &lt;p&gt;If such a system were built, then a solar powered (see below), runs-just-when-the-sun-is-out version of the Perpetual Pendulum becomes do-able.&lt;/p&gt;  &lt;p&gt;=== Things which might be fun.... Alternate power&lt;/p&gt;  &lt;p&gt;Depending on the match (or lack thereof) between your electro-magnet and it&#39;s PSU, the strain of supplying adequate voltage to the electro-magnet may be over-stressing the PSU.&lt;/p&gt;  &lt;p&gt;You could solve this, and perhaps also get better overall performance, by using PSU2, through a resistor, to charge a capacitor. The electro-magnet would then be powered by the charge in the capacitor when the relay closed.&lt;/p&gt;  &lt;img src=&quot;http://sheepdogguides.com/arduino/aht8penducap.jpg&quot; alt=&quot;Picture of capacitor managed power&quot; width=&quot;70%&quot; align=&quot;right&quot; border=&quot;0&quot; /&gt;  &lt;p&gt;Such a circuit will &quot;save up&quot; electricity in the capacitor, and &quot;deliver&quot; it in a burst when the contacts of the relay close.&lt;/p&gt;  &lt;p&gt;If you had enough photovoltaic solar cells to generate a suitable voltage, it wouldn&#39;t matter if the current supplied was weak. Of course, the system would need a night light or other to see it through the night.&lt;/p&gt;  &lt;p&gt;With the capacitor circuit, a new problem arises. How often do you close the contacts on the relay? The fun of design work is in imagining and exploring the alternatives, weighing up their pros and cons.&lt;/p&gt;  &lt;p&gt;The &quot;close how often&quot; question has many possible answers.&lt;/p&gt;  &lt;p&gt;If your power supply, though weak, is at least constant (i.e. not solar power!), you could program the system to zap the electro-magnet once every, say, five swings. Or more or less, depending on your PSU.&lt;/p&gt;  &lt;p&gt;If you want to get fancier, you could monitor the voltage marked V-CAP on the diagram. As the capacitor charges up, that voltage will rise. Now... if you have overcome the problems discussed previously about keeping the voltages in the Arduino strictly separate from the power for the electro-magnet, you could monitor V-CAP with one of the Arduino&#39;s analog inputs.&lt;/p&gt;  &lt;p&gt;You could also, with a transistor or so, put an extra &quot;switch&quot; in series with the contacts of the relay. The Arduino would &quot;ask&quot; for an electro-magnet pulse on every swing of the pendulum, but the transistor(s) would prevent that from happening until there was adequate charge in the capacitor. Again, this would tap into V-CAP to know when the capacitor ware adequately charged.&lt;/p&gt;  &lt;p&gt;If the solar power idea is attractive, you can combine a few things for a &quot;full&quot; answer....&lt;/p&gt;  &lt;p&gt;I&#39;d still go with &lt;i&gt;two&lt;/i&gt; power supplies... one for the Arduino, one for the electro-magnet. Each would involve, in essence, the circuitry found in emergency lights. During the day, solar cells would be used to charge batteries. Voltage regulators would allow power to pass to the Arduino and electro-magnet as needed, and &quot;extra&quot; electricity would be passed for storage to the batteries to see the system through the night.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/1949557366145512750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/arduino-perpetual-pendulum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1949557366145512750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1949557366145512750'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/arduino-perpetual-pendulum.html' title='Arduino Perpetual Pendulum'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-592994601108944908</id><published>2009-08-02T10:12:00.000-07:00</published><updated>2009-08-02T10:13:30.901-07:00</updated><title type='text'>FM Wireless Microphone by BC557</title><content type='html'>&lt;iframe name=&quot;google_ads_frame&quot; src=&quot;http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3732748348655577&amp;amp;dt=1249233107048&amp;amp;lmt=1249233105&amp;amp;format=728x15_0ads_al&amp;amp;output=html&amp;amp;correlator=1249233107048&amp;amp;channel=4864280706&amp;amp;url=http%3A%2F%2Fwww.elecfree.com%2Felectronic%2Fpage%2F2%2F&amp;amp;color_bg=FFFFFF&amp;amp;color_text=000000&amp;amp;color_link=0066CC&amp;amp;color_url=008000&amp;amp;color_border=FFFFFF&amp;amp;ea=0&amp;amp;ref=http%3A%2F%2Fwww.elecfree.com%2Felectronic%2F&amp;amp;frm=0&amp;amp;ga_vid=70259944.1249233107&amp;amp;ga_sid=1249233107&amp;amp;ga_hid=1010970837&amp;amp;flash=10.0.22&amp;amp;w=728&amp;amp;h=15&amp;amp;u_h=768&amp;amp;u_w=1024&amp;amp;u_ah=738&amp;amp;u_aw=1024&amp;amp;u_cd=32&amp;amp;u_tz=300&amp;amp;u_his=2&amp;amp;u_java=true&amp;amp;u_nplug=17&amp;amp;u_nmime=80&amp;amp;dtd=7&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; allowtransparency=&quot;true&quot; scrolling=&quot;no&quot; width=&quot;728&quot; frameborder=&quot;0&quot; height=&quot;15&quot;&gt;&lt;/iframe&gt;  &lt;!-- Adsense code --&gt;     &lt;hr /&gt;       &lt;!-- code adsense --&gt;          &lt;!-- code adsense --&gt;          &lt;h2 id=&quot;post-4724&quot;&gt;&lt;a href=&quot;http://www.elecfree.com/electronic/fm-wireless-microphone-by-bc557/&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to FM Wireless Microphone by BC557&quot;&gt;FM Wireless Microphone by BC557&lt;/a&gt;&lt;/h2&gt;     &lt;small&gt;July 27th, 2009 &lt;!-- by admin --&gt;       &lt;!-- code adsense --&gt; &lt;br /&gt;                       Advertisements&lt;br /&gt;&lt;/small&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!-- google_ad_client = &quot;pub-3732748348655577&quot;; google_ad_width = 300; google_ad_height = 250; google_ad_format = &quot;300x250_as&quot;; google_ad_type = &quot;text&quot;; //2007-08-19: elecfree_index google_ad_channel = &quot;2536788575&quot;; google_color_border = &quot;FFFFFF&quot;; google_color_bg = &quot;FFFFFF&quot;; google_color_link = &quot;0066CC&quot;; google_color_text = &quot;000000&quot;; google_color_url = &quot;999999&quot;; //--&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;script src=&quot;http://pagead2.googlesyndication.com/pagead/expansion_embed.js&quot;&gt;&lt;/script&gt;&lt;script&gt;google_protectAndRun(&quot;ads_core.google_render_ad&quot;, google_handleError, google_render_ad);&lt;/script&gt;&lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: inline-table; height: 250px; position: relative; visibility: visible; width: 300px;&quot;&gt;&lt;ins style=&quot;border: medium none ; margin: 0pt; padding: 0pt; display: block; height: 250px; position: relative; visibility: visible; width: 300px;&quot;&gt;&lt;iframe allowtransparency=&quot;true&quot; hspace=&quot;0&quot; id=&quot;google_ads_frame2&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; name=&quot;google_ads_frame&quot; src=&quot;http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3732748348655577&amp;amp;dt=1249233107212&amp;amp;lmt=1249233105&amp;amp;prev_fmts=728x15_0ads_al&amp;amp;format=300x250_as&amp;amp;output=html&amp;amp;correlator=1249233107048&amp;amp;channel=2536788575&amp;amp;url=http%3A%2F%2Fwww.elecfree.com%2Felectronic%2Fpage%2F2%2F&amp;amp;color_bg=FFFFFF&amp;amp;color_text=000000&amp;amp;color_link=0066CC&amp;amp;color_url=999999&amp;amp;color_border=FFFFFF&amp;amp;ad_type=text&amp;amp;ref=http%3A%2F%2Fwww.elecfree.com%2Felectronic%2F&amp;amp;frm=0&amp;amp;ga_vid=70259944.1249233107&amp;amp;ga_sid=1249233107&amp;amp;ga_hid=1010970837&amp;amp;flash=10.0.22&amp;amp;w=300&amp;amp;h=250&amp;amp;u_h=768&amp;amp;u_w=1024&amp;amp;u_ah=738&amp;amp;u_aw=1024&amp;amp;u_cd=32&amp;amp;u_tz=300&amp;amp;u_his=2&amp;amp;u_java=true&amp;amp;u_nplug=17&amp;amp;u_nmime=80&amp;amp;dtd=18&amp;amp;xpc=G8yDoqZgi4&amp;amp;p=http%3A//www.elecfree.com&quot; style=&quot;left: 0pt; position: absolute; top: 0pt;&quot; vspace=&quot;0&quot; scrolling=&quot;no&quot; width=&quot;300&quot; frameborder=&quot;0&quot; height=&quot;250&quot;&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;/center&gt;&lt;br /&gt;&lt;br /&gt;          &lt;p&gt;&lt;a href=&quot;http://www.elecfree.com/electronic/wp-content/uploads/2009/07/fm-wireless-microphone.gif&quot;&gt;&lt;img src=&quot;http://www.elecfree.com/electronic/wp-content/uploads/2009/07/fm-wireless-microphone.gif&quot; alt=&quot;&quot; title=&quot;fm-wireless-microphone&quot; class=&quot;alignnone size-medium wp-image-4726&quot; width=&quot;245&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;&lt;/p&gt; FM Wireless Microphone has been a very popular project with beginners and experienced constructors alike. It has been used inside guitars and as the basis of a remote control system. I do however, receive many requests for a higher powered circuit and better microphone sensitivity. Now I can introduce the new FM Wireless Microphone (v5), which also has a better frequency stability, over 1Km range (under ideal conditions) and is good on microphone sensitivity. This has been achieved by adding an RF amplifier buffer (with 10dB gain) and an AF preamplifier to boost the modulation a little.</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/592994601108944908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/fm-wireless-microphone-by-bc557.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/592994601108944908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/592994601108944908'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/fm-wireless-microphone-by-bc557.html' title='FM Wireless Microphone by BC557'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-8107987785968329223</id><published>2009-08-02T09:51:00.000-07:00</published><updated>2009-08-02T10:11:14.340-07:00</updated><title type='text'>AM-CW ham bands transmitter</title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://www.elecfree.com/electronic/wp-content/uploads/2009/07/am-cw-ham-bands-transmitter.gif&quot;&gt;&lt;img src=&quot;http://www.elecfree.com/electronic/wp-content/uploads/2009/07/am-cw-ham-bands-transmitter-250x116.gif&quot; alt=&quot;&quot; title=&quot;am-cw-ham-bands-transmitter&quot; class=&quot;alignnone size-medium wp-image-4729&quot; width=&quot;250&quot; height=&quot;116&quot; /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;This is a small transmitter is a good stable QRP transmitter, which has many uses, from the HF bands AM transmitter, radio control models, or AM / CW ham-band transmitter. Circuit is almost ridiculously simple, and construction is even simpler. It is basically a single transistor oscillator with very low output impedance, suitable for driving the base of another transitory stage amplifier. Oscillator uses a single coil and crystal. The coil is tuned to a frequency output, which may correspond to the crystal frequency, or harmonics.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/8107987785968329223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/am-cw-ham-bands-transmitter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8107987785968329223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8107987785968329223'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/08/am-cw-ham-bands-transmitter.html' title='AM-CW ham bands transmitter'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-1846063426450929977</id><published>2009-07-29T10:35:00.001-07:00</published><updated>2009-07-29T10:41:40.613-07:00</updated><title type='text'>Simple Car Battery Charger</title><content type='html'>&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial Narrow;font-size:85%;color:#000000;&quot;&gt;This very simple  circuit uses a transformer ,two diodes , a capacitor and an ammeter.&lt;br /&gt;To  charge a battery just connect the + and - terminals of the circuit to the corresponding  terminals of the battery.&lt;br /&gt;When the battery is not charged, the ammeter reading  shows 1-3 amps.&lt;br /&gt;When the battery is fully charged the ammeter reads Zero   or nearly zero, after which the battery should be removed from the&lt;br /&gt; charger.&lt;br /&gt;The circuit is a full wave rectifier using 2 diodes for rectification.  The capacitor is used for smoothing.&lt;br /&gt;I think the circuit works fine without  the capacitor since the battery itself acts a BIG capacitor. But when you are  using the&lt;br /&gt;circuit to supply 12V (as a battery eliminator) the capacitor  needs to be present.&lt;br /&gt;Care should be taken NOT to reverse the + and - terminals  while connecting it to the battery.&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/psimages/7.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/psimages/7.gif&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/1846063426450929977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/simple-car-battery-charger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1846063426450929977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1846063426450929977'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/simple-car-battery-charger.html' title='Simple Car Battery Charger'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-5829350228831608933</id><published>2009-07-29T10:29:00.001-07:00</published><updated>2009-07-29T10:34:46.157-07:00</updated><title type='text'>Automatic Speed Controller for fans &amp; Coolers</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p class=&quot;Text&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;During summer  nights, the temperature is initially quite high. As time passes, the temperature  starts dropping. Also, after a person falls asleep, the metabolic rate of one’s  body decreases. Thus, initially the fan/cooler needs to be run at full speed.  As time passes, one has to get up again and again to adjust the speed of the  fan or the cooler.The device presented here makes the fan run at full speed  for a predetermined time. The speed is decreased to medium after some time,  and to slow later on. After a period of about eight hours, the fan/cooler is  switched off.Fig. 1 shows the circuit diagram of the system. IC1 (555) is used  as an astable multivibrator to generate clock pulses. The pulses are fed to  decade dividers/counters formed by IC2 and IC3. These ICs act as divide-by-10  and divide-by-9 counters, respectively. The values of capacitor C1 and resistors  R1 and R2 are so adjusted that the final output of IC3 goes high after about  eight hours.The first two outputs of IC3 (Q0 and Q1) are connected (ORed) via  diodes D1 and D2 to the base of transistor T1. Initially output Q0 is high and  therefore relay RL1 is energised. It remains energised when Q1 becomes high.  The method of connecting the gadget to the fan/cooler is given in Figs 3 and  4.&lt;/span&gt; &lt;/p&gt;&lt;div align=&quot;left&quot;&gt; &lt;table border=&quot;0&quot; width=&quot;86%&quot;&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td align=&quot;left&quot; width=&quot;40%&quot;&gt; &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;img src=&quot;http://www.electronic-circuits-diagrams.com/images/fans-2.jpg&quot; border=&quot;0&quot; height=&quot;123&quot; width=&quot;243&quot; /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td align=&quot;left&quot; width=&quot;13%&quot;&gt; &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt; &lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;td align=&quot;left&quot; width=&quot;56%&quot;&gt; &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;img src=&quot;http://www.electronic-circuits-diagrams.com/images/fans-3.jpg&quot; border=&quot;0&quot; height=&quot;95&quot; width=&quot;232&quot; /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;p class=&quot;Text&quot; align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;It can be seen that  initially the fan shall get AC supply directly, and so it shall run at top speed.  When output Q2 becomes high and Q1 becomes low, relay RL1 is turned ‘off’ and  relay RL2 is switched ‘on’. The fan gets AC through a resistance and its speed  drops to medium. This continues until output Q4 is high. When Q4 goes low and  Q5 goes high, relay RL2 is switched ‘off’ and relay RL3 is activated. The fan  now runs at low speed.Throughout the process, pin 11 of the IC is low, so T4  is cut off, thus keeping T5 in saturation and RL4 ‘on’. At the end of the cycle,  when pin 11 (Q9) becomes high, T4 gets saturated and T5 is cut off. RL4 is switched  ‘off’, thus switching ‘off’ the fan/cooler.Using the circuit described above,  the fan shall run at high speed for a comparatively lesser time when either  of Q0 or Q1 output is high. At medium speed, it will run for a moderate time  period when any of three outputs Q2 through Q4 is high, while at low speed,  it will run for a much longer time period when any of the four outputs Q5 through  Q8 is high.If one wishes, one can make the fan run at the three speeds for an  equal amount of time by connecting three decimal decoded outputs of IC3 to each  of the transistors T1 to T3. One can also get more than three speeds by using  an additional relay, transistor, and associated components, and connecting one  or more outputs of IC3 to it.&lt;br /&gt;In the motors used in certain coolers there  are separate windings for separate speeds. Such coolers do not use a rheostat  type speed regulator. The method of connection of this device to such coolers  is given in Fig. 4.&lt;br /&gt;The resistors in Figs 2 and 3 are the tapped resistors,  similar to those used in manually controlled fan-speed regulators. Alternatively,  wire-wound resistors of suitable wattage and resistance can be used.&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;    &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;img src=&quot;http://www.electronic-circuits-diagrams.com/images/fans-4.jpg&quot; border=&quot;0&quot; height=&quot;115&quot; width=&quot;251&quot; /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/motorimages/1.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/motorimages/1.gif&quot; /&gt;&lt;/p&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/5829350228831608933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/automatic-speed-controller-for-fans.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/5829350228831608933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/5829350228831608933'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/automatic-speed-controller-for-fans.html' title='Automatic Speed Controller for fans &amp; Coolers'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-3371315929770239023</id><published>2009-07-29T10:22:00.000-07:00</published><updated>2009-07-29T10:25:20.321-07:00</updated><title type='text'>Alternating Flasher</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt; This circuit uses three  easily available 555 timer ICs. All three work as astable multivibrators. The  first 555 has an on period and off period equal to 1 sec. This IC controls the  on/ off periods of the other 2 555s which are used to flash two bulbs through  the relay contacts.&lt;br /&gt;The flashing occurs at a rate of 4 flashes per second.&lt;br /&gt; The diodes are used to protect the 555 ICs from peaks. The relays should have  an impedance greater than 50ohms i.e, they should not draw a current more than  200mA.&lt;br /&gt;The flashing sequence is as follows:&lt;br /&gt;The bulb(s) connected to  the first relay flashes for about 1 sec at a rate of 4 flashes per second. Then  the bulb(s) connected to the second relay flashes for 1 sec at a rate of 4 flashes  per second. Then the cycle repeats.&lt;br /&gt;The flashing rates can be varied by  changing the capacitors C3 and C5. A higher value gives a lower flashing rate.&lt;br /&gt; Note that the values of C3 and C5 should be equal and should be less than that  of C1.&lt;br /&gt;The value of C1 controls the change-over rate ( default 1sec). A  higher value gives a lower change-over rate.&lt;br /&gt;If you use the normally open  contacts of the relay, on bulb will be OFF while other is flashing,and vice  versa.&lt;br /&gt;If normally closed contacts are used, one bulb will be ON while the  other is flashing&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/11.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/11.gif&quot; height=&quot;330&quot; width=&quot;627&quot; /&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/3371315929770239023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/alternating-flasher.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/3371315929770239023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/3371315929770239023'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/alternating-flasher.html' title='Alternating Flasher'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-8588521481830685074</id><published>2009-07-29T10:19:00.000-07:00</published><updated>2009-07-29T10:21:50.557-07:00</updated><title type='text'>Audio Light Modulator</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;b&gt;A&lt;/b&gt;udio light modulations add to the enjoyment  of music during functions organised at home or outdoors. Presented here is one  such simple circuit in which light is modulated using a small fraction of the  audio output from the speaker terminals of the audio amplifier. The output from  the speaker terminals of audio amplifier is connected to a transformer (output  transformer used in transistor radios) through a non-polarised capacitor. The  use of transformer is essential for isolating the audio source from the circuit  in The sensitivity control potentiometer VR1 provided in the input to transistor  T1 may be adjusted to ensure that conduction takes place only after the AF exceeds  certain amplitude. This control has to be adjusted as per audio source level.  The audio signal Proper earthing of the circuit is quite essential. The diode  bridge provides pulsating DC output and acts as a guard circuit between the  mains input and pulsating DC output. Extreme care is necessary to avoid any  electric shock&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/7.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/7.gif&quot; height=&quot;352&quot; width=&quot;648&quot; /&gt;&lt;/p&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/8588521481830685074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/audio-light-modulator_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8588521481830685074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8588521481830685074'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/audio-light-modulator_29.html' title='Audio Light Modulator'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-1250576376643718903</id><published>2009-07-29T10:14:00.000-07:00</published><updated>2009-07-29T10:18:11.790-07:00</updated><title type='text'>Automatic Room Lights</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt; An ordinary automatic room  power control circuit has only one light sensor. So when a person enters the  room it gets one pulse and the lights come ‘on.’ When the person goes out it  gets another pulse and the lights go ‘off.’ But what happens when two persons  enter the room, one after the other? It gets two pulses and the lights remain  in ‘off’ state. The circuit described here overcomes the above-mentioned problem.  It has a small memory which enables it to automatically switch ‘on’ and switch  ‘off’ the lights in a desired fashion. The circuit uses two LDRs which are placed  one after another (separated by a distance of say half a metre) so that they  may separately sense a person going into the room or coming out of the room.  Outputs of the two LDR sensors, after processing, are used in conjunction with  a bicolour LED in such a fashion that when a person gets into the room it emits  green light and when a person goes out of the room it emits red light, and vice  versa. These outputs are simultaneously applied to two counters. One of the  counters will count as +1, +2, +3 etc when persons are getting into the room  and the other will count as -1, -2, -3 etc when persons are getting out of the  room. These counters make use of Johnson decade counter CD4017 ICs. The next  stage comprises two logic ICs which can combine the outputs of the two counters  and determine if there is any person still left in the room or not. Since in  the circuit LDRs have been used, care should be taken to protect them from ambient  light. If desired, one may use readily available IR sensor modules to replace  the LDRs. The sensors are installed in such a way that when a person enters  or leaves the room, he intercepts the light falling on them sequentially—one  after the other. When a person enters the room, first he would obstruct the  light falling on LDR1, followed by that falling on LDR2. When a person leaves  the room it will be the other way round. In the normal case light keeps falling  on both the LDRs, and as such their resistance is low (about 5 kilo-ohms). As  a result, pin 2 of both timers (IC1 and IC2), which have been configured as  monostable flip-flops, are held near the supply voltage (+9V). When the light  falling on the LDRs is obstructed, their resistance becomes very high and pin  2 voltages drop to near ground potential, thereby triggering the flip-flops.  Capacitors across pin 2 and ground have been added to avoid false triggering  due to electrical noise. When a person enters the room, LDR1 is triggered first  and it results in triggering of monostable IC1. The short output pulse immediately  charges up capacitor C5, forward biasing transistor pair T1-T2. But at this  instant the collectors of transistors T1 and T2 are in high impedance state  as IC2 pin 3 is at low potential and diode D4 is not conducting. But when the  same person passes LDR2, IC2 monostable flip-flop is triggered. Its pin 3 goes  high and this potential is coupled to transistor pair T1-T2 via diode D4. As  a result transistor pair T1-T2 conducts because capacitor C5 retains the charge  for some time as its discharge time is controlled by resistor R5 (and R7 to  an extent). Thus green LED portion of bi-colour LED is lit momentarily. The  same output is also coupled to IC3 for which it acts as a clock. With entry  of each person IC3 output (high state) keeps advancing. At this stage transistor  pair T3-T4 cannot conduct because output pin 3 of IC1 is no longer positive  as its output pulse duration is quite short and hence transistor collectors  are in high impedance state. When persons leave the room, LDR2 is triggered  first followed by LDR1. Since the bottom half portion of circuit is identical  to top half, this time with the departure of each person red portion of bi-colour  LED is lit momentarily and output of IC4 advances in the same fashion as in  case of IC3. The outputs of IC3 and those of IC4 (after inversion by inverter  gates N1 through N4) are ANDed by AND gates (A1 through A4) are then wire ORed  (using diodes D5 through D8). The net effect is that when persons are entering,  the output of at least one of the AND gates is high, causing transistor T5 to  conduct and energise relay RL1. The bulb connected to the supply via N/O contact  of relay RL1 also lights up. When persons are leaving the room, and till all  the persons who entered the room have left, the wired OR output continues to  remain high, i.e. the bulb continues to remains ‘on,’ until all persons who  entered the room have left. The maximum number of persons that this circuit  can handle is limited to four since on receipt of fifth clock pulse the counters  are reset. The capacity of the circuit can be easily extended for up to nine  persons by removing the connection of pin 1 from reset pin (15) and utilising  Q1 to Q9 outputs of CD4017 counters. Additional inverters, AND gates and diodes  will, however, be required&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/4.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/4.gif&quot; height=&quot;363&quot; width=&quot;668&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/1250576376643718903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/automatic-room-lights.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1250576376643718903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/1250576376643718903'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/automatic-room-lights.html' title='Automatic Room Lights'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-6013339459263306462</id><published>2009-07-29T10:10:00.000-07:00</published><updated>2009-07-29T10:13:17.691-07:00</updated><title type='text'>Emergency Light</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;The circuit of automatic emergency  light presented here has the following features: 1. When the mains supply (230V  AC) is available, it charges a 12V battery up to 13.5V and then the battery  is disconnected from the charging section. 2. When the battery discharges up  to 10.2V, it is disconnected from the load and the charging process is resumed.  3. If the mains voltage is available and there is darkness in the room, load  (bulb or tube) is turned on by taking power from the mains; otherwise the battery  is connected to the load. 4. When the battery discharges up to 10.2V and if  the mains is not yet available, the battery is completely disconnected from  the circuit to avoid its further discharge. The mains supply of 230V AC is stepped  down to 18V AC (RMS) using a 230V AC primary to 0-18V AC, 2A secondary transformer  (X1), generally used in 36cm B&amp;amp;W TVs. Diodes D1 through D4 form bridge rectifier  and capacitor C5 filters the voltage, providing about 25V DC at the output.  Charging section includes 33-ohm, 10-watt resistor R2 which limits the charging  current to about 425 mA when battery voltage is about 10.2V, or to 325 mA when  battery voltage is about 13.5V. When the battery charges to 13.5V (as set by  VR2), zener diode D17 goes into breakdown region, thereby triggering triac TR1.  Now, since DC is passing through the triac, it remains continuously ‘on’ even  if the gate current is reduced to zero (by disconnecting the gate terminal).  Once the battery is fully charged, charging section is cut-off from the battery  due to energisation of relay RL2. This relay remains ‘on’ even if the power  fails because of connection to the battery via diode D10. S4, a normally closed  switch, is included to manually restart the charging process if required. Battery  disconnect and charging restart section comprises an NE555 timer (IC2) wired  in monostable mode. When the battery voltage is above 10.2V (as indicated by  red LED D15), zener diode (D16) remains in the breakdown region, making the  trigger pin 2 of IC2 high, thereby maintaining output pin 3 in low voltage state.  Thus, relay RL3 is ‘on’ and relay RL4 is ‘off.’ But as soon as the battery voltage  falls to about 10.2V (as set by preset VR1), zener diode D16 comes out of conduction,  making pin 2 low and pin 3 high to turn ‘on’ relay RL4 and orange LED D13. This  also switches off relay RL3 and LED D15. Now, if the mains is available, charging  restarts due to de-energisation of relay RL2 because when relay RL4 is ‘on,’  it breaks the circuit of relay RL2 and triac TR1. But if the mains supply is  not present, both relays RL3 and RL1 de-energise, disconnecting the battery  from the remaining circuit. Thus when battery voltage falls to 10.2 volts, its  further discharge is eliminated. But as soon as the mains supply resumes, it  energises relay RL1, thereby connecting the battery again to the circuit. Light  sensor section also makes use of a 555 timer IC in the monostable mode. As long  as normal light is falling on LDR1, its resistance is comparatively low. As  a result pin 2 of IC3 is held near Vcc and its output at pin 3 is at low level.  In darkness, LDR resistance is very high, which causes pin 2 of IC3 to fall  to near ground potential and thus trigger it. As a consequence, output pin 3  goes high during the monostable pulse period, forward biasing transistor T3  which goes into saturation, energising relay RL5. With auto/bypass switch S2  off (in auto mode), the load gets connected to supply via switch S3. If desired,  the load may be switched during the day-time by flipping switch S2 to ‘on’ position  (manual). Preset VR3 is the sensitivity control used for setting threshold light  level at which the load is to be automatically switched on/off. Capacitors with  the relays ensure that there is no chattering of the relays. When the mains  is present, diode D8 couples the input voltage to regulator IC1 whereas diode  D10 feeds the input voltage to it (from battery) in absense of mains supply.  Diode D5 connects the load to the power supply section via resistor R5 when  mains is available (diode D18 does not conduct). However, when mains power fails,  the situation reverses and diode D18 conducts while diode D5 does not conduct.  . The load can be any bulb of 12 volts with a maximum current rating of 2 amperes  (24 watts). Resistor R5 is supposed to drop approximately 12 volts when the  load current flows through it during mains availability . Hence power dissipated  in it would almost be equal to the load power. It is therefore desirable to  replace R5 with a bulb of similar voltage and wattage as the load so that during  mains availability we have more (double) light than when the load is fed from  the battery. For setting presets VR1 and VR2, just take out (desolder one end)  diodes D7, D10 and D18. Connect a variable source of power supply in place of  battery. Set preset VR1 so that battery-high LED D15 is just off at 10.2V of  the variable source. Increase the potential of the variable source and observe  the shift from LO BAT LED D13 to D15. Now make the voltage of the source 13.5V  and set preset VR2 so that relay RL2 just energises. Then decrease the voltage  slowly and observe that relay RL2 does not de-energise above 10.2V. At 10.2V,  LED D15 should be off and relay RL2 should de-energise while LED D13 should  light up. Preset VR3 can be adjusted during evening hours so that the load is  ‘on’ during the desired light conditions&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img style=&quot;cursor: -moz-zoom-in;&quot; alt=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/3.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/3.gif&quot; height=&quot;562&quot; width=&quot;330&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/6013339459263306462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/emergency-light.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6013339459263306462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6013339459263306462'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/emergency-light.html' title='Emergency Light'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-3908730062715028295</id><published>2009-07-29T10:04:00.000-07:00</published><updated>2009-07-29T10:07:13.312-07:00</updated><title type='text'>Automatic Dual output Display</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;This circuit lights up ten bulbs  sequentially, first in one direc- tion and then in the opposite direction, thus  presenting a nice visual effect. In this circuit, gates N1 and N2 form an oscillator.  The output of this oscillator is used as a clock for BCD up/down counter CD4510  (IC2). Depending on the logic state at its pin 10, the counter counts up or  down. During count up operation, pin 7 of IC2 outputs an active low pulse on  reaching the ninth count. Similarly, during count-down operation, you again  get a low-going pulse at pin 7. This terminal count output from pin 7, after  inversion by gate N3, is connected to clock pin 14 of decade counter IC3 (CD4017)  which is configured here as a toggle flip-flop by returning its Q2 output at  pin 4 to reset pin 15. Thus output at pin 3 of IC3 goes to logic 1 and logic  0 state alternately at each terminal count of IC2. Initially, pin 3 (Q0) of  IC3 is high and the counter is in count-up state. On reaching ninth count, pin  3 of IC3 goes low and as a result IC2 starts counting down. When the counter  reaches 0 count, Q2 output of IC3 momentarily goes high to reset it, thus taking  pin 3 to logic 1 state, and the cycle repeats. The BCD output of IC2 is connected  to 1-of-10 decoder CD4028 (IC4). During count-up operation of IC2, the outputs  of IC4 go logic high sequentially from Q0 to Q9 and thus trigger the triacs  and lighting bulbs 1 through 10, one after the other. Thereafter, during count-down  operation of IC2, the bulbs light in the reverse order, presenting a wonderful  visual effect&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/2.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/2.gif&quot; height=&quot;398&quot; width=&quot;605&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/3908730062715028295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/automatic-dual-output-display.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/3908730062715028295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/3908730062715028295'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/automatic-dual-output-display.html' title='Automatic Dual output Display'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-4527800074218847652</id><published>2009-07-29T10:00:00.000-07:00</published><updated>2009-07-29T10:03:39.793-07:00</updated><title type='text'>Light Flasher</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;This is a very basic circuit for  flashing one or more LEDS and also to alternately flash one or more LEDs.&lt;br /&gt; It uses a 555 timer setup as an astable multivibrator with a variable frequency.&lt;br /&gt; With the preset at its max. the flashing rate of the LED is about 1/2 a second.  It can be increased by increasing the value of the capacitor from 10uF to a  higher value. For example if it is increased to 22uF the flashing rate becomes  1 second.&lt;/span&gt;&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;There is also provision to convert  it into an alternating flasher. You just have to connect a LED and a 330ohm  as shown in Fig.2 to the points X and Y of Fig.1. Then both the LEDs flash alternately.&lt;/span&gt;&lt;/p&gt; &lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;Since the 555 can supply or sink  in upto 200mA of current, you can connect upto about 18 LEDS in parallel both  for the flasher and alternating flasher (that makes a total of 36 LEDs for alternating  flasher).&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/1.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/1.gif&quot; /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/4527800074218847652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/light-flasher.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/4527800074218847652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/4527800074218847652'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/light-flasher.html' title='Light Flasher'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-5898617987359602506</id><published>2009-07-29T09:51:00.000-07:00</published><updated>2009-07-29T09:55:03.143-07:00</updated><title type='text'>Programmable Digital Code Lock</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;b&gt;A&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt; programmable code lock can be used for numerous applications  in which access to an article/gadget is to be restricted to a limited number  of persons. Here is yet another circuit of a code lock employing mainly the  CMOS ICs and thumbwheel switches (TWS) besides a few other components. It is  rugged and capable of operation on voltages ranging between 6 and 15 volts.  The supply current drain of CMOS ICs being quite low, the circuit may be operated  even on battery.&lt;br /&gt;The circuit uses two types of thumbwheel switches. switch  numbers TWS1 through TWS8 are decimal-to-BCD converter type while switch numbers  TWS9 through TWS16 are 10-input multiplexer type in which only one of the ten  inputs may be connected to the output (pole). One thumbwheel switch of each  of the two types is used in combination with IC CD4028B (BCD to decimal decoder)  to provide one digital output.Eight such identical combinations of thumbwheel  switches and IC CD4028 are used. The eight digital outputs obtained from these  combinations are connected to the input of 8-input NAND gate CD4068.For getting  a logic high output, say at pole-1, it is essential that decimal numbers selected  by switch pair TWS1 and TWS9 are identical, as only then the logic high output  available at the Specific output pin of IC1 will get transferred to pole-1.  Accordingly, when the thumbwheel pair of switches in each combination is individually  matched, the outputs at pole-1 to pole-8 will be logic high.This will cause  output of 8-input NAND gate IC CD4068b to change over from logic high to logic  low, thereby providing a high-to-low going clock pulse at clock input pin of  7-stage counter CD4024B, which is used here as a flip-flop (only Q0 output is  used here).The output (Q0) of the flip-flop is connected to a relay driver circuit  consisting of transistors T1 and T2. The relay will operate when Q0 output of  flip-flop goes low. As a result transistor T1 cuts off and T2 gets forward biased  to operate the relay.Switch S1 is provided to enable switching off (locking)  and switching on (unlocking) of the relay as desired, once the correct code  has been set.&lt;br /&gt;With the code set correctly, the NAND gate output will stay  low and flip-flop can be toggled any number of times, making it possible to  switch on or switch off the relay, as desired. Suppose we are using the system  for switching-on of a deck for which the power supply is routed via the contacts  of the relay. The authorised person would select correct code which would cause  the supply to become available to the deck. After use he will operate switch  S1 and then shuffle the thumbwheel switches TWS1 through TWS8 such that none  of the switches produces a correct code. Once the code does not match, pressing  of switch S1 has no effect on the output of the flip-flop.Switches TWS9 through  TWS16 are concealed after setting the desired code. In place of thumbwheel switches  TWS1 through TWS8 DIP switches can also be used&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;img style=&quot;cursor: -moz-zoom-in;&quot; alt=&quot;http://www.electronic-circuits-diagrams.com/homegardenimages/2.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/homegardenimages/2.gif&quot; height=&quot;283&quot; width=&quot;683&quot; /&gt;&lt;/p&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/5898617987359602506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/programmable-digital-code-lock.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/5898617987359602506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/5898617987359602506'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/programmable-digital-code-lock.html' title='Programmable Digital Code Lock'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7544910319096087273.post-9031932044136152894</id><published>2009-07-29T09:45:00.000-07:00</published><updated>2009-07-29T09:49:42.546-07:00</updated><title type='text'>Ultrasonic Pest Repeller</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;It is well know that pests like  rats, mice etc are repelled by ultrasonic frequency in the range of 30 kHz to  50 kHz. Human beings can’t hear these high-frequency sounds. Unfortunately,  all pests do not react at the same ultrasonic frequency. While some pests get  repelled at 35 kHz, some others get repelled at 38 to 40 kHz. Thus to increase  the effectiveness, freque- ncy of ultrasonic oscillator has to be continuously  varied between certain limits. By using this circuit design, frequency of emission  of ultrasonic sound is continuously varied step-by-step automatically. Here  five steps of variation are used but the same can be extended up to 10 steps,  if desired. For each clock pulse output from op-amp IC1 CA3130 (which is wired  here as a low-frequency square wave oscillator), the logic 1 output of IC2 CD4017  (which is a well-known decade counter) shifts from Q0 to Q4 (or Q0 to Q9). Five  presets VR2 through VR6 (one each connected at Q0 to Q4 output pins) are set  for different values and connected to pin 7 of IC3 (NE555) electronically. VR1  is used to change clock pulse rate. IC3 is wired as an astable multivibrator  operating at a frequency of nearly 80 kHz. Its output is not symmetrical. IC4  is CD4013, a D-type flip-flop which delivers symmetrical 40kHz signals at its  Q and Q outputs which are amplified in push-pull mode by transistors T1, T2,  T3 and T4 to drive a low-cost, high-frequency piezo tweeter. For frequency adjustments,  you may use an oscilloscope. It can be done by trial and error also if you do  not have an oscilloscope. This pest repeller would prove to be much more effective  than those published earlier because here ultrasonic frequency is automatically  changed to cover different pests and the power output is also sufficiently high.  If you want low-power output in 30-50 kHz ultrasonic frequency range then the  crystal transducer may be directly connected across Q and Q outputs of IC4 (transistor  amplifier is not necessary&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/homegardenimages/1.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/homegardenimages/1.gif&quot; height=&quot;389&quot; width=&quot;671&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/9031932044136152894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/ultrasonic-pest-repeller.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/9031932044136152894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/9031932044136152894'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/ultrasonic-pest-repeller.html' title='Ultrasonic Pest Repeller'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7544910319096087273.post-432636805224462525</id><published>2009-07-29T09:40:00.000-07:00</published><updated>2009-07-29T09:44:37.194-07:00</updated><title type='text'>Simple IF Signal Generator</title><content type='html'>&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;b&gt;H&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;ere is a versatile circuit of IF signal generator which  may be of interest to radio hobbyists and professionals alike.Transistors T1  and T2 form an astable multivibrator oscillating in the audio frequency range  of 1 to 2 kHz. RF oscillator is built around transistor T3. Here again a 455kHz  ceramic filter/resonator is employed for obtaining stable IF. The AF from multivibrator  is coupled from collector of transistor T2 to emitter of transistor T3 through  capacitor C3. The tank circuit at collector of transistor T3 is formed using  medium wave oscillator coil of transistor radio, a fixed 100pF capacitor C5  and half section of a gang capacitor (C6).&lt;br /&gt;The oscillator section may be  easily modified for any other intermediate frequency by using ceramic filter  or resonator of that frequency and by making appropriate changes in the tank  circuit at collector of transistor T3. Slight adjustment of bias can be affected  by varying values of resistors R6 and R7, if required&lt;/span&gt;&lt;/p&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/generatorsimages/1.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/generatorsimages/1.gif&quot; height=&quot;383&quot; width=&quot;662&quot; /&gt;&lt;br /&gt;&lt;span style=&quot;font-family:times new roman;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/432636805224462525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/simple-if-signal-generator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/432636805224462525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/432636805224462525'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/simple-if-signal-generator.html' title='Simple IF Signal Generator'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-6998208760025800508</id><published>2009-07-29T09:31:00.000-07:00</published><updated>2009-07-29T09:36:04.538-07:00</updated><title type='text'>Audio Light Modulator</title><content type='html'>&lt;span style=&quot;font-family:arial;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:Arial;font-size:100%;color:#000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family:arial;font-size:100%;color:#000000;&quot;&gt;Audio light modulations add to the enjoyment  of music during functions organised at home or outdoors. Presented here is one  such simple circuit in which light is modulated using a small fraction of the  audio output from the speaker terminals of the audio amplifier. The output from  the speaker terminals of audio amplifier is connected to a transformer (output  transformer used in transistor radios) through a non-polarised capacitor. The  use of transformer is essential for isolating the audio source from the circuit  in The sensitivity control potentiometer VR1 provided in the input to transistor  T1 may be adjusted to ensure that conduction takes place only after the AF exceeds  certain amplitude. This control has to be adjusted as per audio source level.  The audio signal Proper earthing of the circuit is quite essential. The diode  bridge provides pulsating DC output and acts as a guard circuit between the  mains input and pulsating DC output. Extreme care is necessary to avoid any  electric shock.&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/7.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/lightsimages/7.gif&quot; height=&quot;458&quot; width=&quot;669&quot; /&gt;&lt;/p&gt;&lt;span style=&quot;font-family:arial;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/6998208760025800508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/audio-light-modulator.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6998208760025800508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6998208760025800508'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/audio-light-modulator.html' title='Audio Light Modulator'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7544910319096087273.post-6227798806338741066</id><published>2009-07-28T12:50:00.000-07:00</published><updated>2009-07-28T12:51:11.131-07:00</updated><title type='text'>PC based Frequency Meter</title><content type='html'>&lt;span style=&quot;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;font-size:100%;color:#000000;&quot;&gt; Here                          is a simple technique for measuring frequencies over                          quite a wide frequency range and with acceptable accuracy                          limits using a PC. It follows the basic technique of                          measuring low frequencies, i.e. at low frequency, period                          is measured for a complete wave and frequency is calculated                          from the measured time-period. Cascaded binary counters                          are used for converting the high-frequency signals into                          low-frequency signals. The parallel port of a computer                          is used for data input from binary counters. This data                          is used for measuring time and calculating the frequency                          of the signal. The block diagram shows the basic connections                          of the counters and parallel port pin numbers on 25-pin                          ‘D’ connector of a PC (control register 379 Hex is used                          for input). External hardware is used only for converting                          the higher frequency signals into low frequency signals.                          Thus, the major role in frequency-measurement is played                          by the software. The PC generates a time-interrupt at                          a frequency of 18.21 Hz, i.e. after every 54.92 millisecond.                          Software uses this time-interrupt as a time-reference.                          The control register of the PC’s parallel port is read                          and the data is stored continuously in an array for                          approximately 54.9 ms using a loop. This stored data                          is then analysed bit-wise. Initially, the higher-order                          bit (MSB or the seventh-bit) of every array element                          is scanned for the presence of a complete square wave.                          If it is found, its time period is measured and if not                          then the second-highest order bit (sixth bit) is scanned.                          This operation is performed till the third bit and if                          no full square wave is still found, an error message                          is generated which indicates that either there is an                          error in reading or the frequency signal is lower than                          19 Hz. Lower three bits of the control register are                          not used. When a wave is found, along with its time-period                          and frequency components, its measurement precision                          in percentage is also calculated and displayed. Number                          of data taken in 54.9 ms is also displayed. As stated                          above, the lower starting range is about 19 Hz. Data                          is read for approximately 54.9 ms. Thus, the lowest                          possible frequency that can be measured is 1/.0549 Hz.                          Lower range depends only on the sampling time and is                          practically fixed at 19 Hz (18.2 Hz, to be precise).                          Upper range depends on factors such as value of the                          MOD counter used and the operating frequency range of                          the counter IC. If MOD-N counter is used (where N is                          an integer), upper limit (UL) of frequency is given                          by UL=19xN5 Hz. Thus for MOD 16 counters UL@20 MHz,                          and for MOD 10 counters UL@1.9 MHz. Care should be taken                          to ensure that this upper limit is within the operating                          frequency range of counter IC used. Precision of measurement                          is a machine-dependent parameter. High-speed machines                          will have better precision compared to others. Basically,                          precision depends directly upon the number of data read                          in a standard time. Precision of measurement varies                          inversely as the value of MOD counter used. Precision                          is high when MOD 10 counters are used in place of MOD                          16 counters, but this will restrict the upper limit                          of frequency measurement and vice-versa.&lt;/span&gt;&lt;span style=&quot;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img style=&quot;cursor: -moz-zoom-in;&quot; alt=&quot;http://www.electronic-circuits-diagrams.com/computersimages/3.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/computersimages/3.gif&quot; height=&quot;562&quot; width=&quot;485&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/6227798806338741066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/pc-based-frequency-meter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6227798806338741066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6227798806338741066'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/pc-based-frequency-meter.html' title='PC based Frequency Meter'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-6722986003105374524</id><published>2009-07-28T12:48:00.000-07:00</published><updated>2009-07-28T12:49:09.330-07:00</updated><title type='text'>Simple Analog to Digital Converter</title><content type='html'>&lt;span style=&quot;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;font-size:100%;color:#000000;&quot;&gt; Normally                          analogue-to-digital con-verter (ADC) needs interfacing                          through a microprocessor to convert analogue data into                          digital format. This requires hardware and necessary                          software, resulting in increased complexity and hence                          the total cost.&lt;br /&gt;The circuit of A-to-D converter                          shown here is configured around ADC 0808, avoiding the                          use of a microprocessor. The ADC 0808 is an 8-bit A-to-D                          converter, having data lines D0-D7. It works on the                          principle of successive approximation. It has a total                          of eight analogue input channels, out of which any one                          can be selected using address lines A, B and C. Here,                          in this case, input channel IN0 is selected by grounding                          A, B and C address lines.&lt;br /&gt;Usually the control signals                          EOC (end of conversion), SC (start conversion), ALE                          (address latch enable) and OE (output enable) are interfaced                          by means of a microprocessor. However, the circuit shown                          here is built to operate in its continuous mode without                          using any microprocessor. Therefore the input control                          signals ALE and OE, being active-high, are tied to Vcc                          (+5 volts). The input control signal SC, being active-low,                          initiates start of conversion at falling edge of the                          pulse, whereas the output signal EOC becomes high after                          completion of digitisation. This EOC output is coupled                          to SC input, where falling edge of EOC output acts as                          SC input to direct the ADC to start the conversion.&lt;br /&gt;                         As the conversion starts, EOC signal goes high. At next                          clock pulse EOC output again goes low, and hence SC                          is enabled to start the next conversion. Thus, it provides                          continuous 8-bit digital output corresponding to instantaneous                          value of analogue input. The maximum level of analogue                          input voltage should be appropriately scaled down below                          positive reference (+5V) level.&lt;br /&gt;The ADC 0808 IC                          requires clock signal of typically 550 kHz, which can                          be easily derived from an astable multivibrator constructed                          using 7404 inverter gates. In order to visualise the                          digital output, the row of eight LEDs (LED1 through                          LED8) have been used, wherein each LED is connected                          to respective data lines D0 through D7. Since ADC works                          in the continuous mode, it displays digital output as                          soon as analogue input is applied. The decimal equivalent                          digital output value D for a given analogue input voltage                          Vin can be calculated from the relationship&lt;/span&gt;&lt;span style=&quot;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img alt=&quot;http://www.electronic-circuits-diagrams.com/computersimages/2.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/computersimages/2.gif&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/6722986003105374524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/simple-analog-to-digital-converter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6722986003105374524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/6722986003105374524'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/simple-analog-to-digital-converter.html' title='Simple Analog to Digital Converter'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-8333935707540116503</id><published>2009-07-28T12:44:00.000-07:00</published><updated>2009-07-28T12:47:24.444-07:00</updated><title type='text'>Control electrical appliances using PC</title><content type='html'>&lt;span style=&quot;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial;font-size:100%;color:#000000;&quot;&gt;Here is a circuit for using the printer port of a PC, for control application using software and some interface hardware. The interface circuit along with the given software can be used with the printer port of any PC for controlling up to eight equipment .&lt;br /&gt;The interface circuit shown in the figure is drawn for only one device, being controlled by D0 bit at pin 2 of the 25-pin parallel port. Identical circuits for the remaining data bits D1 through D7 (available at pins 3 through 9) have to be similarly wired. The use of opto-coupler ensures complete isolation of the PC from the relay driver circuitry.&lt;br /&gt;Lots of ways to control the hardware can be implemented using software. In C/C++  one can use the outportb(portno,value) function where portno is the parallel port address (usually 378hex for LPT1) and &#39;value&#39; is the data that is to be sent to the port. For a value=0 all the outputs (D0-D7) are off. For value=1 D0 is ON, value=2 D1 is ON, value=4, D2 is ON and so on. eg. If value=29(decimal) =   00011101(binary)  -&gt;D0,D2,D3,D4 are ON and the rest are OFF.                                  &lt;/span&gt;&lt;span style=&quot;font-size:100%;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;/*program to control devices using PC parallel port&lt;br /&gt;The devices are controlled by pressing the keys 1-8&lt;br /&gt;that corresponds to each of the 8 possible devices&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;#include&lt;dos.h&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&lt;br /&gt;#include&lt;conio.h&gt;&lt;br /&gt;#define PORT 0x378 /* This is the parallel port address */&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char val=0,key=0;&lt;br /&gt;char str1[]=&quot;ON &quot;;&lt;br /&gt;char str2[]=&quot;OFF&quot;;&lt;br /&gt;char *str;&lt;br /&gt;clrscr();&lt;br /&gt;printf(&quot;Press the approriate number key to turn on/off devices:\n\n&quot;);&lt;br /&gt;printf(&quot;Here Device1 is connected to D0 of parallel port and so on\n\n&quot;);&lt;br /&gt;printf(&quot;Press \&quot;x\&quot; to quit\n\n&quot;);&lt;br /&gt;gotoxy(1,8);&lt;br /&gt;printf(&quot;Device1:OFF Device2:OFF Device3:OFF Device4:OFF\n&quot;);&lt;br /&gt;printf(&quot;Device5:OFF Device6:OFF Device7:OFF Device8:OFF&quot;);&lt;br /&gt;&lt;br /&gt;while(key!=&#39;x&#39; &amp;amp;&amp;amp; key!=&#39;X&#39;)&lt;br /&gt;{&lt;br /&gt;gotoxy(1,12);&lt;br /&gt;printf(&quot;Value in hex sent to the port:&quot;);&lt;br /&gt;key=getch();&lt;br /&gt;switch(key){&lt;br /&gt;&lt;br /&gt;case &#39;1&#39;:&lt;br /&gt;&lt;br /&gt; gotoxy(9,8);&lt;br /&gt; val=(val&amp;amp;0x01)?(val&amp;amp;(~0x01)):val|0x01;&lt;br /&gt; str=(val&amp;amp;0x01)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,val);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;case &#39;2&#39;:&lt;br /&gt;&lt;br /&gt; gotoxy(21,8);&lt;br /&gt; val=(val&amp;amp;0x02)?(val&amp;amp;(~0x02)):val|0x02;&lt;br /&gt; str=(val&amp;amp;0x02)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,val);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;case &#39;3&#39;:&lt;br /&gt;&lt;br /&gt; gotoxy(33,8);&lt;br /&gt; val=(val&amp;amp;0x04)?(val&amp;amp;(~0x04)):val|0x04;&lt;br /&gt; str=(val&amp;amp;0x04)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,val);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;case &#39;4&#39;:&lt;br /&gt;&lt;br /&gt; gotoxy(45,8);&lt;br /&gt; val=(val&amp;amp;0x08)?(val&amp;amp;(~0x08)):val|0x08;&lt;br /&gt; str=(val&amp;amp;0x08)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,val);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;case &#39;5&#39;:&lt;br /&gt;&lt;br /&gt; gotoxy(9,9);&lt;br /&gt; val=(val&amp;amp;0x10)?(val&amp;amp;(~0x10)):val|0x10;&lt;br /&gt; str=(val&amp;amp;0x10)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,val);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;case &#39;6&#39;:&lt;br /&gt;&lt;br /&gt; gotoxy(21,9);&lt;br /&gt; val=(val&amp;amp;0x20)?(val&amp;amp;(~0x20)):val|0x20;&lt;br /&gt; str=(val&amp;amp;0x20)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,val);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;case &#39;7&#39;:&lt;br /&gt;&lt;br /&gt; gotoxy(33,9);&lt;br /&gt; val=(val&amp;amp;0x40)?(val&amp;amp;(~0x40)):val|0x40;&lt;br /&gt; str=(val&amp;amp;0x40)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,val);&lt;br /&gt; break;&lt;br /&gt;&lt;br /&gt;case &#39;8&#39;:&lt;br /&gt; gotoxy(45,9);&lt;br /&gt; val=(val&amp;amp;0x80)?(val&amp;amp;(~0x80)):val|0x80;&lt;br /&gt; str=(val&amp;amp;0x80)?str1:str2;&lt;br /&gt; printf(&quot;%s&quot;,str);&lt;br /&gt; outportb(PORT,val);&lt;br /&gt; gotoxy(1,13);&lt;br /&gt; printf(&quot;%x&quot;,(unsigned char)val);&lt;br /&gt; break;&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;img alt=&quot;http://www.electronic-circuits-diagrams.com/computersimages/1.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/computersimages/1.gif&quot; /&gt;&lt;br /&gt; &lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/8333935707540116503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/control-electrical-appliances-using-pc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8333935707540116503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/8333935707540116503'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/control-electrical-appliances-using-pc.html' title='Control electrical appliances using PC'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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-7544910319096087273.post-4936853530819540102</id><published>2009-07-28T12:42:00.000-07:00</published><updated>2009-07-28T12:44:10.229-07:00</updated><title type='text'>Infrared beam barrier/ proximity sensor</title><content type='html'>&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p align=&quot;left&quot;&gt;&lt;span style=&quot;font-family:Arial;font-size:85%;color:#000000;&quot;&gt;This circuit can be used as an Infrared                           beam barrier as well as a proximity detector.&lt;br /&gt;                         The circuit uses the very popular Sharp IR module (Vishay                              module can also be used). The                           pin nos. shown in the circuit are for the Sharp &amp;amp;                              VIshay modules. For other modules please refer to their respective                           datasheets.&lt;br /&gt;                         The receiver consists of a 555 timer IC working as an                           oscillator at about 38Khz (also works from 36kHz to                              40kHz) which has to be adjusted using                           the 10K preset. The duty cycle of the IR beam is about                           10%. This allows us to pass more current through the                           LEDS thus achieving a longer range.&lt;br /&gt;                         The receiver uses a sharp IR module. When the IR beam                           from the transmitter falls on the IR module, the output                           is activated which activates the relay and de-activated                           when the beam is obstructed. The relay contacts can                           be used to turn ON/OFF alarms, lights etc. The                           10K preset should be adjusted until the receiver detects                           the IR beam.&lt;/span&gt;&lt;/p&gt;                          &lt;span style=&quot;font-family:Arial;font-size:85%;color:#000000;&quot;&gt;The circuit                           can also be used as a proximity sensor, i.e to detect                           objects in front of the device without obstructing a                           IR beam. For this the LEDs should be pointed in the                           same direction as the IR module and at the same level.                           The suggested arrangement is shown in the circuit diagram.                           The LEDs should be properly covered with a reflective                           material like glass or aluminum foils on the sides to                           avoid the spreading of the IR  beam and to get                           a sharp focus of the beam.&lt;br /&gt;                         When there is nothing in front of them, the IR beam                           is not reflected onto the module and hence the circuit                           is not activated. When an object comes near the device,                           the IR light from the LEDs is reflected by the object                           onto the module and hence the circuit gets activated.                          &lt;br /&gt;                        &lt;br /&gt;                          If there still a lot                           of mis-triggering, use a 1uF or higher capacitor instead                           of the 0.47uF.&lt;/span&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img style=&quot;cursor: -moz-zoom-in;&quot; alt=&quot;http://www.electronic-circuits-diagrams.com/alarmsimages/19.gif&quot; src=&quot;http://www.electronic-circuits-diagrams.com/alarmsimages/19.gif&quot; height=&quot;562&quot; width=&quot;562&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chill-blogspot.blogspot.com/feeds/4936853530819540102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/infrared-beam-barrier-proximity-sensor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/4936853530819540102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7544910319096087273/posts/default/4936853530819540102'/><link rel='alternate' type='text/html' href='http://chill-blogspot.blogspot.com/2009/07/infrared-beam-barrier-proximity-sensor.html' title='Infrared beam barrier/ proximity sensor'/><author><name>Blogspot</name><uri>http://www.blogger.com/profile/08922306495793559442</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></feed>