CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

gps logger .... which type of memeory should be used..
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








gps logger .... which type of memeory should be used..
PostPosted: Sat Jun 10, 2006 1:34 am     Reply with quote

Hi all,

I am here with a project which needs to be log gps sentence GPRMC or GPGGA every two second(gps update rate). GPS giving rs232 output and i want to make a PIC microcontroller based simple gps logger which can record these sentences in the form of raw bytes for one day. It is basically to check the Van movment whole the day.

Now i need advise that what type of memory should be used to store these raw bytes . I have tried to use I2C memories 24c256 etc. But some time it doesnt write or read the right data to and from it. May be some circuit mistake as my electroincs side is not of much higher standard.

Is there other high speed large datastorage eeprom which can easily be intface with PIC microcontrollers. then pleasee tell

regards
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: gps logger .... which type of memeory should be used..
PostPosted: Sat Jun 10, 2006 2:09 am     Reply with quote

Anonymous wrote:
...raw NEMA... It is basically to check the Van movment whole the day...


For a day of data logging, you would need at least 2MBor storage space. MMC card is, probably, your best bet. You can talk to it via SPI, and CCS compiler comes with the library for it. There are links to the schematics for hooking up the MMC card to a PIC in this forum.

I've noticed that you have explicitly said that you want to log the raw NEMA strings. However, if you extract the position and log it as binary, you can reduce your storage requirement by a factor of 5 to 10, depending on precision.


Last edited by kender on Mon Jun 12, 2006 3:16 pm; edited 2 times in total
jaime



Joined: 25 Nov 2005
Posts: 56
Location: Porto - Portugal

View user's profile Send private message Visit poster's website

PostPosted: Sat Jun 10, 2006 2:51 am     Reply with quote

Hi.
I want to do the same... i'm waiting for some electronic parts to make some tests.
I think i will work with a LF PIC, maybe 18lf2550. The pic, the gps and mmc will work at same voltage, so no need to make interface between the components. We can store 512 bytes in the RAM of the pic and then record in the mmc. Maybe its possible to use usb of the pic to send data to a PC.
Is that possible??

The dificult is to buy LF PIC in europe and the MMC socket. If someone know where can i find it...

thanks
rberek



Joined: 10 Jan 2005
Posts: 207
Location: Ottawa, Canada

View user's profile Send private message

PostPosted: Sat Jun 10, 2006 5:44 am     Reply with quote

Or you could use an M25P32 from ST Micro. A 32 Mbit SPI FLASH memory with 256 byte pages.

It requires far less board real estate than an MMC card.
deltatech



Joined: 22 Apr 2006
Posts: 87

View user's profile Send private message

PostPosted: Sat Jun 10, 2006 1:37 pm     Reply with quote

Farnell In One and RS commponents both sell MMC and SD Sockets
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Sat Jun 10, 2006 5:31 pm     Reply with quote

If you have an old floppy cable with the female card edge connector it has the same pin spacing as an MMC card. You could cut it down and wire it so it doesn't matter as to which side of the MMC is inserted...rightside up or right side down.
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Sun Jun 11, 2006 9:20 am     Reply with quote

Hi,

Just what to know isn't there any high capacity memory in PDIP packages ??

thanks
arunb
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sun Jun 11, 2006 4:35 pm     Reply with quote

For testing you can use prototyping adapters like these here: epboard. You can make your own also.
(I also used to be afraid of the SMD parts, you have to make that move anyway from the DIP-world to the SMD era, it is not that much of pain as it seems)
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Sun Jun 11, 2006 10:53 pm     Reply with quote

Hi,

Thanks for the reply..

What tools would I require for soldering these components ??

thanks
arunb
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: RE:
PostPosted: Mon Jun 12, 2006 2:20 am     Reply with quote

arunb wrote:
What tools would I require for soldering these components ??

You would need:
- A fine tip for a soldering iron
- Tweezers
- Flux. Both water-soluble and rosin will work.
- Solder with or without flux core
- (optional) 5-minute epoxy. Sometimes it's useful to hold the chip in position on the PCB with glue, when you solder it. If you don't use epoxy, first solder the diagonally opposite pins (say, 4 and 8) to hold the pin in position.

I would recommend starting with components in SOIC package (the distance between pins is 0.05in ~ 1.25mm ).

You may find these useful:
http://xanadu.ece.ucsb.edu/~long/ece145a/SMSoldering.pdf
jaime



Joined: 25 Nov 2005
Posts: 56
Location: Porto - Portugal

View user's profile Send private message Visit poster's website

PostPosted: Mon Jun 12, 2006 3:50 am     Reply with quote

Hello

Farnell isnt to cheap but its the better way for me to buy a mmc socket. But they dont have 18lf4550.

For testint i didnt find the old floppy disk connector, but i find one motherboard with a pci sockect and i pick up this socket and use it in a board.
stevenm86



Joined: 11 Jun 2006
Posts: 11

View user's profile Send private message

PostPosted: Mon Jun 12, 2006 12:59 pm     Reply with quote

Why log it every 2 seconds? And why log the whole message?

Write an NMEA parser (i am making one now) to pull out the lat/lon/ground speed. It works if you store it as 32-bit fractionals converterd to decimal degrees (floats arent percise enough). Then you can decode/store the data every few feet instead of every few seconds. Save some space that way.
jaime



Joined: 25 Nov 2005
Posts: 56
Location: Porto - Portugal

View user's profile Send private message Visit poster's website

PostPosted: Mon Jun 12, 2006 1:04 pm     Reply with quote

stevenm86 wrote:
Why log it every 2 seconds? And why log the whole message?

Write an NMEA parser (i am making one now) to pull out the lat/lon/ground speed. It works if you store it as 32-bit fractionals converterd to decimal degrees (floats arent percise enough). Then you can decode/store the data every few feet instead of every few seconds. Save some space that way.


Can you translate this? explain what you are doing please
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 12, 2006 1:10 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=4402&highlight=gga
stevenm86



Joined: 11 Jun 2006
Posts: 11

View user's profile Send private message

PostPosted: Mon Jun 12, 2006 4:46 pm     Reply with quote

Woops, posted the code in the forum on the link above instead of this one. Look at the last post there...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group