Shop OBEX P1 Docs P2 Docs Learn Events
Please help clearing my doubts — Parallax Forums

Please help clearing my doubts

ArchiverArchiver Posts: 46,084
edited 2002-12-11 13:35 in General Discussion
Situation: new to BS, having a BS2 module

Task: log date and time upon triggered of sensor, 4 sets of date &
time per day for a week. Size ia a problem for this porject.

Doubts:
1. Can i achieve this without a Real Time Clock & External EEPROM?
2. Do i need to write/get a program that count year, month, day,
hour, min and download to BS2?
3. Any better suggestion?

Thanks pals, and have a nice day!

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-12-11 05:07
    You may want to check out chapter 7 of the Stamp in Class Industrial
    text. It discusses data logging with time stamping and uses a real
    time clock, the DS1308. It may help get you started though you will
    need to add code for date. The code in the text has about 300 bytes
    left over in EEPROM for data to be logged into, and you may be able
    to cut down some of the code or add additional eeprom to your circuit.

    Available at:
    http://www.parallax.com/html_pages/downloads/siccurriculum/documentati
    on_sic_curriculum.asp

    -Martin


    --- In basicstamps@yahoogroups.com, "chongkhaishin
    <800205015763@n...>" <800205015763@n...> wrote:
    > Situation: new to BS, having a BS2 module
    >
    > Task: log date and time upon triggered of sensor, 4 sets of date &
    > time per day for a week. Size ia a problem for this porject.
    >
    > Doubts:
    > 1. Can i achieve this without a Real Time Clock & External EEPROM?
    > 2. Do i need to write/get a program that count year, month, day,
    > hour, min and download to BS2?
    > 3. Any better suggestion?
    >
    > Thanks pals, and have a nice day!
  • ArchiverArchiver Posts: 46,084
    edited 2002-12-11 05:17
    Oh, by the way, the DOWNLOAD text on that page is linked incorrectly
    it seems to brobotics. Click on the 5.4M text beneath it.

    -MH



    --- In basicstamps@yahoogroups.com, "Martin Hebel <martin@s...>"
    <martin@s...> wrote:
    > You may want to check out chapter 7 of the Stamp in Class
    Industrial
    > text. It discusses data logging with time stamping and uses a real
    > time clock, the DS1308. It may help get you started though you
    will
    > need to add code for date. The code in the text has about 300
    bytes
    > left over in EEPROM for data to be logged into, and you may be able
    > to cut down some of the code or add additional eeprom to your
    circuit.
    >
    > Available at:
    >
    http://www.parallax.com/html_pages/downloads/siccurriculum/documentati
    > on_sic_curriculum.asp
    >
    > -Martin
    >
    >
    > --- In basicstamps@yahoogroups.com, "chongkhaishin
    > <800205015763@n...>" <800205015763@n...> wrote:
    > > Situation: new to BS, having a BS2 module
    > >
    > > Task: log date and time upon triggered of sensor, 4 sets of date
    &
    > > time per day for a week. Size ia a problem for this porject.
    > >
    > > Doubts:
    > > 1. Can i achieve this without a Real Time Clock & External EEPROM?
    > > 2. Do i need to write/get a program that count year, month, day,
    > > hour, min and download to BS2?
    > > 3. Any better suggestion?
    > >
    > > Thanks pals, and have a nice day!
  • ArchiverArchiver Posts: 46,084
    edited 2002-12-11 13:35
    > 1. you will need some sort of external clock.
    > (Someone will no boubt recomment one made for the Stamp :-)
    Two that come to mind:
    http://www.solutions-cubed.com/Products/PocketWatchB/pocketwatchB_main.h
    tm and www.high-techgarage.com. I've used both and they are both very
    usable.

    >
    > 2. You may be able to get away with just the storage space on
    > the BS2...

    Look at the BS2P or the new "data logging Stamp" (forgot the
    nomenclature). You can store things in unused program banks, which means
    you can store quite a lot. Keep in mind though there is some upper limit
    to how many times you can write to EEPROM (maybe a million cycles? Jon
    can probably tell us the correct number). For programming this is
    plenty. If you are writing to a single cell once a second, a million
    seconds is less than 12 days! Four events per day would probably not be
    much of a problem although you will eventually wear out.

    Al Williams
    AWC
    * NEW: PAK-VIa - Read PS/2 keyboards or mice -- double the buffer, lower
    current consumption.
    http://www.al-williams.com/awce/pak6.htm
Sign In or Register to comment.