Showing posts with label embedded. Show all posts
Showing posts with label embedded. Show all posts

Global Positioning System (GPS)

hi friend,
since my final year project is about GPS-GSM based vehicle tracking and theft control.. i got a chance to learn about the GPS module working.. so i would like to share it with you all..


GLOBAL POSITIONING SYSTEM(GSP)


Our ancestors had to go to pretty extreme measures to keep from getting lost. They erected monumental landmarks, laboriously drafted detailed maps and learned to read the stars in the night sky.
But today a small device can guide us all through the world.. which is know as the GPS.. even the latest versions of mobile phones has inbuilt GPS module in it..

WHEN AND HOW GPS CAME:

The Global Positioning System (GPS) is actually a constellation of 27 Earth-orbiting satellites (24 in operation and three extras in case one fails). The U.S. military developed and implemented this satellite network as a military navigation system, but soon opened it up to everybody else.

A GPS receiver's job is to locate four or more of these satellites, figure out the distanc­e to each, and use this information to deduce its own location. This operation is based on a simple mathematical principle called trilateration


WORKING

2-D Trilateration

Imagine you are somewhere in the United States and you are TOTALLY lost -- for whatever reason, you have absolutely no clue where you are. You find a friendly local and ask, "Where am I?" He says, "You are 625 miles from Boise, Idaho."
This is a nice, hard fact, but it is not particularly useful by itself. You could be anywhere on a circle around Boise that has a radius of 625 miles, like this:



You ask somebody else where you are, and she says, "You are 690 miles from Minneapolis, Minnesota." Now you're getting somewhere. If you combine this information with the Boise information, you have two circles that intersect. You now know that you must be at one of these two intersection points, if you are 625 miles from Boise and 690 miles from Minneapolis.



If a third person tells you that you are 615 miles from Tucson, Arizona, you can eliminate one of the possibilities, because the third circle will only intersect with one of these points. You now know exactly where you are -- Denver, Colorado.



This same concept works in three-dimensional space, as well, but you're dealing with spheres instead of circles. In the next section, we'll look at this type of trilateration.



3-D Trilateration

Fundamentally, three-dimensional trilateration isn't much different from two-dimensional trilateration, but it's a little trickier to visualize. Imagine the radii from the previous examples going off in all directions. So instead of a series of circles, you get a series of spheres.
If you know you are 10 miles from satellite A in the sky, you could be anywhere on the surface of a huge, imaginary sphere with a 10-mile radius. If you also know you are 15 miles from satellite B, you can overlap the first sphere with another, larger sphere. The spheres intersect in a perfect circle. If you know the distance to a third satellite, you get a third sphere, which intersects with this circle at two points.
The Earth itself can act as a fourth sphere -- only one of the two possible points will actually be on the surface of the planet, so you can eliminate the one in space. Receivers generally look to four or more satellites, however, to improve accuracy and provide precise altitude information.
In order to make this simple calculation, then, the GPS receiver has to know two things:
  • The location of at least three satellites above you
  • The distance between you and each of those satellites
The GPS receiver figures both of these things out by analyzing high-frequency, low-power radio signals from the GPS satellites. Better units have multiple receivers, so they can pick up signals from several satellites simultaneously.
Radio waves are electromagnetic energy, which means they travel at the speed of light (about 186,000 miles per second, 300,000 km per second in a vacuum). The receiver can figure out how far the signal has traveled by timing how long it took the signal to arrive.

NOW LET WE SEE HOW THE GPS USE THIS TO CALCULATE OUR LOCATION

On the previous page, we saw that a GPS receiver calculates the distance to GPS satellites by timing a signal's journey from satellite to receiver. As it turns out, this is a fairly elaborate process.
At a particular time (let's say midnight), the satellite begins transmitting a long, digital pattern called a pseudo-random code. The receiver begins running the same digital pattern also exactly at midnight. When the satellite's signal reaches the receiver, its transmission of the pattern will lag a bit behind the receiver's playing of the pattern.
The length of the delay is equal to the signal's travel time. The receiver multiplies this time by the speed of light to determine how far the signal traveled. Assuming the signal traveled in a straight line, this is the distance from receiver to satellite.
In order to make this measurement, the receiver and satellite both need clocks that can be synchronized down to the nanosecond. To make a satellite positioning system using only synchronized clocks, you would need to have atomic clocks not only on all the satellites, but also in the receiver itself. But atomic clocks cost somewhere between $50,000 and $100,000, which makes them a just a bit too expensive for everyday consumer use.
The Global Positioning System has a clever, effective solution to this problem. Every satellite contains an expensive atomic clock, but the receiver itself uses an ordinary quartz clock, which it constantly resets. In a nutshell, the receiver looks at incoming signals from four or more satellites and gauges its own inaccuracy. In other words, there is only one value for the "current time" that the receiver can use. The correct time value will cause all of the signals that the receiver is receiving to align at a single point in space. That time value is the time value held by the atomic clocks in all of the satellites. So the receiver sets its clock to that time value, and it then has the same time value that all the atomic clocks in all of the satellites have. The GPS receiver gets atomic clock accuracy "for free."
When you measure the distance to four located satellites, you can draw four spheres that all intersect at one point. Three spheres will intersect even if your numbers are way off, but four spheres will not intersect at one point if you've measured incorrectly. Since the receiver makes all its distance measurements using its own built-in clock, the distances will all be proportionally incorrect.
The receiver can easily calculate the necessary adjustment that will cause the four spheres to intersect at one point. Based on this, it resets its clock to be in sync with the satellite's atomic clock. The receiver does this constantly whenever it's on, which means it is nearly as accurate as the expensive atomic clocks in the satellites.
In order for the distance information to be of any use, the receiver also has to know where the satellites actually are. This isn't particularly difficult because the satellites travel in very high and predictable orbits. The GPS receiver simply stores an almanac that tells it where every satellite should be at any given time. Things like the pull of the moon and the sun do change the satellites' orbits very slightly, but the Department of Defense constantly monitors their exact positions and transmits any adjustments to all GPS receivers as part of the satellites' signals.

Thus by these information and with above calculation, our device give us our location..

RAILWAY ACCIDENT CONTROL

hi,
i am happy to say that i and my friend saravana pandian won the first prize in the Mepco Schlenk Engineering College, Sivakasi...i would like to share that papers abstract with you all...

EMBEDDED BASED RAILWAY SAFETY SYSTEM
-life is priceless, life protection is cheap.
Right from the splendid starting of 2010 to July 19, 2010, Hundreds of precious lives have been taken from our mother INDIA, in thirteen train accidents. The Gyaneshwari Express train derailment and Sainthia train collision are the two major accidents this year, which killed 223 passengers….
Trying to be responsible citizens of this nation, here we propose a design to reduce these accidents.
“Few can foresee whither their road will lead them, till they come to its end.”
-J.R.R. Tolkien (English Writer)
The main drawback with locomotive system in use is, even if the pilot identifies any problem in the rails, he needs at least 500 meters to stop the train using emergency braking systems, which is practically impossible. So, we send our ROVER 500 meters ahead of the train to check for any obstacles or damages found in the track (rail) using sensors and intimate to the train as well as to the nearest station via Radio Frequency with the help of a microcontroller.

LCD INTERFACING


hi friends,
In Recent years,the LCD is finding widespread use replacing LEDs. everyone would like to have it in their project to attract the visitors. similarly we too had it in our project "Power On Coin", But we made a very small, tiny mistake while interfacing and we spend nearly a week to identify that problem. But, we learned many things about LCDs in that week, that's here
INTERFACING OF LCD
 All LCD will have minimum of 14 pins, some may have few more for back LED lights. knowledge of these 14 pins is enough to interface LCD. let we have a look at those 14 pins.

 









VSS:ground pin     VDD:+5v supply pin

VEE:contrast pin, by adjusting the supply to this pin we can get clarity in the display.
 NOTE: never give full 5V supply, vary it with a variable resistor(pot:10k)
RS: this register will say the LCD whether the information is command or data.
we would like to control the cursor in the display like clearing, moving the cursor in the display, entry mode, etc. this could be done through passing command by Rs=0->we can inform the LCD the information is command. respectively command words and codes are shown.
while we are passing data we should have Rs=1.
R/W:we are suppose to inform the LCD, whether the information is to be read or written on the LCD. this pin will do that work.
R/W=1->read mode
R/w=0->write mode
ENABLE PIN:very important pin of all, only when pass high to low signal to this pin, the command/data will be latched into LCD. But should have at least 450ns gap between setting and clearing this pin. because the micro controller may be working at MHz but our LCD will be working at KHz . so, we need to apply some delay else the date will not be proper.
E line is negative edge triggered- to write
E line is positive edge triggered- to read

D7-D0:information should be sent/received only through pin only this is data pin. ASCII key values of the corresponding character or command should be alone sent/received through this pin.
these are those 14 pins.
WORKING:
  • First we should configure the LCD,so we need to pass the command code. Don't send all, send only which are required.
Load D7-D0 with command code
Rs=0; to inform it is command
R/W=0; we are going to write it
E=1; to set E high
delay: to match the speed [450 ns]
E=0; low to latch the data
  • Then we can pass the information 
Load D7-D0 with data
Rs=0; to inform it is word
R/W=0/1; depends on us, whether we would like to read or write
E=1; to set E high-write/low-read
delay: to match the speed [450 ns]
E=0; low to latch the data/high to read

BUSY FLAG:
we are using delay, because the LCD need time to do some internal operation. but we cannot import exact delay, so it may slow down the process. so by using Busy flag we can over come this problem.
here, we use Rs=0 to check the busy flag bit to see if the LCD is ready to receive information. Thus busy flag is D7 and can be read when R/W=1 and Rs=0, as follows: if R/W=1, Rs=0. when D7 =1, the LCD is busy taking case of internal operations and will not accept any new information. when D7=0, the LCD is ready to receive new information.
It is better to use busy flag, rather than imparting delay everywhere use of Busy flag will make the program to run faster.
NOTE: one important thing here is, we need to send low to high signal to enable pin. since we are reading.
PROGRAM:
  • sending commands and data to LCDs with a time delay
;calls a time delay before sending next data/command
;p1.0-p1.7 are connected to LCD data pin D0-D7
;p2.0 is connected to Rs pin of LCd
;p2.1 is connected to R/W pin of LCD
;p2.2 is connected to E pin of LCD
    org 0000H
    mov a,#38H    ;init. LCD 2 lines, 5X7 matrix
    acall comwrt    ;call command subroutine
    acall delay    ;give LCD some time
    mov a,#0EH    ;display on,cursor on
    acall comnwrt    ;call command subroutine
    acall delay    ;give LCD some time
    mov a,#01    ;clear LCD
    acall comnwrt    ;call command subroutine
    acall delay     ;give LCD some time
    mov a,#06H    ;shift cursor right
    acall cmnwrt    ;call command subroutine
    acall delay    ;give LCD some time
    mov a,#'h'    ;display letter h
    acall datawrt    ;call display subroutine
    acall delay     ;give LCD sometime
    mov a,#'i'    ;display letter i
    acall datawrt     ;call display subroutine
again:    sjmp again    ;stay here

comnwrt:        ;send command to LCD
           mov p1,a    ;copy reg a to port1
           clr p2.0    ;Rs=0 for command
           clr p2.1    ;R/W=0 for write
          setb p2.2    ;E=1 for high pulse
          acall delay    ;give LCD some time
         clr p2.2    ;give LCD some time
         RET        ;return
   
datawrt:        ;write data to LCD
           mov p1,a    ;copy reg a to port1
           setb p2.0    ;Rs=1 for data
           clr p2.1    ;R/W=0 for write
           setb p2.2    ;E=1 for high pulse
           acall delay    ;give LCD some time
           clr p2.2    ;E=0 for high to low pulse
            ret        ;return

delay:    mov r3,#50    ;50 or higher for fast CPUs
here2:   mov r4,#255    ;r4=255
here:     Djnz r4,here    ;stay until r4 becomes 0
            Djnz r3,here2    ;stay until r3 becomes 0
            return        ;return
             end

  • sending commands and data to LCDs using busy flag  
 ;check busy flag before sending data,command to LCD
;p1=data pin, p2.0=Rs,p2.1=R/W,p2.2=E pins
    mov a,#38H    ;init LCD 2 lines,5x7 matrix
    acall command     ;issue command
    mov a,#0EH    ;LCd on, cursor on
    acall command    ;issue command
    mov a,#01H    ;clear LCD command
    acall command    ;issue command
    mov a,#06H    ;shift cursor right
    acall command    ;issue command
    mov a,#86H    ;cursor: line 1,pos 6
    acall command    ;issue command
    mov a,#'h'    ;display letter h
    acall data_dispaly     ;issue data
    mov a,#'i'    ;diaplay letter i
    acall data_display    ;issue data
here:    sjmp here    ;stay here

command:
    acall ready     ;is LCD ready?
    mov p1,a    ;issue command code
    clr p2.0    ;Rs=0 for command
    clr p2.1    ;R/W=0 for write
    setb p2.2    ;E=1 for high pulse
    clr p2.2    ;give LCD some time
    RET        ;return

data_display:
    acall ready    ;is LCD ready?
    mov p1,a    ;copy reg a to port1
    setb p2.0    ;Rs=1 for data
    clr p2.1    ;R/W=0 for write
    setb p2.2    ;E=1 for high pulse
    clr p2.2    ;E=0 for high to low pulse
    ret        ;return  

ready:
    setb p1.7    ;make p1.7 input port
    clr p2.0    ;Rs=0 access command reg
    setb p2.1    ;R/w=1 read command reg
;read command reg and check busy flag
back:    clr p2.2    ;E=0 for low to high pulse
    setb p2.2    ;E=1 low to high pulse
    jb p1.7,back    ;stay until busy flag=0
    ret        ;return
  
    end

i said that we made a very small mistake and we were spending a week in it. the mistake is that,we gave +5V
to VEE pin, we need to vary it as we vary contrast in TV. But, we thought we made mistake in the program and we were checking the program for 5 days
so, always view the problem in various angle, that will give solution quickly...

ACCIDENT CONTROL FOR AUTOMOBILE

Friends,
here is my second paper with my friennd Rajesh khanna... EMBEDDED BASED AUTO MOBILE COLLISION PREVENTION... this paper is entirely different from my last paper... expect the title everything is on our own... it is completely our paper... we took nearly a weak to complete this paper... while working on this paper we learnt many recent concepts like range finder, how to select controller, braking systems, ABS, etc... it was very enjoyable and interesting to us...
And this paper got selected in ANNA UNIVERSITY, COIMBATORE and KARUNYA UNIVERSITY..
More important is that we won second prize for this in ANNA UNIVERSITY,coimbatore...
here is that interesting paper for you


EMBEDDED BASED AUTO MOBILE COLLISION PREVENTION 

Most of the automobile accidents could be avoided if the brake had been applied at proper time and at proper distance. In this paper we are using embedded system which could be embedded in the automobile to remove the driver’s reaction time from the situation. The system, consisting of controllers, which analyzes possible accident situations based on the vehicle separation distance, their relative velocity and a static friction coefficient that represents the road conditions. The controller determines the sufficient brake pressure required to prevent collisions while providing a smooth ride for the vehicle’s passengers. 

Our work is to design controller to automate and optimize the application of brake pressure to an automobile’s brakes at proper time. So first requirement implies that the two vehicles should never have any physical contact, while the second one implies that the brakes should be used only in the amount necessary, e.g., they should not undergo large excursions to make small adjustments.

In general, if the automobile in front decelerate, then the vehicle behind it must decelerate to avoid the collision.  Here, the controller tracks the vehicle and have its velocity as reference and applies the appropriate brake pressure at the proper time. So, the controller automatically decelerates to match the velocity of the tracked vehicle and avoid a collision. 

IMPORTANT PARAMETER
The parameters that we took to avoid collision are
  •  separation between the two vehicles
  • velocity with which they approach each other
  • surface conditions
  For calculating these three parameter, Laser range finders could provide the first two measurements, while wheel-slip sensors currently used for automobile Traction Control Systems or Anti-lock Breaking systems (ABS) could estimate could estimate the third measurement.  

MODULES
we have three modules, they are
  •       distance finder
  •       intelligent control module
  •       braking system 
working
here,the distance finder finds the distance between the vehicles and reports to the controller.The controller processes data and  calculates the percentage of braking. this braking is coupled with actual braking of the ABS unit..









SEISMIC SENSOR

Hi,
This is the second project i did along with my friend saravana.But first to present.Since we had one more weak for the project show. We tried this and we presented it.It is very simple, cheaper and attractive one with wide range of application. we displayed it on the breadboard,because we are not good at soldering and the most beautiful thing in this project is that we got third prize in the intra college competition..
here is that for you....

SEISMIC SENSOR

Our project is to detect the entry of human beings or animals in the restricted areas in banks, museums, hospitals, power plants, etc.   
Here, we make use of piezo element to vibration due to the entry of human beings or animals. This piezo will sense the entry of unwanted person or animals and trigger the JFET op-amp and this op-amp will in turn trigger the Timer IC which output is given to the LED and buzzer. So LED glow with the sound to intimate the entry of unwanted persons or animals in the restricted areas.

FIRE ALARM

Hi friends,
This is our first mini project,worked out by myself and my friends saravana pandian , Rajesh.,FIRE ALARM.It is a very simple circuit. This project taught us the most important thing in life that there is a huge gap between the theory we learn and what happens in practical life.we faced so many difficulties to make this circuit work which helped us to learn more,and this gave us the interest to go more practically.But we didn't present it because we had one more weak to go. so, we tried seismic sensor and we presented it.
Here is our first work....

FIRE ALARAM



Fire accidents can be prevented if timely alarms are available. The circuit presented here warns the user against such fire accidents. The circuit should be placed in fire-prone areas such as a kitchen. Everyone is aware that when anything catches fire, smoke is produced. When this smoke passes between a bulb and an LDR, the amount of light falling on the LDR decreases. This causes the resistance of LDR to increase and the voltage at pin 2 of IC 555 goes below 1/3 Vcc, thus triggering IC 555 which is used here in bistable mode. As a result the voltage of pin 3 goes high. This high voltage (approximately +9V) completes the supply to the COB (chip-on-board). The signal generated by COB is amplified by an audio amplifier. In this circuit, the audio power amplifier is wired around IC TDA 2002. The sensitivity of the circuit depends on the distance between bulb and LDR as well as setting of preset VR1. Thus by placing the bulb and the LDR at appropriate distances, one may vary preset VR1 to get optimum sensitivity. Reset switch S1 is provided in the circuit to switch off the alarm after the fire has been noticed by the user.

BLUE EYES TECHNOLOGY

This is my first paper.. with my friend saravana pandian.. We just want to learn and do something.. Fortunately we got this topic and we took seminar on this topic in VELAMMAL COLLEGE OF ENGINEERING AND TECHNOLOGY,madurai.. I'm saying it as seminar because we understood the concept and we explained it there,we didn't add anything new to it..
Everyone there were interested to listen this because it goes like a HOLLYWOOD scene....
HERE IS THAT SCENE FOR YOU... GO AHEAD...


BLUE EYES TECHNOLOGY
Can we make computers "see" and "feel"?
Is it possible to create a computer which can interact with us as we interact with each other? For example imagine in a fine morning you walk on to your computer room and switch on your computer, and then it tells you “hey friend, good morning you seem to be a bad mood today. And then it opens your mail box and plays your favorable songs and tries to cheer you. It seems to be a fiction, but it will be the life in the near future. We all have some perceptual abilities. That is we can understand each other’s feelings. For example we can understand ones emotional state by analyzing his facial expression. If we add these perceptual abilities of human to computers would enable computers to work together with human beings as intimate partners. The “BLUE EYES” technology aims at creating computational machines that have perceptual and sensory ability like those of human beings.
This is achieved using the facial recognition, eye gaze pointing, speech recognition and other sensors
Principle behind the blue eyes
In order to create such a smart computer, the computer must understand user’s emotions and interest without giving any manual information from the user describing his emotional state or interested.
1. To achieve this we use the facial recognition and other physiological measure to detect the user’s emotional state.
2. To detect the user’s interest and to make the users pointing work easier, we go for MAGIC eye pointing technique.
3. To give the ability for the smart computer to understand the user’s language and perform operation as per his speech, we add speech recognition alone with emotion and magic technique.
Application
Ø Generic control rooms(system can be applied in every working environment requiring permanent operator’s attention)
o power station
o Captain Bridge
o Flight control centers
o Operating theatres-anesthesiologists
Ø The Simple User Interest Tracker (SUITOR)
Ø Blue Eyes can be applied in the automobile industry
Ø Video games
Future application of blue eye technology is limitless.
This ensures a convenient way of simplifying life by providing more interactive and user friendly facilities in computing device. In near futures, ordinary house hold device-such as television, refrigerators and ovens may be able to do their jobs when we look at them and speak to them.

Home

About Me

My photo
Hi everyone,myself Alagappan...electronic and communication engg. student... living in madurai... interested in everything... want to achieve something great in my lifetime...

Followers


Recent Comments