View previous topic :: View next topic |
Author |
Message |
MAMBURUCEA Guest
|
Binary data collector |
Posted: Wed Dec 16, 2009 7:56 pm |
|
|
Hi, I want to store a TTL binary data (0 and 1) stream to an eeprom, with help of a PIC. Like a data collector. Every stream must be timestamped and burned in the EEPROM. Can you help me with a schematic and code for this task ? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Dec 16, 2009 8:09 pm |
|
|
The name for your project is a "data logger".
You can find projects by using Google to search for:
Quote: | PIC "data logger" CCS |
You can search the Microchip website by using this search string:
Quote: | site:microchip.com "data logger" |
|
|
|
MAMBURUCEA Guest
|
|
Posted: Thu Dec 17, 2009 5:55 am |
|
|
belive me that i have searched days for now..but i didnt find anything that suits for what i have asked :( |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Thu Dec 17, 2009 6:34 am |
|
|
hmmm,
PCM is right...
you want a data logger... you can buy them from sparkfun.com
search for... "datalogger" .. they have them in different flavours.
cheap too!
if you want to build your own....
you need a PIC, a RTC, and EEPROM.... basically.
you can get SPI RTCs and EEPROMs....
use the SPI bus on the pic.... to control them.
.... how is your data coming in? synchronous, asynchronous.... what protocol? rs232, spi, i2c, parallel..... from where? PC, PIC, Shift register?
g. _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
MAMBURUCEA Guest
|
|
Posted: Thu Dec 17, 2009 9:34 am |
|
|
Hi Gabriel. The data comes in a pair ( DATA+ClOCK) from a f2f decoder, can you help me with that? |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1939 Location: Norman, OK
|
|
Posted: Thu Dec 17, 2009 9:40 am |
|
|
From the little that you have provided it sounds like you are wanting to build
a c/c data snoop/logger device.... _________________ Google and Forum Search are some of your best tools!!!! |
|
|
MAMBURUCEA Guest
|
|
Posted: Thu Dec 17, 2009 10:14 am |
|
|
Yes, some sort like that. I'm a owner of a pig farm, and I hired some workers on the village that the farm is, and I wanna "control" them if they have been there that day. They are required to swipe the card when come, and when leave, and for that I require a timestamp...to not leave early than the program is. Excuse my my english. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 17, 2009 1:59 pm |
|
|
Now that you explained it, I can give you a search string
to find it in Google:
Quote: | card swipe time clock |
They're relatively cheap. Here's one brand.
Quote: | Pyramid TimeTrax Time Clocks |
You could build it yourself, but why bother ? The amount of time
and money spent would not give as good a result as just buying one.
CCS has card reader routines. Here's the file location:
Quote: | c:\program files\picc\examples\ex_mcr.c |
There are also some card reader routines posted in the forum archives.
But I would just buy one. |
|
|
MAMBURUCEA
Joined: 17 Dec 2009 Posts: 5
|
|
Posted: Thu Dec 17, 2009 2:25 pm |
|
|
ok PCM programmer , i understand you . but i like to do stuff myself..solder , blah blah..stuff like that..that`s why i wanna make my own..fill up my time and probable save some money too. I have a schematic for what i want , can you please help me with the code for it ? thanks http://www.desire-agency.com/1s2.JPG |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 17, 2009 2:48 pm |
|
|
My advice is to buy a card reader and interface it to your PIC.
Here is one from Sparkfun that has a serial port interface. That would be
very easy to use with a PIC.
http://www.sparkfun.com/commerce/product_info.php?products_id=8634
Then maybe add an LCD display, and a real-time clock chip, and an
external eeprom. You need some way to download the saved data,
so maybe add a serial port interface for that.
You also need the cards. The Pyramid company sells pre-programmed
employee cards. If you don't buy them, then you need to get an
expensive card writer. |
|
|
MAMBURUCEA
Joined: 17 Dec 2009 Posts: 5
|
|
Posted: Thu Dec 17, 2009 2:55 pm |
|
|
I have a Omron VA3 TTL reader...can I use this ? I will buy the cards, is not worth to buy a writer for 6 -7 cards. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 17, 2009 3:03 pm |
|
|
Post a link to the data sheet for the card reader. I'm not a mind reader. |
|
|
MAMBURUCEA
Joined: 17 Dec 2009 Posts: 5
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 17, 2009 3:29 pm |
|
|
That's just the reader head. There's no mechanical guide for the card.
You would have to build one. I strongly suggest that you don't do this.
It's so much easier to buy a complete unit that has a card guide.
Previously, you said you had an OMROM reader.
This CCS driver supports an OMRON reader. Look at the notes in it:
Quote: | c:\program files\picc\drivers\mcr.c
//// Pin connections for the OMRON V3A-6
|
My advice is, get the OMRON reader (complete with card guide) and
use the CCS driver and be happy. Get the project done quickly. |
|
|
MAMBURUCEA
Joined: 17 Dec 2009 Posts: 5
|
|
Posted: Thu Dec 17, 2009 3:34 pm |
|
|
Some guy told me that what I have is manufactured by OMRON and gived me that model number, but I see he`s wrong... I have the case ( mechanic mechanism) for the head that is in the data sheet that I provided you, should I buy another one? |
|
|
|