Program Code Wanted
Archiver
Posts: 46,084
Hardware: BS2, DS1302 Real Time Clock with 32.767kHz Crystal, Micro
Switch
Task: log DD:MM:YY:Hour:Min once micro switch is actuated. 21 sets
of data will be logged, and data need to be retrived for analysis.
Wanted:
Has anybody written Program Code for above discription before? If
yes, can you please kindly sent it to me? Similar progeam will also
do.
As i am very new to PBASIC, i would like to have some reference to
study, thanks!!
Have a nice day!!
Switch
Task: log DD:MM:YY:Hour:Min once micro switch is actuated. 21 sets
of data will be logged, and data need to be retrived for analysis.
Wanted:
Has anybody written Program Code for above discription before? If
yes, can you please kindly sent it to me? Similar progeam will also
do.
As i am very new to PBASIC, i would like to have some reference to
study, thanks!!
Have a nice day!!
Comments
loop:
read clock
retrieve data pointer
store data in successive bytes of eeprom
increment data pointer to next free location in eeprom
store data pointer
goto loop
There is code for reading and setting the DS1302 for the app kit on
the Parallax web site. One of the thorny problems with data logging
on the Stamp is where to store the data pointer. Since the DS1302
has extra memory available, it makes sense to store the pointer
there, with backup by a capacitor or battery.
There are a couple of data logger routines on line in the
Stamps-in-class material available for download from the Parallax
site. The Earth Measurements text builds up a data logger for a
number of parameters. I think there is also something in the
Industrial Control text. On my web site at
http://www.emesystems.com/BS2sx I have an section about data logging
with the BS2sx (much easier with the '2p and 2pe). You will not have
too much data, so you would be able to do it in one bank in a vanilla
BS2. Scott Edwards' documentation for the DCPB (Data Collection
Proto Board) is still available on line at http://www.seetron.com.
-- best regards
Tracy Allen
electronically monitored ecosystems
http://www.emesystems.com
mailto:tracy@e...
Since you have a DS1302
>Hardware: BS2, DS1302 Real Time Clock with 32.767kHz Crystal, Micro
>Switch
>
>Task: log DD:MM:YY:Hour:Min once micro switch is actuated. 21 sets
>of data will be logged, and data need to be retrived for analysis.
>
>Wanted:
>Has anybody written Program Code for above discription before? If
>yes, can you please kindly sent it to me? Similar progeam will also
>do.
>
>As i am very new to PBASIC, i would like to have some reference to
>study, thanks!!
>
>Have a nice day!!
book as well as "The Nuts & Volts of BASIC Stamps, Volume 3." StampWorks
will get you up to speed with PBASIC, there are specific datalogging examples
in the Nuts & Volts book. With that and advanced information you can find on
Tracy Allen's web site (www.emesys.com), you can write a datalogger that will
do anything you need to do.
-- Jon Williams
-- Applications Engineer, Parallax
In a message dated 12/12/2002 1:40:53 AM Central Standard Time,
800205015763@n... writes:
> Hardware: BS2, DS1302 Real Time Clock with 32.767kHz Crystal, Micro
> Switch
>
> Task: log DD:MM:YY:Hour:Min once micro switch is actuated. 21 sets
> of data will be logged, and data need to be retrived for analysis.
>
> Wanted:
> Has anybody written Program Code for above discription before? If
> yes, can you please kindly sent it to me? Similar progeam will also
> do.
>
> As i am very new to PBASIC, i would like to have some reference to
> study, thanks!!
>
> Have a nice day!!
[noparse][[/noparse]Non-text portions of this message have been removed]