Shop OBEX P1 Docs P2 Docs Learn Events
HELP????????? — Parallax Forums

HELP?????????

ArchiverArchiver Posts: 46,084
edited 2000-04-16 23:07 in General Discussion
did any body read message 841?
Perhaps my subject was not correct but i'm still having problems.
I'm already find out that there is a 5V regulator on the stamp!
But i still don't now how to set de ds1302 from out VB6.0
And i'm wondering how long the stamp will run on a 9v battery?

regards
Willem.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-04-16 19:59
    > did any body read message 841?
    > Perhaps my subject was not correct but i'm still having problems.
    > I'm already find out that there is a 5V regulator on the stamp!
    > But i still don't now how to set de ds1302 from out VB6.0
    > And i'm wondering how long the stamp will run on a 9v battery?

    > hello every body,
    > i' joined this group this week. lookes very nice! i started a project
    > with a BS2 stamp to measure the pulses from a tipping bucket
    > raingauge. hourley a write the amount off pulses with a time stamp
    > (from the DS1302) into memory. In VB6.0 i made a users program to set
    > parameters and read de data from the stamp. All working well so far.
    > BUT.....
    > 1)in the example off the DS1302 they are using i.e. $12 to set the
    > time or date etc, how can i set the ds1302 time from out VB6.0?
    > 2) how long will a 9V battery power the stamp (consuming app.6mA)?
    > 3)what extended memory will i use (writing the time and the amount
    > off pulses every hour use a lot of EEprom space)
    > exusses for the englisch gramatica but i'm doing my best.
    > regards
    > Willem
    > (the netherlands)

    Hi Willem,
    I'm not clear on what problem you are having with the DS1302. It sounds
    like you are able to read and write data okay. I think Matt Parnell uses a
    DS1306 in his "weatherstamp" and has some example code posted that might
    help you. <http://www.oeonline.com/~tparnell/index.html> The DS1302 is
    similar to the DS1306. Does your question focus on the BCD number format?
    Like how to send $12 from VB? Actually you can take advantage of the BS2
    modifiers for SERINto receive the data in one format (decimal or binar,y
    say) and then translate it to $12 using the HEX modifier to send it with
    SEROUT to the clock chip. Al Williams' site has lots of info on VB
    <http://www.al-williams.com/awce.htm>.

    Assuming 500mah for a fresh 9v alakaline battery, 500/6=83 hours=3+ days.
    You can improve the life of the battery a lot by using the SLEEP or NAP
    instruction in your program. I have some info on that vis a vis rain gages
    at <http://www.emesystems.com/OW2face.htm#rain>.

    A lot of us use the 25Cxxx serial eeproms for storing data. For easiest
    interface, Parallax offers the Stampmem, which is a 64kbyte memory module,
    and the RAMPAK-B, an 8k ram module.

    Good luck!

    -- Tracy Allen
    Electronically Monitored Ecosystems
    http://www.emesystems.com
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-16 22:20
    Thanks Tracy!!
    The wheel was already invented!! I think i have to re-design, but
    with your info i will more be able!
    In deed my question is focussing on the BCD number format and how to
    send $12 from VB. I think i understand de meaning... send from VB a
    ASCII caracter and send true de Stamp In $(ascii) to the DS1302! i
    will work it out.

    I used a brand new 9V alkaline and it was burned out in two or so
    days.. now i understand!! With de sleep command i think the autonomie
    will be better!!

    I also wanted to log every hour, but when there is no rainfall you
    don't have to store it....(open door??). So perhaps with smart
    programming i can use the standard eeprom, i will see.

    thanks again and best regards
    Willem
  • ArchiverArchiver Posts: 46,084
    edited 2000-04-16 23:07
    willem,

    Onset computer corporation makes rain gauge dataloggers for under $100

    http://www.onsetcomp.com/welcome.html

    they are nice units, built with all surface mount parts and will run for
    over a year
    with a small lithium battery (CR2032). I've built similiar units for my
    job using the BSII,
    gave it up after Onset's hit the scene.

    fwiw,

    steve




    At 09:20 PM 04/16/2000 -0000, you wrote:
    >Thanks Tracy!!
    >The wheel was already invented!! I think i have to re-design, but
    >with your info i will more be able!
    >In deed my question is focussing on the BCD number format and how to
    >send $12 from VB. I think i understand de meaning... send from VB a
    >ASCII caracter and send true de Stamp In $(ascii) to the DS1302! i
    >will work it out.
    >
    >I used a brand new 9V alkaline and it was burned out in two or so
    >days.. now i understand!! With de sleep command i think the autonomie
    >will be better!!
    >
    >I also wanted to log every hour, but when there is no rainfall you
    >don't have to store it....(open door??). So perhaps with smart
    >programming i can use the standard eeprom, i will see.
    >
    >thanks again and best regards
    >Willem
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
Sign In or Register to comment.