Shop OBEX P1 Docs P2 Docs Learn Events
bs1 rtc — Parallax Forums

bs1 rtc

icepuckicepuck Posts: 466
edited 2009-03-26 11:01 in BASIC Stamp
Has any one used a real time clock with a basic stamp 1? Could it be done?
Something like the one in the following link..
[noparse][[/noparse]url]http://store.gravitech.us/i2crecl.html
-dan

Comments

  • Mike2545Mike2545 Posts: 433
    edited 2009-03-26 00:59
    You need the I2c command structure for the real time clock. Only the BS2p, BS2pe & BS2px have that command.

    According to the Basic Stamp Syntax Manual 2.2

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-03-26 01:54
    The BS2 can do I2C using subroutines. There's a nice Nuts and Volts Column on the subject. A BS1 just doesn't have the memory to do that, but it could interface to a DS1302 RTC using SPI. There's a Nuts and Volts Column on this device as well. I don't think it covers the BS1, but I could be wrong. In any event, it's doable.
  • Mike2545Mike2545 Posts: 433
    edited 2009-03-26 02:12
    @ Mr. Green,

    SPI?
    You also mentioned this article of using subroutines in the post about external EEPROM, do you have any more information to share on this subject today?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • icepuckicepuck Posts: 466
    edited 2009-03-26 02:19
    I've had my bs1 ver d for a few years now, I recently found it again when cleaning up things and I thought I might be able to use it again. It looks like that idea went down in flames[noparse];)[/noparse] A while back I got a BS2px from one of the daily deals, but I don't have a development for it yet. It sounds like the PX may be the way to go.
    -dan
  • Mike2545Mike2545 Posts: 433
    edited 2009-03-26 02:27
    If you have a BS2px it will work. The sample code given on the gravitech works well. I have 2 of those real time clocks and just started playing with them. I have not figured out how to make it a 12hr format instead of 24hr, but I'm still learning!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-03-26 03:24
    Let's see ...
    Nuts and Volts Columns 33 and 34 cover timekeeping. #33 covers the DS1302 while #34 talks about another RTC that's been discontinued (Solutions Cubed Pocket Watch B).


    Nuts and Volts Column #85 covers the use of I2C with Stamps that don't have the built-in I2C statements.
  • Mike2545Mike2545 Posts: 433
    edited 2009-03-26 11:01
    Thanks Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
Sign In or Register to comment.