<?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/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;CEIEQnc9eyp7ImA9WhRbGUU.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964</id><updated>2012-02-11T09:48:23.963-08:00</updated><category term='ISP-ICP'/><category term='Reviews'/><category term='Tutor'/><category term='AVR-PIC-8051'/><category term='Misc. Circuits'/><category term='Progs'/><title>8051- AVR - PIC  MICROCONTROLLER PROJECTS</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>75</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;Ak8ASXY7fSp7ImA9WhdSEEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-4412065600159043684</id><published>2011-07-19T05:34:00.000-07:00</published><updated>2011-07-19T05:34:08.805-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-19T05:34:08.805-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Ultrasonic Position System</title><content type='html'>&lt;h1&gt;&lt;/h1&gt;&lt;h1 style="font-size: medium; font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The ultrasonic position system uses ultrasonic transmitters/receivers to triangulate position of the robots used in GE423. Each of three transmitters uses a distinct frequencies: 23 kHz, 31 kHz, and 40 kHz. The 2812 DSP is used to measure signal timing and calculate position based on these values. The design of the electronics, as well as discussion of the software development is presented below.&lt;/span&gt;&lt;/h1&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The electronics were not intergrated with the 6713 DSP on the robot.&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Note: To get around the issue of clock syncing, the robot will start in a known position, and calculate position for four cycles before proceeding. An alternative to this would be to add a fourth transmit frequency and use the 4th signal to sync the robot clock with the transmit clock.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;h2&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;1.0 Hardware&lt;/span&gt;&lt;/h2&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A wide variety of hardware was used for this project. The hardware was chosen based on availability and price. By no means is the solution presented "the best"or the only way to achieve the desired results, but it is a workable solution.&lt;/span&gt;&lt;h3&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;1.1 Ultrasonic Transmitters/Receivers&lt;/span&gt;&lt;/u&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The ultrasonic sensor were purchased from&amp;nbsp;&lt;a href="http://www.massa.com/"&gt;Massa&lt;/a&gt;. The TR-89/B series where chosen because they come in 3 different frequencies, and they were stock parts. There is no pdf data sheet available on the Massa website, all information if available&amp;nbsp;&lt;a href="http://www.massa.com/datasheets/tr89.html"&gt;here&lt;/a&gt;. The main drawback of using Massa is there $500 minimum order, and the sensors aren't cheap at about ~$30 each.&lt;/span&gt;&lt;h3&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;1.2 Transmit Circuit&lt;/span&gt;&lt;/u&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A schematic of the transmit circuit looks like:&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img src="http://coecsl.ece.illinois.edu/ge423/spring05/group9/fulltrans.gif" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Images of the perf-boarded transmit circuits:&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img height="300" src="http://coecsl.ece.illinois.edu/ge423/spring05/group9/perftrans.jpg" width="400" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Details on the components of the transmit circuit can be found in the subsection below:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1.2.1 Frequency Generation&lt;/span&gt;&lt;/h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The transmit circuit take from the Massa Website looks like:&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img src="http://coecsl.ece.illinois.edu/ge423/spring05/group9/transc.jpg" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Source:http://www.massa.com/datasheets/graphics/tr89_data.gif&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Where R1 is a 10k 10 turn precision wound potentiometer, and U1 is a&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/cd4093b.pdf"&gt;CD4039B NAND Schmitt Trigger&lt;/a&gt;. The tuning resistor R2 and L where left out to increase the transmit power around the base frequency. The potentiometer was adjusted until the frequency was the desired base frequency. A 1k resistor was added in parallel with the potentiometer to give a higher resolution. For the 40 kHz case, a smaller capacitor was required to reach the base frequency. Make sure to tune the circuit with the ultrasonic transducers attached, because the additional impedance will change the transmit frequency. The 12 Vdc was generated by a lab supply.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The output at point TP1, is a 12V peak to peak is a square wave at the desired frequency. The point TP1 was connected to the Driver Signal Circuit presented below.&lt;/span&gt;&lt;/div&gt;&lt;h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1.2.2 555 Timer Circuit&lt;/span&gt;&lt;/h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The documentation for the 555 timer can be found&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/555.pdf"&gt;here&lt;/a&gt;. An a picture of how it is wired can be&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;img src="http://coecsl.ece.illinois.edu/ge423/spring05/group9/555.gif" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;seen below:&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Source:http://www.williamson-labs.com/480_555.htm&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Using the handy calculator for Ra, Rb, and C found&amp;nbsp;&lt;a href="http://ourworld.compuserve.com/homepages/Bill_Bowden/555.htm"&gt;here&lt;/a&gt;, Ra=100k ohm, Rb=200k ohm, and C=2.2 mircoF.&lt;/span&gt;&lt;br /&gt;
&lt;h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1.2.3 Driver Signal Circuit&lt;/span&gt;&lt;/h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The 35 Vdc supply is manufactured by&amp;nbsp;&lt;a href="http://www.ultravolt.com/"&gt;Ultravolt&lt;/a&gt;, part number&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/aseries.pdf"&gt;1/4Aa24-P30&lt;/a&gt;. This supply is actually a 0-250 Vdc supply that uses a potentiometer to control voltage output.. The transistor used is an&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/IRF520.pdf"&gt;IRF520 n-channel MOSFET&lt;/a&gt;.&lt;/span&gt;&lt;h3&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;1.3 Receive Circuit&lt;/span&gt;&lt;/u&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A block diagram of the receive circuit can be seen below:&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img src="http://coecsl.ece.illinois.edu/ge423/spring05/group9/rec.gif" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;And a picture of the perf-boarded receive circuit can be seen below:&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img height="300" src="http://coecsl.ece.illinois.edu/ge423/spring05/group9/perfrec.jpg" width="400" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Details on the components of the receive circuit can be found in the subsection below:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1.3.1 Low Signal Amp Circuit&lt;/span&gt;&lt;/h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;An instrumentation amplifier made by&amp;nbsp;&lt;a href="http://www.analog.com/"&gt;Analog Devices&lt;/a&gt;&amp;nbsp;was used to amplify the low signal output of the ultrasonic receivers. The actual part used was the&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/ad620.pdf"&gt;AD620&lt;/a&gt;, one is recquired for each receive channel. Analog has a nice tool&amp;nbsp;&lt;a href="http://www.analog.com/Analog_Root/static/techSupport/designTools/interactiveTools/inamp/inamp.html?inamp=AD620"&gt;here&lt;/a&gt;, to size the gain resistor, Rg. Based on experiments, a gain value of 33 was chosen, resulting in a Rg of 1.5k ohm. The AD620 was wired as follows:&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img src="http://coecsl.ece.illinois.edu/ge423/spring05/group9/ad620.gif" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Source:http://www.analog.com/images/Product_Descriptions/3888333375812882340AD620_fbs.gif&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1.3.2 Comparator Circuit&lt;/span&gt;&lt;/h4&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The analog comparitor used was part number&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/LM339.pdf"&gt;LM339&lt;/a&gt;. The volatage divdier was powered using +5 Vdc to creat the digital level output signal. The output from each instrumentation amplifier was wired to the "+" terminal, and the "-" was wired to 3 volts. The 3 Vdc signal was created from the +15 Vdc supply using a voltage divider. The output of the comparitor was wired to a 5 Vdc via a 3k resistor.&lt;/span&gt;&lt;h2&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;2.0 Software&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;The timing of the hardware interrupts from the 2811 is calculated, and from the times, position is calculated in the 2D plane using a combination of least squared fit and Jacobian iteration.&lt;/span&gt;&lt;/h2&gt;&lt;h3&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;2.1 Matlab Triangulation Code&lt;/span&gt;&lt;/u&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The first algorithm was developed using Matlab. This code can be found&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/blah.m"&gt;here&lt;/a&gt;. The algorithm is not stable for all input parameters, a good set of test conditions are:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;[x,y]=blah(.010,.012,.012)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;[x,y]=blah(.009,.014,.012)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;[x,y]=blah(.011,.011,.011)&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Note the highly descriptive function named blah&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;h3&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;2.2 DSP C Code&lt;/span&gt;&lt;/u&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The c code for the 2812 DSP is in the&amp;nbsp;&lt;a href="http://coecsl.ece.illinois.edu/ge423/spring05/group9/ultrasoniccode.zip"&gt;attached&lt;/a&gt;&amp;nbsp;zip file. The code works as following:&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Hardware interrupt pin get triggered&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Record absolute clock time when pin transition occurs&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Go back to step 1,and once all three pins have been triggered:&lt;/span&gt;&lt;/li&gt;
&lt;ol type-="a"&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;(only do this step the first time through the code) Assume robot stationary, acquire base transmit period for each frequency by averaging first 4 values, this step syncs the clocks of the transmitters to the robot&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Calculate time from transmitter to robot for each frequency&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Triangulate position of robot using least squared fit to data points&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Wait for fixed amount of time, ignore hardware interrupts during this time because of the nature of the transmit signal&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Go back to Step 1&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;&lt;h2&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;3.0 Lessons Learned&lt;/span&gt;&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A resistor was needed in parallel with the tuning potentiometer to give better resolution&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A resistor was required in parallel with the US transmitter for the circuit to function because the transmitter is like a capacitor.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;4.0 Acknowledgments&lt;/span&gt;&lt;/h2&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Various people and online resources aided in this project:&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;GE423 Lab Instructor: Dan Block&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;GE423 TAs: Dave Johnson, Daniel Herring&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;My officemate: Steve Tschopp&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Misc. Consultation: Tim Cargol&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Misc Websites:&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;http://ourworld.compuserve.com/homepages/Bill_Bowden/555.htm&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.williamson-labs.com/480_555.htm&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.massa.com&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;http://www.digikey.com (source for datasheets)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-4412065600159043684?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/4412065600159043684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/07/ultrasonic-position-system.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4412065600159043684?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4412065600159043684?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/07/ultrasonic-position-system.html' title='Ultrasonic Position System'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;AkQFQHgyeCp7ImA9WhdSEEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-2065133301554412897</id><published>2011-07-19T05:25:00.000-07:00</published><updated>2011-07-19T05:25:11.690-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-19T05:25:11.690-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Car Wireless Alarm Circuit Diagram</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-sSzJ5ZfqCLs/TiV3g7XEWUI/AAAAAAAAAxM/dIGbpxogDYo/s1600/Car+Wireless+Alarm+Circuit+Diagram.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-sSzJ5ZfqCLs/TiV3g7XEWUI/AAAAAAAAAxM/dIGbpxogDYo/s320/Car+Wireless+Alarm+Circuit+Diagram.gif" width="296" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;This FM radio-controlled anti- annexation anxiety can be acclimated with any agent accepting 6- to 12-volt DC accumulation system. The mini VHF,&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;FM transmitter&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;is adapted in the agent at night back it is anchored in the car balustrade or&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&amp;nbsp;car park&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;. The receiver assemblage with CXA1019, a distinct IC-based FM radio module, which is advisedly accessible in the bazaar at reasonable rate, is kept inside. Receiver is acquainted to the transmitter's frequency. Back the transmitter is on and the signals are actuality accustomed by FM radio receiver, no hissing babble is accessible at the achievement of receiver.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px; text-align: justify;"&gt;Appropriately transistor T2 (BC548) does not conduct. This after-effects in the broadcast disciplinarian transistor T3 accepting its advanced abject bent via 10k resistor&amp;nbsp;R5 and the broadcast gets energised. Back an burglar tries to drive the car and takes it a few metres abroad from the car porch, the radio articulation amid the car (transmitter) and anxiety (receiver) is broken. As a aftereffect FM radio bore gene-rates hissing noise. Hissing AC signals are accompanying to broadcast switching circ- uit via audio transformer. These AC signals are rectified and filtered by diode D1 and capacitor C8, and the consistent absolute DC voltage provides a advanced bent to transistor T2.&lt;br /&gt;
&lt;br /&gt;
Appropriately transistor T2 conducts, and it pulls the abject of broadcast disciplinarian transistor T3 to arena level. The broadcast appropriately gets de-activated and the anxiety affiliated via N/C contacts of broadcast is switched on. If, by chance, the burglar finds out about the wireless anxiety and disconnects the transmitter from battery, still alien anxiety charcoal activated because in the absence of signal, the receiver continues to aftermath hissing babble at its output. So the burglar anxiety is fool-proof and awful reliable.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-2065133301554412897?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/2065133301554412897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/07/car-wireless-alarm-circuit-diagram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/2065133301554412897?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/2065133301554412897?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/07/car-wireless-alarm-circuit-diagram.html' title='Car Wireless Alarm Circuit Diagram'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-sSzJ5ZfqCLs/TiV3g7XEWUI/AAAAAAAAAxM/dIGbpxogDYo/s72-c/Car+Wireless+Alarm+Circuit+Diagram.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkYHSXY5fip7ImA9WhdSEEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-4152041938862644179</id><published>2011-07-19T05:22:00.000-07:00</published><updated>2011-07-19T05:22:18.826-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-19T05:22:18.826-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Hot Water Level Indicator</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-VfvvAXBdSXY/TiV24uLuT2I/AAAAAAAAAxI/YiTEuPOSpCI/s1600/Hot+Water+Level+Indicator.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://2.bp.blogspot.com/-VfvvAXBdSXY/TiV24uLuT2I/AAAAAAAAAxI/YiTEuPOSpCI/s400/Hot+Water+Level+Indicator.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;strong&gt;Notes:&lt;/strong&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Save fuel bills and the economy of the planet with this circuit. SW1 is a normally open press button switch which allows you to view the level of hot water in a hot water tank. When pressed the voltage difference at the junction of the thermistor and preset is compared to the fixed voltage on the op-amps non-inverting input. Depending on the heat of the water in the tank, the thermistors resistance will toggle the op-amp output to swing to almost full voltage supply and light the appropriate LED.&lt;/div&gt;&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;strong&gt;Construction:&lt;/strong&gt;&lt;br /&gt;
Masking tape was used to stick the bead thermistors to the tank. Wires were soldered and insulated at the thermistors ends. A plastic box was used to house the circuit. Battery life will probably be 4 to 5 years depending on how often you use the push switch, SW1.&lt;/div&gt;&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;strong&gt;Sensor Placement:&lt;/strong&gt;&lt;br /&gt;
Thermistors NTC1-4 should be spread evenly over the height of the tank. I placed NTC1 roughly 4 inches from the top of my tank and the others were spaced evenly across the height of the hot water tank. As hot water rises the lowest sensor indicates the fullest height of hot water and should be about 8 to 10 inches from the bottom of the tank.&lt;/div&gt;&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;strong&gt;Calibration:&lt;/strong&gt;&lt;br /&gt;
With a full tank of hot water adjust P1-4 so that all LED's are lit. As hot water rises, the sensor at the bottom of the tank will be the maximum level of hot water. "Hot" can be translated as 50C to 80C the presets P1-4 allow adjustment of this range.&lt;/div&gt;&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;strong&gt;Parts:&lt;/strong&gt;&lt;br /&gt;
I have used a quad version of the LM324 but any quad opamp can be used or even four single op-amps.&lt;br /&gt;
R2-R5 I used 330ohm resistors, but value is not critical. Lower values give brighter LED output.&lt;br /&gt;
NTC1-4 The thermistors maximum resistance must roughly equal the resistance of the fixed resistor and preset. As negative temparature coefficient (NTC) thermistors are used, then their resistance decreases for increases in temperature. I used a thermistor from the Maplin Catalogue. Cold resistance was around 300K, hot resistance 15k. Alternative thermistors may be used with different resistance ranges, but the presets P1 to P4 must also be changed as well.&lt;br /&gt;
R7-10 series resistance, only required if your thermistors resistance is several ohms at the hottest temperature.&lt;br /&gt;
P1 - P4 Chosen to match the resistance of the thermistor when cold.&lt;br /&gt;
R1 &amp;amp; R6. These resistors are equal and bias the op-amp inverting input to half the supply voltage. I used 100k.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-4152041938862644179?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/4152041938862644179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/07/hot-water-level-indicator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4152041938862644179?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4152041938862644179?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/07/hot-water-level-indicator.html' title='Hot Water Level Indicator'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-VfvvAXBdSXY/TiV24uLuT2I/AAAAAAAAAxI/YiTEuPOSpCI/s72-c/Hot+Water+Level+Indicator.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUMARnsyfSp7ImA9WhdSEEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-3657921884614617675</id><published>2011-07-19T05:10:00.000-07:00</published><updated>2011-07-19T05:10:47.595-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-19T05:10:47.595-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Water Level Indicator Alarm</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-1XBWZmb-KS8/TiV0FFC4GcI/AAAAAAAAAxE/d8nYZW_XalM/s1600/Alarm+Water+Level+Indicator.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://1.bp.blogspot.com/-1XBWZmb-KS8/TiV0FFC4GcI/AAAAAAAAAxE/d8nYZW_XalM/s400/Alarm+Water+Level+Indicator.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="line-height: 20px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 20px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This ambit not alone indicates the bulk of baptize present in the aerial catchbasin but additionally gives an anxiety back the catchbasin is full.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 20px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The ambit uses the broadly accessible CD4066, mutual about-face CMOS IC to announce the baptize akin through LEDs.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 20px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;When the baptize is abandoned the affairs in the catchbasin are accessible&amp;nbsp;circuited and the 180K resistors pulls the about-face low appropriately aperture the about-face and LEDs are OFF. As the baptize starts bushing up, aboriginal the wire in the catchbasin affiliated to S1 and the + accumulation are shorted by water. This closes the about-face S1 and turns the LED1 ON. As the baptize continues to ample the tank, the LEDs2 , 3 and 4 ablaze up gradually.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 20px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The no. of levels of adumbration can be added to 8 if 2 CD4066 ICs are acclimated in a agnate fashion.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 20px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;When the baptize is full, the abject of the transistor BC148 is pulled aerial by the baptize and this saturates the transistor, axis the buzzer ON. The SPST about-face has to be opened to about-face the buzzer OFF.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 20px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Remember to about-face the about-face ON while pumping baptize contrarily the buzzer will not sound!&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-3657921884614617675?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/3657921884614617675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/07/water-level-indicator-alarm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3657921884614617675?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3657921884614617675?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/07/water-level-indicator-alarm.html' title='Water Level Indicator Alarm'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-1XBWZmb-KS8/TiV0FFC4GcI/AAAAAAAAAxE/d8nYZW_XalM/s72-c/Alarm+Water+Level+Indicator.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkUCRn87eyp7ImA9WhZSEkQ.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-6722547195338453405</id><published>2011-03-27T22:31:00.000-07:00</published><updated>2011-03-27T22:31:07.103-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-27T22:31:07.103-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Electronic mosquito repeller using CD4047</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Description.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Here is the circuit diagram of an ultrasonic mosquito repeller.The circuit is based on the theory that insects like mosquito can be repelled by using sound frequencies in the ultrasonic (above 20KHz) range.The circuit is nothing but a PLL IC CMOS 4047 wired as an oscillator working at 22KHz.A complementary symmetry amplifier consisting of four transistor is used to amplify the sound.The piezo buzzer converts the output of amplifier to ultrasonic sound that can be heard by the insects.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;i&gt;&lt;b&gt;Circuit diagram with Parts list.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-IqLTg8cXyec/TZAcwHPBwzI/AAAAAAAAAto/iniMUmNIXqo/s1600/electronic-mosquito-repeller9.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="245" src="http://2.bp.blogspot.com/-IqLTg8cXyec/TZAcwHPBwzI/AAAAAAAAAto/iniMUmNIXqo/s400/electronic-mosquito-repeller9.GIF" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Notes.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Assemble the circuit on a general purpose PCB.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The circuit can be powered from 12V DC.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The buzzer can be any general purpose piezo buzzer.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The IC1 must be mounted on a holder.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-6722547195338453405?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/6722547195338453405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/electronic-mosquito-repeller-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6722547195338453405?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6722547195338453405?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/electronic-mosquito-repeller-using.html' title='Electronic mosquito repeller using CD4047'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-IqLTg8cXyec/TZAcwHPBwzI/AAAAAAAAAto/iniMUmNIXqo/s72-c/electronic-mosquito-repeller9.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DE4GRXY9cSp7ImA9WhZSFkg.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-3577604778547091071</id><published>2011-03-27T21:40:00.000-07:00</published><updated>2011-04-01T04:22:04.869-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-01T04:22:04.869-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Electronic Mosquito Repeller Circuit</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: verdana; font-size: 12px; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style="color: #a63b06; margin-top: 0px; position: relative;"&gt;&lt;span class="Apple-style-span" style="color: black; font-weight: normal;"&gt;&lt;h2 style="color: #a63b06; margin-top: 0px; position: relative;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;This circuit produces a tone above the human audible range and this is supposed to keep the mosquitoes away. You need a piezo diaphragm that will respond to 15kHz and these are very difficult to find.&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small; margin-left: 1em; margin-right: 1em;"&gt;&lt;a href="http://4.bp.blogspot.com/-UdIQrMbkssY/TZARO16j11I/AAAAAAAAAtc/1otayg110DI/s1600/MosquitoRepeller.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="http://4.bp.blogspot.com/-UdIQrMbkssY/TZARO16j11I/AAAAAAAAAtc/1otayg110DI/s320/MosquitoRepeller.gif" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;This&lt;strong&gt;&amp;nbsp;electronic mosquito repellent schematic circuit&lt;/strong&gt;&amp;nbsp;diagram based on the&lt;strong&gt;&amp;nbsp;555 timer IC&lt;/strong&gt;&amp;nbsp;is a simple and useful&amp;nbsp;&lt;strong&gt;mosquito repellent circuit&lt;/strong&gt;&amp;nbsp;. This mosquito repeller circuit generate an ultrasonic sound with a high output frequency that&amp;nbsp; allows spreading mosquitoes within a wide radius . The circuit is quite simple and require few external components . The oscillation frequency is given by the value of the R1, R2 and C1 components and can be modified changing the value of components or replacing the R2 fixed resistor with a variable resistor ( potentiometer ) .&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;The actual oscillation frequency of this electronic mosquito repeller circuit is around 45 KHz ( 46.5 KHz) so you need to use a good high frequency speaker , you can use a piezo speaker .&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/span&gt;&lt;div style="line-height: 25px; margin-top: 0px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;The circuit can be supplied from a 9 V DC power supply &amp;nbsp;. This repeller circuit can be used for almost any animal , it works on&amp;nbsp; : cats , dogs , rats&amp;nbsp; . Even if you don’t hear the sound generated by device don’t worry&amp;nbsp; because the high frequency is less audible by the human ear .&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 25px; margin-top: 0px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;a href="http://2.bp.blogspot.com/-k8h8m3hTT_8/TZAbEfnxVRI/AAAAAAAAAtk/nypmThj0S5w/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="263" src="http://2.bp.blogspot.com/-k8h8m3hTT_8/TZAbEfnxVRI/AAAAAAAAAtk/nypmThj0S5w/s400/1.JPG" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-3577604778547091071?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/3577604778547091071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/mosquito-repeller-circuit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3577604778547091071?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3577604778547091071?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/mosquito-repeller-circuit.html' title='Electronic Mosquito Repeller Circuit'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-UdIQrMbkssY/TZARO16j11I/AAAAAAAAAtc/1otayg110DI/s72-c/MosquitoRepeller.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DE4FR3c_cCp7ImA9WhZSEkU.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-6652266050911996181</id><published>2011-03-27T21:35:00.000-07:00</published><updated>2011-03-27T21:35:16.948-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-27T21:35:16.948-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>60W inverter using transistors</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Description.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Here is the circuit diagram of a fully transistorized inverter that can drive up to 60W loads. Transistors Q1 and Q2 forms a 50Hz astable multivibrator. The output from the collector of Q2 is connected to the input of the Darlington pair formed by Q3 and Q4.Similarly the output of Q1 is coupled to the input of the pair Q5 and Q6. The output from the Darlington pairs drive the final output transistors Q7 and Q8 which are wired in the push pull configuration to drive the output transformer.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Circuit diagram.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-SZcf0EAWcEo/TZAP6AsVQTI/AAAAAAAAAtY/NLaroOrnARk/s1600/60W-inverter-using-transitors.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="168" src="http://2.bp.blogspot.com/-SZcf0EAWcEo/TZAP6AsVQTI/AAAAAAAAAtY/NLaroOrnARk/s400/60W-inverter-using-transitors.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Notes.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The circuit can be assembled on a vero board.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;T1 can be a 230V primary to 9-0-9V, 6A secondary transformer.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Transistors Q4, Q6, Q7 and Q8 must be fitted with heat sinks.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Use a 12V, 7Ah battery for powering the inverter.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Slight adjustments can be made on the value of R3 and R4 to get exact 50Hz output.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-6652266050911996181?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/6652266050911996181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/60w-inverter-using-transistors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6652266050911996181?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6652266050911996181?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/60w-inverter-using-transistors.html' title='60W inverter using transistors'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-SZcf0EAWcEo/TZAP6AsVQTI/AAAAAAAAAtY/NLaroOrnARk/s72-c/60W-inverter-using-transitors.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEEERHk5cSp7ImA9WhZSEkU.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-8300406508555826664</id><published>2011-03-27T21:30:00.000-07:00</published><updated>2011-03-27T21:30:05.729-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-27T21:30:05.729-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Simple 100W inverter circuit</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Description.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Here is the circuit diagram of a simple 100 watt inverter using IC CD4047 and MOSFET IRF540. The circuit is simple low cost and can be even assembled on a veroboard.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;CD 4047 is a low power CMOS astable/monostable multivibrator IC. Here it is wired as an astable multivibrator producing two pulse &amp;nbsp;trains of 0.01s which are 180 degree out of phase at the pins 10 and 11 of the IC. Pin 10 is connected to the gate of Q1 and pin 11 is connected to the gate of Q2. Resistors R3 and R4 prevents the loading of the IC by the respective MOSFETs. When pin 10 is high Q1 conducts and &amp;nbsp;current flows through the upper half of the transformer primary which accounts for the positive half of the output AC voltage. When pin 11 is high Q2 conducts and &amp;nbsp;current flows through the lower half of the transformer primary in opposite direction and it accounts for the negative half of the output AC voltage.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Circuit diagram&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-cnQw3I4NAEo/TZAOjQS1yrI/AAAAAAAAAtU/E0BEGKl0254/s1600/simple-100W-inverter-circuit.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="191" src="http://4.bp.blogspot.com/-cnQw3I4NAEo/TZAOjQS1yrI/AAAAAAAAAtU/E0BEGKl0254/s400/simple-100W-inverter-circuit.png" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Notes.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;B1 can be &amp;nbsp;a 12V/ 6Ah lead acid battery.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Q1 and Q2 must be fitted to a proper heat sink.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;T1 can be a 9-0-9 V primary, 230V secondary, 150VA transformer .&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Do not expect much from this circuit. The is very simple one suitable for low grade applications.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-8300406508555826664?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/8300406508555826664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/simple-100w-inverter-circuit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/8300406508555826664?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/8300406508555826664?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/simple-100w-inverter-circuit.html' title='Simple 100W inverter circuit'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-cnQw3I4NAEo/TZAOjQS1yrI/AAAAAAAAAtU/E0BEGKl0254/s72-c/simple-100W-inverter-circuit.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A04BQ308fip7ImA9WhZSEkU.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-6769446479398304206</id><published>2011-03-27T21:26:00.000-07:00</published><updated>2011-03-27T22:25:52.376-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-27T22:25:52.376-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>How to make an Inverter- Simple 40 Watt Inverter</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: center;"&gt;&lt;/h3&gt;&lt;h3 style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;How to make an Inverter&lt;/span&gt;&lt;/h3&gt;&lt;h3 style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Description:This is the schematic of a simple 40W , 12 volts to 220 Volts inverter.You don’t believe, this is simple and cheap and working for me for last 4 years.The heart of the circuit is a CD 4047 IC which is wired as an astable multi vibrator here.Resistance and Capacitance at pin 1&amp;amp;2 determines the out put frequency.Here it is set to 60Hz.Due to this a two 180 degree out of phase ,120 Hz , 50% duty cycle waveforms will appear at pin 10 &amp;amp; 11.These waves are amplified by the complementary symmetry amplifier made of transistors BC 337 &amp;amp; TIP 3055 to drive the out put transformer.Don’t get feared of the technical terms, just wire it on a all purpose PCB.It is simple and will work.Don’t worry about the transformer windings ,buy a 220-110-0 primary,12-0-12 secondary , &amp;lt;50W transformer.You can select output voltage of 110V or 220V by a two way switch using such a transformer.Don’t worry if you don’t have such a transformer, a simple 220 to 12-0-12 will also do the trick sacrificing the 110V option or vice versa.The best way to get a transformer is to break all useless electronic devices in your trash.Most probably you will find the transformer or more components needed here!&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: center;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;Simple Inverter Circuit Diagram:&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/--QFmN8rQhsw/TZANt19IMlI/AAAAAAAAAtQ/UewJ1O07yoU/s1600/simple-12-to-220-v-inverter.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="142" src="http://3.bp.blogspot.com/--QFmN8rQhsw/TZANt19IMlI/AAAAAAAAAtQ/UewJ1O07yoU/s320/simple-12-to-220-v-inverter.JPG" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;h3 style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;strong&gt;Tips&amp;nbsp;&lt;/strong&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;First wire to oscillator part only.Then check out put Pin 10 &amp;amp;11 of CD4047 to obtain the required wave forms ( two 120Hz ,180 degree out of phase,50% duty cycle waves.&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: normal;"&gt;Then connect transistors ,transformer and load (25 W bulb for test).See it working!.&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-6769446479398304206?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/6769446479398304206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/how-to-make-inverter-simple-40-watt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6769446479398304206?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6769446479398304206?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/how-to-make-inverter-simple-40-watt.html' title='How to make an Inverter- Simple 40 Watt Inverter'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/--QFmN8rQhsw/TZANt19IMlI/AAAAAAAAAtQ/UewJ1O07yoU/s72-c/simple-12-to-220-v-inverter.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUQBRX0zfyp7ImA9WhRbGUk.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-6940802479153054874</id><published>2011-03-27T21:21:00.000-07:00</published><updated>2012-02-10T22:55:54.387-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-02-10T22:55:54.387-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>555 Timer IC Pin configuration</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://4.bp.blogspot.com/-JTwzLbuY8UE/TZAMefHCo8I/AAAAAAAAAtM/jOfcT1GyXKY/s1600/555-Timer-IC.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="112" src="http://4.bp.blogspot.com/-JTwzLbuY8UE/TZAMefHCo8I/AAAAAAAAAtM/jOfcT1GyXKY/s320/555-Timer-IC.jpg" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The&amp;nbsp;&lt;strong&gt;555 Timer IC&amp;nbsp;&lt;/strong&gt;is available as an 8-pin metal can, an 8-pin mini DIP (dual-in-package) or a 14-pin DIP.&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This IC consists of 23 transistors, 2 diodes and 16&amp;nbsp;&lt;strong&gt;resistors&lt;/strong&gt;. The explanation of terminals coming out of the 555 timer IC is as follows. The pin number used in the following discussion refers to the 8-pin DIP and 8-pin metal can packages.&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Zx5mc8ibi3M/TZAMeEfehDI/AAAAAAAAAtI/6gDp48sO6ww/s1600/555-timer-ic-pin-configuration.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-Zx5mc8ibi3M/TZAMeEfehDI/AAAAAAAAAtI/6gDp48sO6ww/s320/555-timer-ic-pin-configuration.jpg" width="259" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin 1&lt;/strong&gt;:&amp;nbsp;&lt;strong&gt;Grounded Terminal.&amp;nbsp;&lt;/strong&gt;All the voltages are meas­ured with respect to this terminal.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin&amp;nbsp;&lt;/strong&gt;2:&amp;nbsp;&lt;strong&gt;Trigger&amp;nbsp;&lt;/strong&gt;Terminal. This pin is an inverting input to a comparator that is responsible for transition of flip-flop from set to reset. The output of the timer depends on the amplitude of the external trigger pulse applied to this pin.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin 3:&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Output Terminal.&amp;nbsp;&lt;/strong&gt;Output of the timer is avail­able at this pin. There are two ways in which a load can be connected to the output terminal either between pin 3 and ground pin (pin 1) or between pin 3 and supply pin (pin 8). The load connected between pin 3 and ground&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;supply pin is called the&amp;nbsp;&lt;em&gt;normally on load&amp;nbsp;&lt;/em&gt;and that connected between pin 3 and ground pin is called the&amp;nbsp;&lt;em&gt;normally off load.&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin 4:&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Reset Terminal.&amp;nbsp;&lt;/strong&gt;To disable or reset the timer a negative pulse is applied to this pin due to which it is referred to as reset terminal. When this pin is not to be used for reset purpose, it should be connected to + V&lt;sub&gt;CC&lt;/sub&gt;&amp;nbsp;to avoid any possibility of false triggering.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin 5:&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Control Voltage Terminal.&amp;nbsp;&lt;/strong&gt;The function of this terminal is to control the threshold and trigger levels. Thus either the external voltage or a pot connected to this pin determines the pulse width of the output waveform. The external voltage applied to this pin can also be used to modulate the output waveform. When this pin is not used, it should be connected to ground through a 0.01 micro Farad to avoid any noise problem.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin&amp;nbsp;&lt;/strong&gt;6:&amp;nbsp;&lt;strong&gt;Threshold Terminal.&amp;nbsp;&lt;/strong&gt;This is the non-inverting input terminal of comparator 1, which compares the voltage applied to the terminal with a reference voltage of 2/3 V&lt;sub&gt;CC&lt;/sub&gt;. The amplitude of voltage applied to this terminal is responsible for the set state of flip-flop.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin 7&amp;nbsp;&lt;/strong&gt;:&amp;nbsp;&lt;strong&gt;Discharge Terminal.&amp;nbsp;&lt;/strong&gt;This pin is connected internally to the collector of transistor and mostly a capacitor is connected between this terminal and ground. It is called discharge terminal because when transistor saturates, capacitor discharges through the transistor. When the transistor is cut-off, the capacitor charges at a rate determined by the external resistor and capacitor.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;Pin 8:&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Supply Terminal.&amp;nbsp;&lt;/strong&gt;A supply voltage of + 5 V to + 18 V is applied to this terminal with respect to ground (pin 1).&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-6940802479153054874?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/6940802479153054874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/555-timer-ic-pin-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6940802479153054874?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6940802479153054874?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/555-timer-ic-pin-configuration.html' title='555 Timer IC Pin configuration'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-JTwzLbuY8UE/TZAMefHCo8I/AAAAAAAAAtM/jOfcT1GyXKY/s72-c/555-Timer-IC.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYCQHY_cCp7ImA9WhZSFkg.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-4450705920493613731</id><published>2011-03-27T21:18:00.000-07:00</published><updated>2011-04-01T04:26:01.848-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-01T04:26:01.848-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Reviews'/><title>555 Timer IC Working Principle</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-1LRZ4VEoXmU/TZAL7-okMYI/AAAAAAAAAtE/EtQqJnC4hiA/s1600/555-timer-ic-block-diagram.jpg" imageanchor="1" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: justify;"&gt;&lt;img border="0" height="204" src="http://3.bp.blogspot.com/-1LRZ4VEoXmU/TZAL7-okMYI/AAAAAAAAAtE/EtQqJnC4hiA/s320/555-timer-ic-block-diagram.jpg" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;h2 style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; padding-top: 5px;"&gt;&lt;strong&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Block Diagram of 555 timer IC:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;/h2&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Comparator 1 has a threshold input (pin 6) and a control input (pin 5). In most applications, the control input is not used, so that the control voltage equals +2/3 V&lt;sub&gt;CC&lt;/sub&gt;. Output of this comparator is applied to set (S) input of the flip-flop. Whenever the threshold voltage exceeds the control voltage, comparator 1 will set the flip-flop and its output is high&lt;em&gt;. A&amp;nbsp;&lt;/em&gt;high output from the flip-flop saturates the discharge transistor and discharge the capacitor connected externally to pin 7. The complementary signal out of the flip-flop goes to pin 3, the output. The output available at pin 3 is low&lt;em&gt;.&amp;nbsp;&lt;/em&gt;These conditions will prevail until comparator 2 triggers the flip-flop. Even if the voltage at the threshold input falls below 2/3&lt;em&gt;&amp;nbsp;&lt;/em&gt;V&lt;sub&gt;CC&lt;/sub&gt;,&lt;sub&gt;&amp;nbsp;&lt;/sub&gt;that is comparator 1 cannot cause the flip-flop to change again. It means that the comparator 1 can only force the flip-flop’s output high.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To change the output of flip-flop to low&lt;em&gt;,&amp;nbsp;&lt;/em&gt;the voltage at the trigger input must fall below + 1/3 Vcc. When this occurs, comparator 2 triggers the flip-flop, forcing its output low&lt;em&gt;.&amp;nbsp;&lt;/em&gt;The low&lt;em&gt;&amp;nbsp;&lt;/em&gt;output from the flip-flop turns the discharge transistor off&lt;em&gt;&amp;nbsp;&lt;/em&gt;and forces the power amplifier to output a high. These conditions will continue independent of the voltage on the trigger input. Comparator 2 can only cause the flip-flop to output low.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;From the above discussion it is concluded that for the having low output from the timer 555, the voltage on the threshold input must exceed the control voltage or + 2/3&lt;em&gt;&amp;nbsp;&lt;/em&gt;V&lt;sub&gt;CC&lt;/sub&gt;. They also&amp;nbsp;turn the discharge transistor on. To force the output from the timer high, the voltage on the trigger input must drop below +1/3&lt;em&gt;&amp;nbsp;&lt;/em&gt;V&lt;sub&gt;CC&lt;/sub&gt;. This also turns the discharge transistor off.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;A voltage may be applied to the control input to change the levels at which the switching occurs. When not in use, a 0.01 nano Farad capacitor should be connected between pin 5 and ground to prevent noise coupled onto this pin from causing false triggering.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Connecting the reset (pin 4) to a logic low will place a high on the output of flip-flop. The discharge transistor will go on and the power amplifier will output a low. This condition will continue until reset is taken high. This allows synchronization or resetting of the circuit’s operation. When not in use, reset should be tied to +V&lt;sub&gt;CC&lt;/sub&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-4450705920493613731?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/4450705920493613731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/555-timer-ic-working-principle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4450705920493613731?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4450705920493613731?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/555-timer-ic-working-principle.html' title='555 Timer IC Working Principle'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-1LRZ4VEoXmU/TZAL7-okMYI/AAAAAAAAAtE/EtQqJnC4hiA/s72-c/555-timer-ic-block-diagram.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Dk8GRnoyeSp7ImA9WhZSEkU.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-2838925231593088033</id><published>2011-03-27T21:00:00.000-07:00</published><updated>2011-03-27T21:00:27.491-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-27T21:00:27.491-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>USB Battery Charger controller circuit using LM3622</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-UKwnGZJ6o2A/TZAHyRtYjRI/AAAAAAAAAtA/eVTMKzY_Cu0/s1600/Battery-Charger-controller-using-LM3622-472x193.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="162" src="http://2.bp.blogspot.com/-UKwnGZJ6o2A/TZAHyRtYjRI/AAAAAAAAAtA/eVTMKzY_Cu0/s400/Battery-Charger-controller-using-LM3622-472x193.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 19px;"&gt;From USB Battery Charger controller circuit using LM3622&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-2838925231593088033?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/2838925231593088033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/usb-battery-charger-controller-circuit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/2838925231593088033?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/2838925231593088033?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/usb-battery-charger-controller-circuit.html' title='USB Battery Charger controller circuit using LM3622'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-UKwnGZJ6o2A/TZAHyRtYjRI/AAAAAAAAAtA/eVTMKzY_Cu0/s72-c/Battery-Charger-controller-using-LM3622-472x193.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0UDSXw4eyp7ImA9WhZSEUg.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-2190037144838320947</id><published>2011-03-26T08:40:00.000-07:00</published><updated>2011-03-26T09:01:18.233-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-26T09:01:18.233-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>555 timer calculator (monostable and astable operation)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This &lt;a href="http://electronician.blogspot.com/2009/09/555-timer-ic.html"&gt;555 timer IC&lt;/a&gt; calculator can calculate frequency, duty cycle, and high and low output of timer IC operation on both monostable and Astable. This Calculator script was written by Robert Davis of Goldsmith College&lt;/span&gt;&lt;br /&gt;
&lt;div id="outer-wrapper"&gt;&lt;div id="blog-wrapper"&gt;&lt;div id="content-wrapper"&gt;&lt;div id="main-wrapper"&gt;&lt;div class="main section" id="main"&gt;&lt;div class="widget Blog" id="Blog1"&gt;&lt;div class="blog-posts"&gt;&lt;div class="post"&gt;&lt;div class="post-body" id="post-8324427348327372631"&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_RpOfkmvmOVM/TMgebR6t-VI/AAAAAAAAAow/L-1DnsRLH2I/s1600/555+timer+IC.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="172" src="http://3.bp.blogspot.com/_RpOfkmvmOVM/TMgebR6t-VI/AAAAAAAAAow/L-1DnsRLH2I/s200/555+timer+IC.png" width="200" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;555 timer IC&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;555 timer Pin number and designation:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 1- ground or common pin&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 2- trigger pin&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 3- output pin&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 4- reset pin&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 5- control pin&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 6- threshold &amp;nbsp;pin&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 7- discharge pin&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;pin 8- positive supply&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;555 MONOSTABLE OPERATION&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Acts as one shot &amp;nbsp;pulse generator of output high duration of &amp;nbsp;&lt;b&gt;T=RC ln(3)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_RpOfkmvmOVM/TMghZRfmS4I/AAAAAAAAAo0/DKPzLXpsi1s/s1600/555+timer+monostable+operation.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="307" src="http://4.bp.blogspot.com/_RpOfkmvmOVM/TMghZRfmS4I/AAAAAAAAAo0/DKPzLXpsi1s/s320/555+timer+monostable+operation.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;555 timer monostable&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;script language="JavaScript"&gt;
 
function PopUp(page, w, h) // start popup script
 
{  
OpenWin=this.open(page,'popup','width='+w+',height='+h+',left=10,top=10,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=no'); 
} //end popup script 
 
&lt;!-- hide from old browsers 
// calculate 555 monostable characteristics 
function CalcMonostable()
 
{
 
 var R,C,RScale,CScale,T;  
 // get circuit parameters 
 R=parseFloat(document.formMonostable555.textR.value); 
 C=parseFloat(document.formMonostable555.textC.value); 
 RScale=parseFloat(document.formMonostable555.selectRScale.value); 
 CScale=parseFloat(document.formMonostable555.selectCScale.value); 
 R*=RScale; 
 C/=CScale;  
 // test for out of range 
 if((R&gt;0)&amp;&amp;(C&gt;0)) 
  T=1.1*R*C; 
 else 
  T=0;  
 // display results 
 document.formMonostable555.textT.value=T; 
} 
// calculate 555 astable characteristics 
function CalcAstable() 
{ 
 var R1,R2,C,R1Scale,R2Scale,CScale,THigh,TLow,TTotal,Freq,Duty; 
 // get circuit parameters 
 R1=parseFloat(document.formAstable555.textR1.value);
 R2=parseFloat(document.formAstable555.textR2.value); 
 C=parseFloat(document.formAstable555.textC.value); 
 R1Scale=parseFloat(document.formAstable555.selectR1Scale.value); 
 R2Scale=parseFloat(document.formAstable555.selectR2Scale.value); 
 CScale=parseFloat(document.formAstable555.selectCScale.value); 
 R1*=R1Scale; 
 R2*=R2Scale; 
 C/=CScale;  
 // test for out of range 
 if((R1&gt;0)&amp;&amp;(R2&gt;0)&amp;&amp;(C&gt;0)) 
 { 
  THigh=0.693*(R1+R2)*C; 
  TLow=0.693*R2*C; 
  TTotal=0.693*(R1+(2.0*R2))*C; 
  Freq=1.44/((R1+(2.0*R2))*C); 
  Duty=100.0-((100.0*R2)/(R1+(2.0*R2)));
 }
 else 
 { 
  THigh=0; 
  TLow=0; 
  TTotal=0; 
  Freq=0; 
  Duty=0; 
 }  
 // display results 
 document.formAstable555.textTHigh.value=THigh; 
 document.formAstable555.textTLow.value=TLow;
 document.formAstable555.textTTotal.value=TTotal; 
 document.formAstable555.textFreq.value=Freq; 
 document.formAstable555.textDuty.value=Duty; 
} 
// stop hiding --&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;form name="formMonostable555"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;R: &lt;input name="textR" size="20" type="text" value="0" /&gt; &lt;select name="selectRScale" size="1"&gt;          &lt;option value="1.0"&gt; R &lt;/option&gt;          &lt;option selected="true" value="1000.0"&gt; K &lt;/option&gt;          &lt;option value="1000000.0"&gt; M &lt;/option&gt;        &lt;/select&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;C: &lt;input name="textC" size="20" type="text" value="0" /&gt; &lt;select name="selectCScale" size="1"&gt;          &lt;option selected="true" value="1000000.0"&gt; uF &lt;/option&gt;          &lt;option value="1000000000.0"&gt; nF &lt;/option&gt;          &lt;option value="1000000000000.0"&gt; pF &lt;/option&gt;        &lt;/select&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;center&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;input name="buttonCompute" onclick="CalcMonostable()" type="button" value="Compute" /&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/center&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;T Output High (Seconds) = &lt;input name="textT" size="20" type="text" value="" /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/form&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;555 TIMER ASTABLE OPERATION&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_RpOfkmvmOVM/TMgkFyR2PmI/AAAAAAAAAo4/KotVyTdlFi0/s1600/555+timer+bi-stable+operation.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="306" src="http://3.bp.blogspot.com/_RpOfkmvmOVM/TMgkFyR2PmI/AAAAAAAAAo4/KotVyTdlFi0/s320/555+timer+bi-stable+operation.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;555 timer astable operation&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This operation has an output of&amp;nbsp;continuous&amp;nbsp;pulses of specified frequency and and duty-cycle.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;form name="formAstable555"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;R1: &lt;input name="textR1" size="20" type="text" value="0" /&gt; &lt;select name="selectR1Scale" size="1"&gt;          &lt;option value="1.0"&gt; R &lt;/option&gt;          &lt;option selected="true" value="1000.0"&gt; K &lt;/option&gt;          &lt;option value="1000000.0"&gt; M &lt;/option&gt;        &lt;/select&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;R2: &lt;input name="textR2" size="20" type="text" value="0" /&gt; &lt;select name="selectR2Scale" size="1"&gt;          &lt;option value="1.0"&gt; R &lt;/option&gt;          &lt;option selected="true" value="1000.0"&gt; K &lt;/option&gt;          &lt;option value="1000000.0"&gt; M &lt;/option&gt;        &lt;/select&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;C: &lt;input name="textC" size="20" type="text" value="0" /&gt; &lt;select name="selectCScale" size="1"&gt;          &lt;option selected="true" value="1000000.0"&gt; uF &lt;/option&gt;          &lt;option value="1000000000.0"&gt; nF &lt;/option&gt;          &lt;option value="1000000000000.0"&gt; pF &lt;/option&gt;        &lt;/select&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;input name="buttonCompute" onclick="CalcAstable()" type="button" value="Compute" /&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/center&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;T&lt;sub&gt;1&lt;/sub&gt; Output High (Seconds) = &lt;input name="textTHigh" size="20" type="text" value="" /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;T&lt;sub&gt;2&lt;/sub&gt; Output Low (Seconds) = &lt;input name="textTLow" size="20" type="text" value="" /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;T Total Period (Seconds) = &lt;input name="textTTotal" size="20" type="text" value="" /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Frequency (Hz) = &lt;input name="textFreq" size="20" type="text" value="" /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Duty (%High) = &lt;input name="textDuty" size="20" type="text" value="" /&gt;&lt;/span&gt; &lt;/form&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-2190037144838320947?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/2190037144838320947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/555-timer-calculator-monostable-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/2190037144838320947?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/2190037144838320947?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/555-timer-calculator-monostable-and.html' title='555 timer calculator (monostable and astable operation)'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_RpOfkmvmOVM/TMgebR6t-VI/AAAAAAAAAow/L-1DnsRLH2I/s72-c/555+timer+IC.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;C0IAQXk4cCp7ImA9WhZSEUg.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-3639764673956407147</id><published>2011-03-26T07:52:00.000-07:00</published><updated>2011-03-26T07:59:00.738-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-26T07:59:00.738-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Simple LED Emergency Light Circuit</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-BxUqMWUQCjI/TY39qROUluI/AAAAAAAAAs8/xcEocwTB-cE/s1600/LED+emergency+light.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="145" src="https://lh3.googleusercontent.com/-BxUqMWUQCjI/TY39qROUluI/AAAAAAAAAs8/xcEocwTB-cE/s400/LED+emergency+light.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This LED emergency light project is simple, cheap and easy&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;to build. The circuit do the charging of the battery and when the&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;main source is not available such as in brownouts, the white LEDs&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;automatically turn on.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Initially, the voltage output &amp;nbsp;from 220V to 12V converter is fed to the&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;input of LM317 regulator. Then this voltage is regulated down to 7.37V&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;using 240 ohms and 1.2K resistor combination (see LM317 Calculator).&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;At this instant, the battery is in charging mode and the transistor Q1 is&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;off. Indicator LED serves two purpose, one primarily is to give us idea&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;that the battery is charging and another is to ensure that the Q1 is off.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;During brownouts, the transistor Q1 is on and delivers current&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;to 16 white LED of about 20mA each, thus a fully charged battery&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;(6V/4.5Ah) can last up to 14 hours.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The charger has no built in over-current control but still it protects the&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;battery from overcharging since the charging voltage is set only to 7.4V.&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Project materials:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - transformer - 220V to 12V-0-12V , center tap 12VA&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;16pc - 120 ohms resistor 1/4 W&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;16pc - white LED min 3V@30mA&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - red LED&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - 1000uF/25V electrolytic capacitor&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;3pc - 1N4001 diode&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - LM317 regulator&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - 1.5K resistor 1/4W&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - 240 ohms resistor 1/4W&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - 1.2k resistor 1/4W&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - 9012 pnp transistor or any of much higher capacity&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1pc - 6V 4.5ah battery&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-3639764673956407147?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/3639764673956407147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/simple-led-emergency-light-circuit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3639764673956407147?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3639764673956407147?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/simple-led-emergency-light-circuit.html' title='Simple LED Emergency Light Circuit'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-BxUqMWUQCjI/TY39qROUluI/AAAAAAAAAs8/xcEocwTB-cE/s72-c/LED+emergency+light.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkMCR3g7fCp7ImA9WhZSEUg.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-5319412660606319607</id><published>2011-03-26T07:41:00.000-07:00</published><updated>2011-03-26T07:41:06.604-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-26T07:41:06.604-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Automatic LED Emergency Light</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-P_0apx4cb2g/TY36Xmmf8UI/AAAAAAAAAs4/k8nU_6FHEK0/s1600/led-emergency.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="212" src="https://lh3.googleusercontent.com/-P_0apx4cb2g/TY36Xmmf8UI/AAAAAAAAAs4/k8nU_6FHEK0/s400/led-emergency.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;This is the circuit diagram of a low cost emergency light based on white LED.The white LED provide very bright light which turns on when the mains supply is not there.The circuit has an automatic charger which stops charging when the battery is fully charged.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;The IC LM 317 produces a regulated 7 V for the charging of Battery.Transistor BD 140 drives the out put.Transistor BC 548 and Zener diode controls the charging of the battery.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;b&gt;Tips&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; line-height: 16px;"&gt;It is always better to connect a heat sink with BD 140.Before using the circuit out put of LM317 must be set to 7V by adjusting the potentiometer.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-5319412660606319607?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/5319412660606319607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/automatic-led-emergency-light.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/5319412660606319607?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/5319412660606319607?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/automatic-led-emergency-light.html' title='Automatic LED Emergency Light'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-P_0apx4cb2g/TY36Xmmf8UI/AAAAAAAAAs4/k8nU_6FHEK0/s72-c/led-emergency.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Ak4FR3w8eCp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-3168062532646830553</id><published>2011-03-23T04:15:00.000-07:00</published><updated>2011-03-23T04:15:16.270-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T04:15:16.270-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>4069 Latching Relay Driver</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-zVlMdvIchDc/TYnWG5NLErI/AAAAAAAAAs0/0ftczBOSCSo/s1600/render_relay.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="603" src="https://lh4.googleusercontent.com/-zVlMdvIchDc/TYnWG5NLErI/AAAAAAAAAs0/0ftczBOSCSo/s640/render_relay.gif" width="640" /&gt;&lt;/a&gt;&lt;a href="https://lh3.googleusercontent.com/-KMErZu1THMI/TYnWGXxke0I/AAAAAAAAAsw/VxkhyS1n9GQ/s1600/pnp_relay.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="https://lh3.googleusercontent.com/-KMErZu1THMI/TYnWGXxke0I/AAAAAAAAAsw/VxkhyS1n9GQ/s320/pnp_relay.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-3168062532646830553?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/3168062532646830553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/4069-latching-relay-driver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3168062532646830553?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3168062532646830553?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/4069-latching-relay-driver.html' title='4069 Latching Relay Driver'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-zVlMdvIchDc/TYnWG5NLErI/AAAAAAAAAs0/0ftczBOSCSo/s72-c/render_relay.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkEASHs4cSp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-6050523862441057870</id><published>2011-03-23T04:10:00.000-07:00</published><updated>2011-03-23T04:10:49.539-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T04:10:49.539-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Uses of Optoisolators</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;Consist of an LED (usually Infra-red) and a phototransistor close-coupled in a DIL IC package. Commonly used to isolate two sections of a circuit for safety reasons.&lt;br /&gt;
&lt;br /&gt;
An example where you want to swap your case power or drive activity LED for something with a bit more bling, without endangering the motherboard. The optoisolator diode is connected in place of the case LED.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-v8ViJgbPTjg/TYnU9eayzGI/AAAAAAAAAss/WJfVhbTufLA/s1600/Optoisolators.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://lh5.googleusercontent.com/-v8ViJgbPTjg/TYnU9eayzGI/AAAAAAAAAss/WJfVhbTufLA/s1600/Optoisolators.gif" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-6050523862441057870?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/6050523862441057870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/uses-of-optoisolators.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6050523862441057870?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/6050523862441057870?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/uses-of-optoisolators.html' title='Uses of Optoisolators'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh5.googleusercontent.com/-v8ViJgbPTjg/TYnU9eayzGI/AAAAAAAAAss/WJfVhbTufLA/s72-c/Optoisolators.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkYMRXgyeCp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-5225190092939331702</id><published>2011-03-23T04:03:00.000-07:00</published><updated>2011-03-23T04:03:04.690-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T04:03:04.690-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Misc. Circuits'/><title>Non-Latching (Momentary) Switches.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;The most common are push-button, but toggle switches too may be spring-loaded to return to one position after activating. In the catalogues, an (ON)-OFF description means it's only ON while you're holding the lever in place. With push-button, they're more often described as 'momentary-on' (push to make) or 'momentary-off' (push to break).&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;div style="text-align: justify;"&gt;Here's how the two types could be used together to control ON-OFF action by latching a&amp;nbsp;&lt;b style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;relay&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;, a very common system on industrial control gear.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small;"&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-bottom: 0.5em; margin-left: auto; margin-right: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-0FC-2JMZAMg/TYnTEYXpfNI/AAAAAAAAAso/eJEqX09sszk/s1600/relay_latch.gif" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="308" src="https://lh4.googleusercontent.com/-0FC-2JMZAMg/TYnTEYXpfNI/AAAAAAAAAso/eJEqX09sszk/s400/relay_latch.gif" style="cursor: move;" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="font-size: 13px; padding-top: 4px; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;i&gt;&lt;b&gt;Relay Latching Circuit&lt;br /&gt;
&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;div style="text-align: justify;"&gt;The relay needs to have two or more poles (the switches) which can be change-over (double-throw) or single-throw types.&amp;nbsp;&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;div style="text-align: justify;"&gt;The "On" switch S2 is a push-to-make (momentary on) type, and allows power through to the relay coil when pressed. This becomes an electro-magnet and pulls all the relay switches over to the 'no' (normally-open) position. (With relays, 'normally-open' and 'normally-closed' refer to the switch positions with no power applied to the coil.)&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;div style="text-align: justify;"&gt;Relay switch Sw2 now keeps power running to the relay coil after the "On" button has been released, latching the relay into the 'on' position.&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;div style="text-align: justify;"&gt;Relay switch Sw1 is used to switch power to whatever load you have attached, (Extra relay switches would be used, for example, to control a 3-phase electric motor.)&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;div style="text-align: justify;"&gt;Pressing the "Off" button S1, a push-to-break (momentary off) type, breaks the power circuit, deactivating the relay electro-magnet and sending its switches back to the 'nc' (normally-closed) position.&lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;&lt;div style="text-align: justify;"&gt;The diode D1 gives an easy path to any voltage spike produced when the relay coil turns off&amp;nbsp;&lt;i style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;(back-EMF)&amp;nbsp;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 12px;"&gt;protecting any sensitive equipment on the same circuit.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-5225190092939331702?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/5225190092939331702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/non-latching-momentary-switches.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/5225190092939331702?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/5225190092939331702?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/non-latching-momentary-switches.html' title='Non-Latching (Momentary) Switches.'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-0FC-2JMZAMg/TYnTEYXpfNI/AAAAAAAAAso/eJEqX09sszk/s72-c/relay_latch.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkUFQH05fCp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-756135854296049690</id><published>2011-03-23T02:56:00.000-07:00</published><updated>2011-03-23T02:56:51.324-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T02:56:51.324-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutor'/><title>8051 Tutorial Part-1 -  Serial Communication</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;One of the 8051s many powerful features is its integrated&amp;nbsp;&lt;i&gt;UART&lt;/i&gt;, otherwise known as a serial port. The fact that the 8051 has an integrated serial port means that you may very easily read and write values to the serial port. If it were not for the integrated serial port, writing a byte to a serial line would be a rather tedious process requring turning on and off one of the I/O lines in rapid succession to properly "clock out" each individual bit, including start bits, stop bits, and parity bits.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;However, we do not have to do this. Instead, we simply need to configure the serial ports operation mode and baud rate. Once configured, all we have to do is write to an SFR to write a value to the serial port or read the same SFR to read a value from the serial port. The 8051 will automatically let us know when it has finished sending the character we wrote and will also let us know whenever it has received a byte so that we can process it. We do not have to worry about transmission at the bit level--which saves us quite a bit of coding and processing time.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;a href="http://8051tutorials.blogspot.com/2009/12/8051-tutorial-serial-communication.html" name="Serial Mode" style="text-decoration: none;"&gt;&lt;/a&gt;&lt;span class="SectionHeader" style="font-weight: bold; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 0pt; padding-top: 0pt;"&gt;Setting the Serial Port Mode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The first thing we must do when using the 8051s integrated serial port is, obviously, configure it. This lets us tell the 8051 how many data bits we want, the baud rate we will be using, and how the baud rate will be determined.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;First, lets present the "Serial Control" (SCON) SFR and define what each bit of the SFR represents:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="line-height: 22px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table border="1" style="text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Bit&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Name&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Bit Addres&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Explanation of Function&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;7&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;SM0&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9Fh&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Serial port mode bit 0&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;6&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;SM1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9Eh&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Serial port mode bit 1.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;5&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;SM2&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9Dh&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Mutliprocessor Communications Enable (explained later)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;4&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;REN&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9Ch&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Receiver Enable. This bit must be set in order to receive characters.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;3&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TB8&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9Bh&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Transmit bit 8. The 9th bit to transmit in mode 2 and 3.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;RB8&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9Ah&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Receive bit 8. The 9th bit received in mode 2 and 3.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TI&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;99h&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Transmit Flag. Set when a byte has been completely transmitted.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;RI&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;98h&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Receive Flag. Set when a byte has been completely received.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Additionally, it is necessary to define the function of SM0 and SM1 by an additional table:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;table border="1" style="text-align: justify;"&gt;&lt;tbody&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;SM0&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;SM1&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Serial Mode&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Explanation&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Baud Rate&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;8-bit Shift Register&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Oscillator / 12&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;8-bit UART&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Set by Timer 1 (*)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;0&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9-bit UART&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Oscillator / 64 (*)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr align="CENTER"&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;3&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;9-bit UART&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Set by Timer 1 (*)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;(*) Note: The baud rate indicated in this table is doubled if PCON.7 (SMOD) is set.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The SCON SFR allows us to configure the Serial Port. Thus, well go through each bit and review its function.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The first four bits (bits 4 through 7) are configuration bits.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Bits&amp;nbsp;&lt;b&gt;SM0&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;SM1&lt;/b&gt;&amp;nbsp;let us set the&amp;nbsp;&lt;i&gt;serial mode&lt;/i&gt;&amp;nbsp;to a value between 0 and 3, inclusive. The four modes are defined in the chart immediately above. As you can see, selecting the Serial Mode selects the mode of operation (8-bit/9-bit, UART or Shift Register) and also determines how the baud rate will be calculated. In modes 0 and 2 the baud rate is fixed based on the oscillators frequency. In modes 1 and 3 the baud rate is variable based on how often Timer 1 overflows. Well talk more about the various Serial Modes in a moment.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The next bit,&amp;nbsp;&lt;b&gt;SM2&lt;/b&gt;, is a flag for "Multiprocessor communication." Generally, whenever a byte has been received the 8051 will set the "RI" (Receive Interrupt) flag. This lets the program know that a byte has been received and that it needs to be processed. However, when SM2 is set the "RI" flag will only be triggered if the 9th bit received was a "1". That is to say, if SM2 is set and a byte is received whose 9th bit is clear, the RI flag will never be set. This can be useful in certain advanced serial applications. For now it is safe to say that you will almost always want to clear this bit so that the flag is set upon reception of&amp;nbsp;&lt;i&gt;any&lt;/i&gt;&amp;nbsp;character.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The next bit,&amp;nbsp;&lt;b&gt;REN&lt;/b&gt;, is "Receiver Enable." This bit is very straightforward: If you want to receive data via the serial port, set this bit. You will almost always want to set this bit.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The last four bits (bits 0 through 3) are operational bits. They are used when actually sending and receiving data--they are not used to configure the serial port.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The&amp;nbsp;&lt;b&gt;TB8&lt;/b&gt;&amp;nbsp;bit is used in modes 2 and 3. In modes 2 and 3, a total of nine data bits are transmitted. The first 8 data bits are the 8 bits of the main value, and the ninth bit is taken from TB8. If TB8 is set and a value is written to the serial port, the datas bits will be written to the serial line followed by a "set" ninth bit. If TB8 is clear the ninth bit will be "clear."&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The&amp;nbsp;&lt;b&gt;RB8&lt;/b&gt;&amp;nbsp;also operates in modes 2 and 3 and functions essentially the same way as TB8, but on the reception side. When a byte is received in modes 2 or 3, a total of nine bits are received. In this case, the first eight bits received are the data of the serial byte received and the value of the ninth bit received will be placed in RB8.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;TI&lt;/b&gt;&amp;nbsp;means "Transmit Interrupt." When a program writes a value to the serial port, a certain amount of time will pass before the individual bits of the byte are "clocked out" the serial port. If the program were to write another byte to the serial port before the first byte was completely output, the data being sent would be garbled. Thus, the 8051 lets the program know that it has "clocked out" the last byte by setting the TI bit. When the TI bit is set, the program may assume that the serial port is "free" and ready to send the next byte.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Finally, the&amp;nbsp;&lt;b&gt;RI&lt;/b&gt;&amp;nbsp;bit means "Receive Interrupt." It funcions similarly to the "TI" bit, but it indicates that a byte has been received. That is to say, whenever the 8051 has received a complete byte it will trigger the RI bit to let the program know that it needs to read the value quickly, before another byte is read.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;a href="http://8051tutorials.blogspot.com/2009/12/8051-tutorial-serial-communication.html" name="Baud Rate" style="text-decoration: none;"&gt;&lt;/a&gt;&lt;span class="SectionHeader" style="font-weight: bold; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 0pt; padding-top: 0pt;"&gt;Setting the Serial Port Baud Rate&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Once the Serial Port Mode has been configured, as explained above, the program must configure the serial ports baud rate. This only applies to Serial Port modes 1 and 3. The Baud Rate is determined based on the oscillators frequency when in mode 0 and 2. In mode 0, the baud rate is always the oscillator frequency divided by 12. This means if youre crystal is 11.059Mhz, mode 0 baud rate will always be 921,583 baud. In mode 2 the baud rate is always the oscillator frequency divided by 64, so a 11.059Mhz crystal speed will yield a baud rate of 172,797.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;In modes 1 and 3, the baud rate is determined by how frequently timer 1 overflows. The more frequently timer 1 overflows, the higher the baud rate. There are many ways one can cause timer 1 to overflow at a rate that determines a baud rate, but the most common method is to put timer 1 in 8-bit auto-reload mode (timer mode 2) and set a reload value (TH1) that causes Timer 1 to overflow at a frequency appropriate to generate a baud rate.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To determine the value that must be placed in TH1 to generate a given baud rate, we may use the following equation (assuming PCON.7 is clear).&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((Crystal / 384) / Baud)&lt;/span&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;If PCON.7 is set then the baud rate is effectively doubled, thus the equation becomes:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((Crystal / 192) / Baud)&lt;/span&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;For example, if we have an 11.059Mhz crystal and we want to configure the serial port to 19,200 baud we try plugging it in the first equation:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((Crystal / 384) / Baud)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((11059000 / 384) / 19200 )&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((28,799) / 19200)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - 1.5 = 254.5&lt;/span&gt;&lt;/div&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;As you can see, to obtain 19,200 baud on a 11.059Mhz crystal wed have to set TH1 to 254.5. If we set it to 254 we will have achieved 14,400 baud and if we set it to 255 we will have achieved 28,800 baud. Thus were stuck...&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;But not quite... to achieve 19,200 baud we simply need to set PCON.7 (SMOD). When we do this we double the baud rate and utilize the second equation mentioned above. Thus we have:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((Crystal / 192) / Baud)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((11059000 / 192) / 19200)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - ((57699) / 19200)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;TH1 = 256 - 3 = 253&lt;/span&gt;&lt;/div&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Here we are able to calculate a nice, even TH1 value. Therefore, to obtain 19,200 baud with an 11.059MHz crystal we must:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;1. Configure Serial Port mode 1 or 3.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;2. Configure Timer 1 to timer mode 2 (8-bit auto-reload).&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;3. Set TH1 to 253 to reflect the correct frequency for 19,200 baud.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;4. Set PCON.7 (SMOD) to double the baud rate.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/ul&gt;&lt;a href="http://8051tutorials.blogspot.com/2009/12/8051-tutorial-serial-communication.html" name="Writing" style="line-height: 22px; text-decoration: none;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;Writing to the Serial Port&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/a&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Once the Serial Port has been propertly configured as explained above, the serial port is ready to be used to send data and receive data. If you thought that configuring the serial port was simple, using the serial port will be a breeze.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To write a byte to the serial port one must simply write the value to the&amp;nbsp;&lt;b&gt;SBUF&lt;/b&gt;&amp;nbsp;(99h) SFR. For example, if you wanted to send the letter "A" to the serial port, it could be accomplished as easily as:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;MOV SBUF,#A&lt;/span&gt;&lt;/b&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Upon execution of the above instruction the 8051 will begin transmitting the character via the serial port. Obviously transmission is not instantaneous--it takes a measureable amount of time to transmit. And since the 8051 does not have a serial output buffer we need to be sure that a character is completely transmitted before we try to transmit the next character.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The 8051 lets us know when it is done transmitting a character by setting the&amp;nbsp;&lt;b&gt;TI&lt;/b&gt;&amp;nbsp;bit in SCON. When this bit is set we know that the last character has been transmitted and that we may send the next character, if any. Consider the following code segment:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;CLR TI&lt;/b&gt;&amp;nbsp;;Be sure the bit is initially clear&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;MOV SBUF,#A&lt;/b&gt;&amp;nbsp;;Send the letter A to the serial port&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;JNB TI,$&lt;/b&gt;&amp;nbsp;;Pause until the TI bit is set.&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The above three instructions will successfully transmit a character and wait for the TI bit to be set before continuing. The last instruction says "Jump if the TI bit is not set to $"--$, in most assemblers, means "the same address of the current instruction." Thus the 8051 will pause on the JNB instruction until the TI bit is set by the 8051 upon successful transmission of the character.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;a href="http://8051tutorials.blogspot.com/2009/12/8051-tutorial-serial-communication.html" name="Reading" style="text-decoration: none;"&gt;&lt;/a&gt;&lt;span class="SectionHeader" style="font-weight: bold; margin-bottom: 0pt; margin-top: 0pt; padding-bottom: 0pt; padding-top: 0pt;"&gt;Reading the Serial Port&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Reading data received by the serial port is equally easy. To read a byte from the serial port one just needs to read the value stored in the&amp;nbsp;&lt;b&gt;SBUF&lt;/b&gt;(99h) SFR after the 8051 has automatically set the&amp;nbsp;&lt;b&gt;RI&lt;/b&gt;&amp;nbsp;flag in SCON.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;For example, if your program wants to wait for a character to be received and subsequently read it into the Accumulator, the following code segment may be used:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ul style="line-height: 22px; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;JNB RI,$&lt;/b&gt;&amp;nbsp;;Wait for the 8051 to set the RI flag&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;MOV A,SBUF&lt;/b&gt;&amp;nbsp;;Read the character from the serial port&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/ul&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;The first line of the above code segment waits for the 8051 to set the RI flag; again, the 8051 sets the RI flag automatically when it receives a character via the serial port. So as long as the bit is not set the program repeats the "JNB" instruction continuously.&lt;/span&gt;&lt;/div&gt;&lt;div style="line-height: 22px; text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Once the RI bit is set upon character reception the above condition automatically fails and program flow falls through to the "MOV" instruction which reads the value.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-756135854296049690?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/756135854296049690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/8051-tutorial-part-1-serial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/756135854296049690?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/756135854296049690?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/8051-tutorial-part-1-serial.html' title='8051 Tutorial Part-1 -  Serial Communication'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIGQns7cSp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-796828763887258093</id><published>2011-03-23T02:26:00.000-07:00</published><updated>2011-03-23T02:28:43.509-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T02:28:43.509-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutor'/><title>Microcontrollers Programming Part-1  - A Beginner's Guide - Program Transfer ( Video Tutorial )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/EQegddEd6kc/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/EQegddEd6kc&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/EQegddEd6kc&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-796828763887258093?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/796828763887258093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontrollers-programming-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/796828763887258093?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/796828763887258093?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontrollers-programming-part-1.html' title='Microcontrollers Programming Part-1  - A Beginner&apos;s Guide - Program Transfer ( Video Tutorial )'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIFQHY6eip7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-1732273664991275920</id><published>2011-03-23T02:24:00.001-07:00</published><updated>2011-03-23T02:28:31.812-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T02:28:31.812-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutor'/><title>AVR microcontroller Partt-2 - How to program the AVR ( Video Tutorial )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/YtTpUbnct6s/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/YtTpUbnct6s&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/YtTpUbnct6s&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-1732273664991275920?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/1732273664991275920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/avr-microcontroller-partt-2-how-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/1732273664991275920?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/1732273664991275920?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/avr-microcontroller-partt-2-how-to.html' title='AVR microcontroller Partt-2 - How to program the AVR ( Video Tutorial )'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIHQnozeyp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-3746147066678099340</id><published>2011-03-23T02:23:00.000-07:00</published><updated>2011-03-23T02:28:53.483-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T02:28:53.483-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutor'/><title>AVR microcontroller Partt-1 - How to program the AVR ( Video Tutorial )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 12px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/v84MsUM-n28/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/v84MsUM-n28&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/v84MsUM-n28&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;h1 id="watch-headline-title" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 1.5833em; font-weight: bold; margin-bottom: 3px; margin-left: 0px; margin-right: 0px; margin-top: 6px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-3746147066678099340?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/3746147066678099340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/avr-microcontroller-partt-1-how-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3746147066678099340?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/3746147066678099340?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/avr-microcontroller-partt-1-how-to.html' title='AVR microcontroller Partt-1 - How to program the AVR ( Video Tutorial )'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIAQn86eip7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-7416185413137218510</id><published>2011-03-23T02:10:00.000-07:00</published><updated>2011-03-23T02:29:03.112-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T02:29:03.112-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutor'/><title>Microcontroller Tutorial Part- 5 - Program using Keil ( Video Tutorial )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 12px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/8IfKWob7mP8/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/8IfKWob7mP8&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/8IfKWob7mP8&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;h1 id="watch-headline-title" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 1.5833em; font-weight: bold; margin-bottom: 3px; margin-left: 0px; margin-right: 0px; margin-top: 6px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;
&lt;/h1&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-7416185413137218510?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/7416185413137218510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontroller-tutorial-part-5-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/7416185413137218510?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/7416185413137218510?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontroller-tutorial-part-5-program.html' title='Microcontroller Tutorial Part- 5 - Program using Keil ( Video Tutorial )'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIBRX48cCp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-4245045242255388896</id><published>2011-03-23T02:09:00.000-07:00</published><updated>2011-03-23T02:29:14.078-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T02:29:14.078-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutor'/><title>Microcontroller Tutorial Part-4 - First Program in 8051 ( Video Tutorial )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&amp;nbsp;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://3.gvt0.com/vi/8P8AJUjoIsM/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/8P8AJUjoIsM&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/8P8AJUjoIsM&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-4245045242255388896?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/4245045242255388896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontroller-tutorial-part-4-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4245045242255388896?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4245045242255388896?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontroller-tutorial-part-4-first.html' title='Microcontroller Tutorial Part-4 - First Program in 8051 ( Video Tutorial )'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIDRH8_eCp7ImA9WhZTGEo.&quot;'><id>tag:blogger.com,1999:blog-1308135615045853964.post-4028108493666772781</id><published>2011-03-23T02:06:00.001-07:00</published><updated>2011-03-23T02:29:35.140-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-03-23T02:29:35.140-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Tutor'/><title>Microcontroller Tutorial Part-3 - Assembly Language ( Video Tutorial )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://1.gvt0.com/vi/dtzkFqeFlsU/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/dtzkFqeFlsU&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/dtzkFqeFlsU&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1308135615045853964-4028108493666772781?l=8051-projects.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8051-projects.blogspot.com/feeds/4028108493666772781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontroller-tutorial-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4028108493666772781?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1308135615045853964/posts/default/4028108493666772781?v=2'/><link rel='alternate' type='text/html' href='http://8051-projects.blogspot.com/2011/03/microcontroller-tutorial-part-3.html' title='Microcontroller Tutorial Part-3 - Assembly Language ( Video Tutorial )'/><author><name>Narsimharaju Redishetty</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-791jslT_Ck4/TWH2noNwnZI/AAAAAAAAAXM/ku31j6nm378/s220/Raju.JPG'/></author><thr:total>0</thr:total></entry></feed>