Shop OBEX P1 Docs P2 Docs Learn Events
Alarm using The BS2 — Parallax Forums

Alarm using The BS2

Jeremy072021Jeremy072021 Posts: 12
edited 2009-04-17 21:22 in BASIC Stamp
Hey,
··· I was wondering if there was a way that I could make a program using the BS2 that would make it do something at a certain time, like an Alarm. Like If I wanted it to turn·on the boe-bot·at 5:00 A.M., could I do it?

······································································································· Thank you.

Comments

  • FranklinFranklin Posts: 4,747
    edited 2009-04-15 00:32
    Add a rtc (real time clock) and you can do it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Jeremy072021Jeremy072021 Posts: 12
    edited 2009-04-15 01:24
    If you don't mind me asking, how would I do that
  • Mike2545Mike2545 Posts: 433
    edited 2009-04-15 01:31
    Buy a time chip and copy the sample code

    www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/233/Default.aspx?txtSearch=real+time+clock

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

    This message sent to you on 100% recycled electrons.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-04-15 01:31
    There are several Nuts and Volts columns on the subject of RTCs. From the main Parallax page, click on the Resources tab and you'll see a link to the Nuts and Volts Columns index. Browse through that and you'll see the columns on RTCs.
  • StevezilaStevezila Posts: 35
    edited 2009-04-15 18:55
    I purchased a DS 1307 Real Time Clock from Futurlec.com It comes all mounted on a mini board complete with back up battery and pull up resistors. cost $7.95 ea.·It did take a while to arrive though. Source code is available·from Paralax. I called their tech support and they kindly pointed to several source code·examples. It works really nice and is easy to display to Debug screen.·Next I too am trying to figure out how to set an alarm with it and also to display the time to a serial LCD. ·Let me know when you find out about the alarm.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-04-17 21:22
    I am a personal fan of the DS1302 and have written several programs which do events based on time. One of my older programs is a Digital Thermostat which had several preset programs which would occur at different times. I will attach it in case it helps you. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
Sign In or Register to comment.