<?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;C0QAQHY8eSp7ImA9WhVREUo.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385</id><updated>2012-03-19T08:35:41.871-07:00</updated><category term='ultrasonic'/><category term='AT Commands'/><category term='articles'/><category term='GSM'/><category term='LCD'/><category term='Infrared'/><category term='projects'/><category term='8051'/><category term='LDR'/><category term='gps'/><title>Electronics Projects</title><subtitle type='html'>This blog lists electronics engineering projects with their detailed description. It will also include articles about electronic components, their working and ways to including them in designing a circuit.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;Ck8ESXc4fSp7ImA9WhVSGUo.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385.post-8024202931396355583</id><published>2012-03-17T00:26:00.000-07:00</published><updated>2012-03-17T00:53:28.935-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-03-17T00:53:28.935-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='8051'/><category scheme='http://www.blogger.com/atom/ns#' term='AT Commands'/><category scheme='http://www.blogger.com/atom/ns#' term='GSM'/><category scheme='http://www.blogger.com/atom/ns#' term='articles'/><title>Sending SMS using AT Commands</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This article describes sending a SMS from a Microcontroller through a GSM modem using AT Commands. through RS232. AT commands can be sent to a GSM modem via a computer serial port or from the serial port of a 8051 Microcontroller.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;





&lt;b&gt;&lt;u&gt;Computer serial port&lt;/u&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
1. Connect your GSM modem to the computer serial port. New systems nowadays dot not have serial port, hence you would need to buy a USB to serial converter and connect the GSM modem to it.&lt;br /&gt;
&lt;br /&gt;
2. If you are using Windows XP® OS, open Programs -&amp;gt; Accessories -&amp;gt; Communications -&amp;gt;&amp;nbsp;HyperTerminal&lt;br /&gt;
&lt;br /&gt;
3. Select the COM port you have the modem connected to.&lt;br /&gt;
&lt;br /&gt;
4. Check the port settings, make sure that the baud rate matches with that of the GSM modem and and also that the Flow Control is set to "None".&lt;br /&gt;
&lt;br /&gt;
5. Type the AT Commands below in the&amp;nbsp;HyperTerminal&amp;nbsp;Editor&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;AT+CMGF = 1 and Enter&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;AT+CMGS="+919449XXXXXX" &lt;/b&gt; and Enter&lt;br /&gt;
&lt;b&gt;"Electronicprojs.Blogspot.com" &lt;/b&gt; and Hit CTRL+Z&lt;br /&gt;
&lt;br /&gt;
6. In Windows 7® OS though, there is no hyperterminal program inbuilt. You will have to download a similar one. There are many good free programs available.&lt;br /&gt;
&lt;br /&gt;
7. You would need to note that in this case we are connecting the serial port cable from Female pin (GSM Modem) to Male pin (Computer). Hence no crossing is required. In other words, we should use a straight cable.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;




&lt;b&gt;&lt;u&gt;8051 MicroController Serial port&lt;/u&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
1. 8051 SFR's are programmed for a baud rate of 9600.&lt;br /&gt;
&lt;br /&gt;
2. Send the AT commands in #5 above through code. For Enter use escape character "\r" and for CTRL+Z use ASCII 0x1A.&lt;br /&gt;
&lt;br /&gt;
3. The serial port cable is connecting from Female pin (GSM Modem) to Female (8051 Board). So you need a have a female to male converter. Also, make sure that the Rx and Tx inside in the converter are crossed. In otherwords, the Rx pin of GSM Modem should go to Tx pin of 8051 microntroller. This is called a crossed cable.&lt;br /&gt;
&lt;br /&gt;
4. Below is the C program using Keil® Compiler for 8051. We added infinite while loop after the sendsms() routine because otherwise we found that the code compiled was sending the SMS in a infinite loop.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Note&lt;/u&gt;&lt;/b&gt; : Beginners always complain about their code working through serial port of a computer but the same not working through chip. It is very essential to understand the difference between crossed cable and straight cable as well as the pins configurations of male and female connectors before starting.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;C program&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;tt&gt;
#include &amp;lt;REGX51.H&amp;gt;&lt;br /&gt;
#include &amp;lt;AT89X51.H&amp;gt;&lt;br /&gt;
&lt;br /&gt;
unsigned char *command_AT = "AT\r";&lt;br /&gt;
unsigned char *command_CMGF = "AT+CMGF=1\r";&lt;br /&gt;
unsigned char *command_CMGS = "AT+CMGS=\"+919449XXXXX\"\r";&lt;br /&gt;
unsigned char *message = "electronicprojs.blogspot.com";&lt;br /&gt;
unsigned char CTRLZ = 0x1A;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
void puts(unsigned char* ptr);&lt;br /&gt;
void putc(unsigned char chr);&lt;br /&gt;
void sendsms(void);&lt;br /&gt;
void initialize();&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;initialize();&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;sendsms();&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;while(1);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void initialize()&lt;br /&gt;
{&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;SCON &amp;nbsp;= 0x50; &amp;nbsp; /*SCON: mode 1, 8-bit UART, enable receive &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;TMOD |= 0x20; &amp;nbsp; /*TMOD: timer 1, mode 2, 8-bit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;TH1 &amp;nbsp; = 0xFD; &amp;nbsp; /*TH1: &amp;nbsp;for 9600 baud &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;TR1 &amp;nbsp; = 1; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*TR1: &amp;nbsp;timer 1 run &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;*/&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/tt&gt;&lt;br /&gt;
&lt;tt&gt;}&lt;br /&gt;
&lt;br /&gt;
void sendsms()&lt;br /&gt;
{&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;puts(command_AT);&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;puts(command_CMGF);&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;puts(command_CMGS);&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;puts(message);&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;putc(CTRLZ);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void puts(char* p)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;char *temp = p;&lt;span style="white-space: pre;"&gt;&amp;nbsp;         &lt;/span&gt;/*temp pointer so that the actual pointer is not displaced */&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;while(*temp != 0x00)&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;putc(*temp);&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;temp++;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void putc(unsigned char chr)&lt;br /&gt;
{&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;SBUF = chr;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;while(TI==0);&lt;span style="white-space: pre;"&gt;&amp;nbsp;           &lt;/span&gt;/*Wait until the character is completely sent */&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;TI=0; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*Reset the flag */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;/tt&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4177382735265460385-8024202931396355583?l=electronicprojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/8024202931396355583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/sending-sms-using-at-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/8024202931396355583?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/8024202931396355583?v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/sending-sms-using-at-commands.html' title='Sending SMS using AT Commands'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkUMRng4eip7ImA9WhVSGUo.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385.post-9076382850034877707</id><published>2012-03-06T06:43:00.003-08:00</published><updated>2012-03-17T00:44:47.632-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-03-17T00:44:47.632-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='gps'/><category scheme='http://www.blogger.com/atom/ns#' term='articles'/><title>Global Positioning System (GPS) - Introduction</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Global positioning system (GPS) is a satellite based navigation system that provides the user with accurate position and time information. Today we find GPS receivers in almost every field – right from car navigations systems to missile launches, mobiles to aircraft - GPS is becoming an integral part of our lives. Here is an attempt to make the readers better understand the GPS system and to some extent, the techniques involved in its working&lt;br /&gt;
&lt;br /&gt;
GPS consists of a constellation of satellites (at least 24) that are deployed into orbits of 20000km. The data transmitted by the satellites is a Direct sequence spread spectrum (DSSS) signal with each satellite having a unique PRN (pseudo random noise) code of its own. The satellites are identified by this unique code that is a part of the signal that they transmit. The satellites have Ids from 1 to 32.&lt;br /&gt;
&lt;br /&gt;
The orbits are inclined at an angle of 55 degrees to the equatorial plane. The choice of orbit is such that there are at-least 5 satellites visible to a GPS receiver (with an open sky view) from any point on earth. The satellites orbit the earth with an orbital period of 12hrs. Hence the visibility scenario at any point on earth repeats itself every 24 hrs. It simply means that, if at a particular point on earth, I see satellites with Ids 2, 4, 10, 17, 25, and 20 then I would see the same set of satellites tomorrow at the same time.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The basic idea of GPS positioning – Trilateration&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Trilateration is the basic theory behind GPS positioning. Let me explain this in very simple terms.Consider a planar (2D) system in which I have three reference points or base stations (BS) which are transmitting signals and a mobile station (MS) or a receiver capable of receiving and decoding the signal from these base stations. The positions of these BS are fixed and are known to the MS.&lt;br /&gt;
&lt;br /&gt;
Let us assume that the data sent by each of the BS has sufficient information such that the MS is able to calculate the accurate range or distance from the BS i.e. if MS decodes signal from BS1, it can obtain its exact distance from BS1.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-cus5ZJ0OmUs/T2RAg5YEueI/AAAAAAAAAC4/_R3CYRbUB9I/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="257" src="http://4.bp.blogspot.com/-cus5ZJ0OmUs/T2RAg5YEueI/AAAAAAAAAC4/_R3CYRbUB9I/s320/1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now, I know my distance (d1) from BS1 and as said earlier, I know the location of BS1. This means that the position of the MS is anywhere on the circle centered at BS1 and with a radius d1.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-mM8mfVgt9oA/T2RAnRdKFxI/AAAAAAAAADA/BtC72qpbpes/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="191" src="http://3.bp.blogspot.com/-mM8mfVgt9oA/T2RAnRdKFxI/AAAAAAAAADA/BtC72qpbpes/s320/2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly if the MS can decode the signal from BS2 and obtain the distance d2 from it, then the ambiguity associated with the position of MS reduces to the intersection of the two circles (with BS1 and BS2 as centers and d1 and d2 as radius respectively). Hence the position is either point A or point B as shown in the figure. Extending this idea to one more BS reduces the ambiguity to a point that is the intersection of all the three circles thus formed.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-OGue7GGW4ps/T2RAuwhcbqI/AAAAAAAAADI/o4i8loRdtL4/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-OGue7GGW4ps/T2RAuwhcbqI/AAAAAAAAADI/o4i8loRdtL4/s320/3.png" width="300" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Now that you are convinced with the position determination in 2D space, we can extend the same to position determination in 3D space with MS being your GPS receiver and BS being the satellites in orbit. The range information from one satellite would give you a sphere, two satellites would give you a circle and three satellites would give you two points. One of these points, the true position will be towards the surface of the earth and the other will be on the other side of the satellite orbit and is discarded.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;NOTE:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Even though it seems that only three satellites are essential for position determination, in practice 4 are required due to the low precision clock on the receiver (more about this later)&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;The positioning can also be thought of as a linear system of three unknowns (position co-ordinates x, y, and z) of the receiver, which requires at-least three equations to solve. These three equations are obtained by three satellites.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;The fourth unknown called the user clock bias requires the range information from the fourth satellite.&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4177382735265460385-9076382850034877707?l=electronicprojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/9076382850034877707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/global-positioning-system-gps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/9076382850034877707?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/9076382850034877707?v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/global-positioning-system-gps.html' title='Global Positioning System (GPS) - Introduction'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-cus5ZJ0OmUs/T2RAg5YEueI/AAAAAAAAAC4/_R3CYRbUB9I/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkUFR3s5eSp7ImA9WhVSEE0.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385.post-7499993767160611399</id><published>2012-03-04T04:53:00.001-08:00</published><updated>2012-03-05T20:30:16.521-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-03-05T20:30:16.521-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='articles'/><category scheme='http://www.blogger.com/atom/ns#' term='ultrasonic'/><title>Ultrasonic Transmitter and Receiver</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;/div&gt;&lt;h3&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;/h3&gt;&lt;br /&gt;
Ultrasound is a form of cyclic sound pressure with a frequency greater than the upper limit of human hearing, this limit being approximately 20KHz. Some animals – such as dogs, dolphins, bats, and mice – have an upper frequency limit that is greater than that of the human ear and thus can hear ultrasound. Ultrasonic waves, however, being inaudible to humans, have little or no effect on the ear even at high intensities. Ultrasonics have found wide industrial use like nondestructive testing an object is irradiated with ultrasonic waves; variation in velocity or echo of the transmitted waves indicates a flaw. Fine machine parts, ball bearings, surgical instruments, and many other objects can be cleaned ultrasonically. Metals can be welded together by placing their surfaces in contact with each other and irradiating the contact with ultrasound. The molecules are stimulated into rearranged crystalline form, making a permanent bond. Ultrasonic whistles, which cannot be heard by human beings, are audible to dogs and are used to summon them.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Transmitter&lt;/h3&gt;&lt;br /&gt;
&lt;b&gt;Working&lt;/b&gt; &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;The 555 IC is used here as an astable multivibrator&lt;/li&gt;
&lt;li&gt;It oscillates at a frequency of about 40kHz. An ultrasonic transmitter transducer is used here to transmit ultrasonic sound very effectively&lt;/li&gt;
&lt;li&gt;A 10k pot is provided to vary the frequency of the astable multivibrator to adjust for maximum performance&lt;/li&gt;
&lt;li&gt;During the positive half cycle npn transistor SL100 is turned on while during the negative half cycle pnp transistor SK100 is turned on effectively doubling the peak to peak voltage fed to the ultrasonic transducer&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;Design&lt;/b&gt; &lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
f = 1 / (0.693 * ( R&lt;span style="font-size: x-small;"&gt;a&lt;/span&gt;+ 2R&lt;span style="font-size: x-small;"&gt;b&lt;/span&gt;)*C))&lt;br /&gt;
&lt;span style="text-align: justify;"&gt;f = 40kHz which is the center frequency of most ultrasonic transducers&lt;/span&gt;&lt;br /&gt;
&lt;span style="text-align: justify;"&gt;Let C&amp;nbsp; = 680pF&lt;/span&gt;&lt;span style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="text-align: justify;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;R&lt;sub&gt;b&lt;/sub&gt;&amp;nbsp;= 10kOhm&lt;br /&gt;
&lt;div&gt;Let R&lt;sub&gt;a&lt;/sub&gt; be made up of two resistors, fixed R&lt;sub&gt;a1&lt;/sub&gt; and variable V&lt;sub&gt;Ra&amp;nbsp;&lt;/sub&gt;so that&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; R&lt;span style="font-size: x-small;"&gt;a&lt;/span&gt;&amp;nbsp;=&amp;nbsp;R&lt;sub&gt;a1 &amp;nbsp;&lt;/sub&gt;+ V&lt;sub&gt;Ra&lt;/sub&gt;&lt;/div&gt;Let R&lt;sub&gt;a1&amp;nbsp;&lt;/sub&gt;= 4.7kOhm&lt;br /&gt;
&lt;span style="text-align: justify;"&gt;Then&amp;nbsp;&lt;/span&gt;V&lt;sub&gt;Ra&lt;/sub&gt;&amp;nbsp;=&amp;nbsp;16.47kOhm so that&amp;nbsp;R&lt;span style="font-size: x-small;"&gt;a&lt;/span&gt;&amp;nbsp;≈ 22kOhm&lt;br /&gt;
&lt;span style="text-align: justify;"&gt;Practically we use&amp;nbsp;&lt;/span&gt;V&lt;sub&gt;Ra&lt;/sub&gt;&lt;span style="text-align: justify;"&gt;&amp;nbsp;=&amp;nbsp;20KOhm&amp;nbsp;variable resistor and tune it&lt;/span&gt;&lt;br /&gt;
&lt;span style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="text-align: justify;"&gt;&lt;i&gt;Note &lt;/i&gt;: In our case, the closest capacitor to 680pF&amp;nbsp;available in the market was 560pF. We replaced the same in the circuit and it worked with tuning of&amp;nbsp;&lt;/span&gt;V&lt;sub&gt;Ra&lt;/sub&gt; &lt;br /&gt;
&lt;h3&gt;&lt;br /&gt;
&lt;b&gt;Receiver&lt;/b&gt;&lt;/h3&gt;&lt;ul&gt;&lt;span style="text-align: justify;"&gt;
&lt;li&gt;When there is an obstacle the ultrasonic sound is received by ultrasonic receiver transducer. It converts it to electrical variations of the same frequency&lt;/li&gt;
&lt;li&gt;Ultrasonic receiver also uses a two-stage amplifier, a rectifier and an operational amplifier in non-inverting mode. Output of op-amp is connected to a buzzer&lt;/li&gt;
&lt;li&gt;These signals are amplified. The amplified signals are then rectified and filtered&lt;/li&gt;
&lt;li&gt;The filtered DC voltage is given to non inverting pin of high frequency op-amp CA3140. The inverting pin of op-amp is connected to a variable resistor&lt;/li&gt;
&lt;li&gt;The 9v ouput voltage of comparator is made microcontroller compatible by using a 7805 voltage regulator&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;&lt;span style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;&lt;span style="text-align: justify;"&gt;&lt;b&gt;Circuit Diagram&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;span style="text-align: justify;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span style="text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&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://1.bp.blogspot.com/-LN3Ql7z13xs/T1NSRDx6YWI/AAAAAAAAAA4/t1Urfw471ho/s1600/ckt.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="330px" src="http://1.bp.blogspot.com/-LN3Ql7z13xs/T1NSRDx6YWI/AAAAAAAAAA4/t1Urfw471ho/s640/ckt.png" width="650px" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Ultrasonic Transmitter and Receiver Circuit&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4177382735265460385-7499993767160611399?l=electronicprojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/7499993767160611399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/ultrasonic-transmitter-and-receiver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/7499993767160611399?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/7499993767160611399?v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/ultrasonic-transmitter-and-receiver.html' title='Ultrasonic Transmitter and Receiver'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-LN3Ql7z13xs/T1NSRDx6YWI/AAAAAAAAAA4/t1Urfw471ho/s72-c/ckt.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkMAQno9eip7ImA9WhVSGUo.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385.post-3263322737545737136</id><published>2012-03-04T02:15:00.011-08:00</published><updated>2012-03-17T00:47:23.462-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-03-17T00:47:23.462-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Infrared'/><category scheme='http://www.blogger.com/atom/ns#' term='projects'/><category scheme='http://www.blogger.com/atom/ns#' term='8051'/><category scheme='http://www.blogger.com/atom/ns#' term='LCD'/><category scheme='http://www.blogger.com/atom/ns#' term='GSM'/><title>People Counting Machine through GSM</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
The main objective of this project is to design a system which counts the number of people present inside a premises with the count being sent automatically as an SMS upon dialing the phone number.&lt;br /&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://i.ytimg.com/vi/c-l1-c4hXZg/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/c-l1-c4hXZg?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" /&gt;
&lt;param name="bgcolor" value="#FFFFFF" /&gt;
&lt;embed width="320" height="266"  src="http://www.youtube.com/v/c-l1-c4hXZg?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;
It consists of 3 modules&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Infrared Transmitter and Receiver&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;There are two of them say IR1 and IR2. Breaking the beam of IR1 first and then IR2 will increment the count by 1 where as breaking the beam IR2 and then IR1 will decrement the count. The output of IR1 and IR2 are connected to microntroller interrupts INT0 and INT1 respectively.&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Microncontroller with LCD&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;The microcontroller used here is 89c51. INT0 and INT1 of the micronctroller is connected to output of IR1 and IR2 respectively. It is connected to a GSM module via a serial port. And the microncontroller is also connected to a LCD which displays the total count at any given point of time. The microntroller increments or decrements the count based on weather INT0 interrupt occurs first and then INT1 or vice versa and continuously displays on the LCD. Micronctroller will also receive a serial interrupt when there is an incoming call in whch time it will read the phone number, disconnect and send the total count as a SMS&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. GSM Module&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;The microcontroller sends AT commands to GSM module to read the phone number, disconnect and send an SMS to the calling number. Below are the AT commands used.&lt;br /&gt;
&lt;br /&gt;
1. Disconnect a call&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ATH &amp;nbsp;and Enter&lt;br /&gt;
&lt;br /&gt;
2. Read the phone number of an incoming call &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Set the below AT command only once&lt;/li&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;AT+CLIP=1 and Enter
&lt;li&gt;When there is a incoming call, the data from GSM will be similar to below for default settings&lt;/li&gt;
&lt;ul&gt;&lt;/ul&gt;
RING&lt;/ul&gt;
&lt;ul&gt;+CLIP: "+919449XXXXXX",145,"","",0&lt;/ul&gt;
&lt;ul&gt;RING&lt;/ul&gt;
&lt;ul&gt;+CLIP........&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Read the phone number above into an array and send the SMS&lt;/li&gt;
&lt;/ul&gt;
3. Send an SMS &lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;AT+CMGF=1 and Enter&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;AT+CMGS="+919449XXXXXX" and Enter&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;"Hello World" and CTRL+Z&lt;br /&gt;
&lt;br /&gt;
During programming CTRL+Z requires to be sent as 0x1A Ascii character while the escape character for Enter is '\r'. For better understanding on sending a SMS and C code, refer to this &lt;a href="http://electronicprojs.blogspot.in/2012/03/sending-sms-using-at-commands.html"&gt;link&lt;/a&gt;&lt;br /&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;br /&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/4177382735265460385-3263322737545737136?l=electronicprojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/3263322737545737136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/people-counting-machine-through-gsm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/3263322737545737136?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/3263322737545737136?v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/2012/03/people-counting-machine-through-gsm.html' title='People Counting Machine through GSM'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0IAQnwzeCp7ImA9WhVSEUo.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385.post-6403765714815969696</id><published>2012-02-25T07:29:00.002-08:00</published><updated>2012-03-07T20:05:43.280-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-03-07T20:05:43.280-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Infrared'/><category scheme='http://www.blogger.com/atom/ns#' term='projects'/><category scheme='http://www.blogger.com/atom/ns#' term='8051'/><category scheme='http://www.blogger.com/atom/ns#' term='GSM'/><title>Burglar Alert through SMS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: inherit;"&gt;The main purpose of this project is to design a system that would automatically send SMS to a predefined number up on the Infrared beam is broken between transmitter &lt;/span&gt;&lt;span style="font-family: inherit;"&gt;and receiver.&lt;/span&gt;&lt;br /&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://i.ytimg.com/vi/NCj3a046VK4/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/NCj3a046VK4?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" /&gt; &lt;param name="bgcolor" value="#FFFFFF" /&gt; &lt;embed width="320" height="266"  src="http://www.youtube.com/v/NCj3a046VK4?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
It consists of 3 modules&lt;br /&gt;
&lt;br /&gt;
1. Infrared transmitter and receiver&lt;br /&gt;
2. Microncontroller&lt;br /&gt;
3. GSM Modem&lt;br /&gt;
&lt;br /&gt;
It consists of a 38Khz infrared transmitter while the receiver is TSOP1738. The transmitter has burst cycles between 10 and 70 cycles as prescribed by TSOP1738 datasheet. The 8051 microntroller is programmed to receive a high to low edge triggered interrupt when the beam between transmitter and receiver is broken. The interrupt routine will send a SMS to a predefined number.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4177382735265460385-6403765714815969696?l=electronicprojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/6403765714815969696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojs.blogspot.com/2012/02/burglar-alert-through-sms.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/6403765714815969696?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/6403765714815969696?v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/2012/02/burglar-alert-through-sms.html' title='Burglar Alert through SMS'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry gd:etag='W/&quot;CUMFQHc-eSp7ImA9WhVSFE0.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385.post-5338611878131694663</id><published>2012-02-24T21:14:00.007-08:00</published><updated>2012-03-10T10:16:51.951-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-03-10T10:16:51.951-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='projects'/><category scheme='http://www.blogger.com/atom/ns#' term='LDR'/><category scheme='http://www.blogger.com/atom/ns#' term='8051'/><title>Light Following Robot</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
The main purpose of this project is to design a robot which would follow the path of higher luminescence across all directions.It is based on the principle that resistance of a LDR changes with the amount of light falling on it.&lt;br /&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://i.ytimg.com/vi/3cIVc6W3pGQ/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/3cIVc6W3pGQ?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" /&gt;













&lt;param name="bgcolor" value="#FFFFFF" /&gt;













&lt;embed width="320" height="266"  src="http://www.youtube.com/v/3cIVc6W3pGQ?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;
It consists of 3 modules&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;










&lt;b&gt;Sensor Circuit&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
It consists of 4 LDRs' arranged at each side of the robot (front, back, left, right). The resistance of an LDR will decrease with the increase in the luminescence. This variation is fed to a comparator with a reference voltage set. We use LM324 IC which&amp;nbsp;conveniently&amp;nbsp;has 4 comparators on a single chip. In our case we found that each LDR was having different response the same&amp;nbsp;luminescence. For example, for the same indoor daylight the LDR resistances were respectively 6k, 8k, 9k, 10k. To offset this variation, we are using seperate pot for reference voltage for each LDR. You can use a single pot and use the same reference voltage for all 4 LDR's if you find that LDR's are having the same response (i.e shorting pins 3,5,10,12 in LM324).&amp;nbsp;The 4 outputs of comparator is fed to a port of Microcontroller 8051 via port P0.&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/-6E7FruIdlD4/T1uSDKIdhMI/AAAAAAAAACo/HQHw7te2oWg/s1600/3.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="482" src="http://3.bp.blogspot.com/-6E7FruIdlD4/T1uSDKIdhMI/AAAAAAAAACo/HQHw7te2oWg/s640/3.JPG" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Sensor Circuit&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;h3&gt;




&lt;b&gt;Microcontroller&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
The microntroller used here is 89c51. The microcontroller gets the sensor inputs via port P0. The micrcontroller will drive the robot only when one of the LDR's resistance&amp;nbsp;(i.e one of front, back, left, right)&amp;nbsp;is below the threshold and consequently the output of the comparator is logic HIGH. The microcontroller will send the signal for the robot to drive in specific direction via port P1. One thing to note is that the robot can move either forward or backward. In case it moves forward and then right, the robot turns right looking into forward direction. Similarly, if the robot moves in the opposite direction i.e reverse and then right, the robot needs to move right looking into reverse direction (or left looking into forward direction).&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;h3&gt;








&lt;b&gt;DC motors with H-Bridge&lt;/b&gt;&lt;/h3&gt;
The DC motor driver or H-bridge IC used here is L293D. The H-bridge converts the logic voltage 5v into DC motor specific 9v and also takes care of back emf when the DC motor direction reverses. The microcontroller send the signals to H-bridge via P1 based on which the robot moves in the specific direction (or stops). The DC motors used here is 150RPM, considering that there is not much load, higher RPM motors can be used to get higher speed.&lt;br /&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/-R40qC0asVFU/T1uaYSJTU3I/AAAAAAAAACw/K7UgTAE90L0/s1600/ckt2.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="268" src="http://3.bp.blogspot.com/-R40qC0asVFU/T1uaYSJTU3I/AAAAAAAAACw/K7UgTAE90L0/s640/ckt2.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Microcontroller H-Bridge circuit&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&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/4177382735265460385-5338611878131694663?l=electronicprojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/5338611878131694663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojs.blogspot.com/2012/02/light-following-robot.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/5338611878131694663?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/5338611878131694663?v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/2012/02/light-following-robot.html' title='Light Following Robot'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-6E7FruIdlD4/T1uSDKIdhMI/AAAAAAAAACo/HQHw7te2oWg/s72-c/3.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry gd:etag='W/&quot;A0MNRn4_eip7ImA9WhVSEUo.&quot;'><id>tag:blogger.com,1999:blog-4177382735265460385.post-5919084935715966364</id><published>2012-02-24T20:16:00.010-08:00</published><updated>2012-03-07T20:04:57.042-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-03-07T20:04:57.042-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Infrared'/><category scheme='http://www.blogger.com/atom/ns#' term='projects'/><category scheme='http://www.blogger.com/atom/ns#' term='8051'/><category scheme='http://www.blogger.com/atom/ns#' term='ultrasonic'/><title>Path Following Robot with Obstacle Detection</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;span style="font-family: inherit;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: inherit;"&gt;&lt;span style="line-height: 150%; text-align: justify; text-indent: 0.5in;"&gt;The main aim of this project is to design a robot that can follow a black path without collisions. &lt;/span&gt;The black path below the car can be determined using the principle that black color absorbs all radiations and t&lt;span style="line-height: 150%; text-align: justify; text-indent: 0.5in;"&gt;he presence of an obstacle is detected using ultrasonic waves.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-family: inherit;"&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://i.ytimg.com/vi/4YWRas-m44Y/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/4YWRas-m44Y?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/4YWRas-m44Y?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/span&gt;&lt;span style="line-height: 150%; text-align: justify; text-indent: 0.5in;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%; text-align: left;"&gt;&lt;br /&gt;
&lt;span style="font-family: inherit; font-size: small;"&gt;The project comprises of four main blocks&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: left;"&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;span style="font-family: inherit;"&gt;Ultrasonic Transmitter and Receiver&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: inherit;"&gt;Microcontroller&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: inherit;"&gt;DC motors with H- Bridge&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: inherit;"&gt;Infrared Transmitter and Receiver&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family: inherit;"&gt;In order to drive the robot, DC motors are used. These DC motors are controlled by the micro-controller- Atmel 89c51.The microcontroller used here is an 8-bit, single supply +5volts operated, HMOS technology, 40 pin IC. To drive the motors we use an H-bridge-L293d which boosts the microcontroller voltage to 12 volts required to drive the DC motors.IR transmitter and receiver is used to track the black path under the car. Comparator IC LM324 is used to interface these sensors to microcontroller.The presence of obstacle in the path is detected by the ultrasonic transmitter and receiver module. If an obstacle is detected in the direction of motion of the car, the microcontroller is signaled accordingly.The microcontroller via the port P1&amp;nbsp;reads the status of the IR sensors and the obstacle detection system and a decision is made whether to proceed in the same direction or take a left turn or right turn.On reaching the end of the path,the car would rotate until it encounters the black path and continues to follow the line.&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/4177382735265460385-5919084935715966364?l=electronicprojs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://electronicprojs.blogspot.com/feeds/5919084935715966364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://electronicprojs.blogspot.com/2012/02/engineering-projects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/5919084935715966364?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4177382735265460385/posts/default/5919084935715966364?v=2'/><link rel='alternate' type='text/html' href='http://electronicprojs.blogspot.com/2012/02/engineering-projects.html' title='Path Following Robot with Obstacle Detection'/><author><name>EnggProj</name><uri>http://www.blogger.com/profile/08846985287476077863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>