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 support@ccsinfo.com

Binary data collector
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
MAMBURUCEA
Guest







Binary data collector
PostPosted: Wed Dec 16, 2009 7:56 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Dec 16, 2009 8:09 pm     Reply with quote

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







PostPosted: Thu Dec 17, 2009 5:55 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 6:34 am     Reply with quote

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







PostPosted: Thu Dec 17, 2009 9:34 am     Reply with quote

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: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 9:40 am     Reply with quote

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







PostPosted: Thu Dec 17, 2009 10:14 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 1:59 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 2:25 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 2:48 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 2:55 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 3:03 pm     Reply with quote

Post a link to the data sheet for the card reader. I'm not a mind reader.
MAMBURUCEA



Joined: 17 Dec 2009
Posts: 5

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 3:11 pm     Reply with quote

This is the datashet , my reader is the first page ( the single track head) http://securetech-corp.com/pdf/stp.pdf
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 3:29 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Dec 17, 2009 3:34 pm     Reply with quote

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?
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