control RC car using GPS system
cheras
Posts: 11
hi all,
I am new in this forum.i am doing a final year project in which i have to implement GPS navigation system.My task is to control the RC car using GPS receiver signal(Informations) from satellites.i have all the materials from parallax.such as:BS2 Boe-bot,RC car, GPS recever,parrallel LCD 2x16 modue.i know there are many experienced persons in this forum as well as parallax knowledgeable engineers. Now my question is, how to start with all those things?i have read all related post in this forum but confused a bit.Anyone wants to share anything on this?
Any guidance will be appreciated.
Regards;
cheras.
I am new in this forum.i am doing a final year project in which i have to implement GPS navigation system.My task is to control the RC car using GPS receiver signal(Informations) from satellites.i have all the materials from parallax.such as:BS2 Boe-bot,RC car, GPS recever,parrallel LCD 2x16 modue.i know there are many experienced persons in this forum as well as parallax knowledgeable engineers. Now my question is, how to start with all those things?i have read all related post in this forum but confused a bit.Anyone wants to share anything on this?
Any guidance will be appreciated.
Regards;
cheras.
Comments
As odd as it sounds, its unlikely you'll be able to just jump in and get everything hooked up and programmed on the first pass. Even with all the help here on the forums you will have to approach the problems on a step by step basis. Each component you mentioned has a learning curve associated with it; and each combination will have challenges.
So, the first step is to get used to the Stamp by itself. The "What's a Microcontroller" download has numerous experiments to get you going.
Then, learn a bit about getting the GPS to communicate with the Stamp. There are several sample programs on the forums or with the GPS module you're using. During this phase, determine if the typical GPS resolution of a few meters will work for your project. Also, does your project have to run indoors? Without a clear satellite view, the system is blind.
Connect the LCD to the Stamp and get the GPS data to print on the LCD.
To do navigation, you'll need to get the Stamp to do calculations.
Finally, the issue of motor control will have you learning about transistors, relays, H-bridges and PWM.
This will be a great learning experience. It may make sense to do it as a team in the beginning. That way, the class can make some fast progress in the beginning by sharing resources and knowledge gained.
At that point you'll be able to ask specific questions on the forums and get some pretty specific answers.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Thanks all there.
cheras
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sadaao Fujiwara-san
Never offend people with style when you can offend them with substance
Sam Brown··············
·
It lets you use 4-bit mode which will save a few pins for the future. The parallel interface is not as nice as the serial LCD (IMHO, anyway), but its not too bad once you get onto sending characters one at a time as a lownib and a highnib. You should be able to use parts of the sample programs with only minor changes.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
thank you Mr.Tom.
Cheras.
Note that you will have to trade off the length of the captured data with the number of variables needed elsewhere in your program. Sometimes you will have to gather the GPS data in two or more SERIN commands, using the SKIP directive to skip over the data already grabbed. See the help file under SERIN.
Once the data is gathered, take the contents of the array and send it off to the LCD, as shown in the LCD sample program. Typically this will be a loop that chugs through the array and gets each character in turn. If you have to have more than one SERIN to get all the GPS data, this print process will have to be repeated after each SERIN.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
·
http://www.gpsinformation.org/dale/nmea.htm
·
Program a route on the marine GPS. Capture the Auto Pilot B APB sentence and Recommended Minimum Data RMC sentence using the stamp SERIN. The APB sentence will steer a boat equipped with auto pilot as told by a GPS route.
·
$GPAPB,A,A,0.10,R,N,V,V,011,M,DEST,011,M,011,M*82
·
where:
··· APB···· Autopilot format B
··· A······ Loran-C blink/SNR warning, general warning
··· A······ Loran-C cycle warning
··· 0.10··· cross-track error distance
··· R······ steer Right to correct (or L for Left)
··· N······ cross-track error units - nautical miles (K for kilometers)
··· V······ arrival alarm - circle
··· V······ arrival alarm - perpendicular
··· 011,M·· magnetic bearing, origin to destination
··· DEST··· destination waypoint ID
··· 011,M·· magnetic bearing, present position to destination
··· 011,M·· magnetic heading to steer (bearings could True as 033,T)
·
$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A
·
Where:
···· RMC········· Recommended Minimum sentence C
···· 123519······ Fix taken at 12:35:19 UTC
···· A··········· Status A=active or V=Void.
···· 4807.038,N·· Latitude 48 deg 07.038' N
···· 01131.000,E· Longitude 11 deg 31.000' E
···· 022.4······· Speed over the ground in knots
···· 084.4······· Track angle in degrees True
···· 230394······ Date - 23rd of March 1994
···· 003.1,W····· Magnetic Variation
···· *6A········· The checksum data, always begins with *
I hope this helps.
·
SJW
i will try to proceed with your instructions until i face difficulties.
thanks
I have attached one demo which had been used for Garmin GPS receiver.Can i use this in my project?what are the things i need to changes to view data on LCD from GPS receiver?as i am new in programming so i am just blurred about how to write the program for my project?any idea?
Thanks all.
The program will give you a very good demonstration of reading a GPS and displaying it on an LCD. Typical of Jon William's work, it demonstrates some very good programming techniques as well.
There are a couple things to keep in mind:
1. The program is written for the BS2p series, as evidenced by the use of the SPSTR modifier for the incoming string.
2. Also, the program is set to use the Garmin proprietary sentence structure which is different from the standard output string defined by NMEA.
3. Everywhere you see SEROUT LCD......, you have to send the program to the new LCD routines you will write to use the parallel style LCD display. Depending on the time frame of your project, purchasing a serial display may be advised.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
what kind of serial LCD i have to buy?only can support from parallax as i am using all other materials from parallax?or any kind of serial LCD will work with this?
thanks lot.
regards;
cheras
If you look on the Parallax web site you'll see the 2 x 16 LCD in both parallal and serial forms.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Regard;
Cheras.