Hi frenzzz... Its been a longtime since i made a little stuff for you all... In this tutorial, i have tried to brief a famous positioning systems being implied in almost every projects.... Even i had very hardship mastering this technologies which i want to make easy for all newbies and project-seekers...
Here i am providing with ways of connecting, testing and programming Global positioning system(GPS) using Arduino... Further, i have worked out projects including each of this technologies...
Lets spark into..... without any further delay.....!!!
Step 1: Lets Know Something About GPS
Before getting into the actual instructable down here, i want you all to first know what this stuffs are and how they actually work... Knowing them in detail worths more than just working with code and other connection from google... Lets know something....
GPS, Global Positioning System, is a system for determining location using satellites and some really complex math and general relativity.But regardless of how it works, it is really cool, and pretty inexpensive considering what it is doing. I found above video very helpful..,
Ok, now moving on to the next step...
Step 2: Ground Works
Step 3: Ways of Hooking Up GPS With Arduino
As many know Arduino come with different varieties of sheilds making it easy for enthusiast to work on lot of platforms without any much trouble.... there is a standard GPS sheild available as i have mentioned... connecting this sheild with arduino is pretty simple and easy.. just connecting it directly above the Arduino boards which i recommend for new users..
Another ways of using this system is done usually by the most of advanced 1s are using a breakout board such as GPS breakout with the arduino... i also have attached the circuit detailing the GPS connection without any sheilds..
here is how its connected,
- 5v to Arduino 5v supply
- GND to Arduino GND
- Tx of breakout to PIN 2 of Arduino
- Rx of breakout to PIN 3 of Arduino
Its kinda very simple in both ways of hooking this up guyss..... ok lets move on to testing phase
Step 4: Testing Your GPS Sheild
After you buy the GPS kit, it’s a good idea to make sure that it’s working and that you can receive GPS signals. GPS receivers require a line of sight to the sky, but their signals can pass through windows. It’s usually best to perform this test outdoors, but it might work just fine through an unobstructed window or skylight. To test reception, you’ll set up the shield and run a basic sketch that displays the raw received data.
To perform the test,
1. First connect your GPS receiver via the cable to the shield(mentioned in previous step) , and then attach this assembly to your Arduino.
2. Notice the small switch on the GPS shield.
3. When it’s time to upload and run sketch on your GPS shield, move the switch to the DLINE position. Code for testing is attached below,
4. Then change it to UART and be sure to turn on the power switch for the receiver.
5. Once you’ve uploaded the sketch, move the data switch back to UART. Now check the LED on the GPS receiver that tells us its status. If the LED is lit, the GPS is trying to lock onto the satellite signals. After about 30 seconds the LED should start blinking, which indicates that it is receiving data from the satellite. After the LED starts blinking, open the Serial Monitor window in the IDE and set the data speed to 4,800 baud. You should see a constant stream of data similar to the output shown.
The data is sent from the GPS receiver to the Arduino one character at a time, and then it is sent to the Serial monitor. But this isn’t very useful as is, so we need to use a new library that extracts information from this raw data and converts it to a usable form. To do this,TinyGPS library detailed in next step is being used widely .
Step 5: Project # Arduino Based GPS Receiver
Now let’s create a simple GPS receive use you’ll usually use your GPS outdoors— and to make things a little easier, we’ll add an LCD module to display the data. To display the current position coordinates received by the GPS on the LCD, we’ll create a very basic portable GPS that could be powered by a 9 V battery and connector. Connecting GPS is very similar to that of the test circuit, to wire your LCD screen to your Arduino, connect the following pins:
LCD RS pin to digital pin 4
LCD Enable pin to digital pin 5
LCD D4 pin to digital pin 6
LCD D5 pin to digital pin 7
LCD D6 pin to digital pin 8
LCD D7 pin to digital pin 9
You can also use an an sheild to simplify the task, to learn more about LCD here in arduino website - http://arduino.cc/en/Tutorial/LiquidCrystal...
Here is the code attached to receive the latitude and longitude plots of your position. After the sketch has been uploaded and the GPS starts receiving data, your current position in decimal latitude and longitude should be displayed on your LCD.
Step 6: Warp It Up and Locate Your Position
But where on Earth is this? We can determine exactly where it is by using google maps. On the website, enter the latitude and longitude, separated by a comma and a space, into the search field, and Google Maps will return the location.
As you can see, something that you might have thought too complex, such as working with GPS receivers, can be made pretty simply with your Arduino. Even everything is pretty simple and cool guys.. Next instructable will be on GSM mobile system and its interface with Arduino....
Enjoy and have fun... more to come stay tuned.....
& Don forget to visit our blog - http://electronicsmadesimplee.blogspot.in/
& Our facebook page - https://www.facebook.com/ELECTRONICS.MADE.SIMPLE