Shop OBEX P1 Docs P2 Docs Learn Events
Help with Clock/calendar Basic Stamp2 — Parallax Forums

Help with Clock/calendar Basic Stamp2

roddhalfordroddhalford Posts: 4
edited 2007-12-09 04:55 in BASIC Stamp
I need your help to find a program code in Basic Stamp2·to make·a clock/calendar. I have the Basic Stamp Homework Board with the pic16f57 and a 2x16 LCD display YJ-162 from parallax too.

Please I need your help with the code.

Thanks

Comments

  • metron9metron9 Posts: 1,100
    edited 2007-12-07 05:15
    Perhaps something like this?

    http://forums.parallax.com/forums/default.aspx?f=21&m=90943

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Think Inside the box first and if that doesn't work..
    Re-arrange what's inside the box then...
    Think outside the BOX!
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2007-12-07 05:18
    roddhalford

    You can also have a looK as well

    http://forums.parallax.com/showthread.php?p=567200

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam
  • roddhalfordroddhalford Posts: 4
    edited 2007-12-07 18:02
    I was checking the project made by Chris (The binary/digital clock). I found 2 codes:

    1) Binary Digital Clock.bs2
    2) DS1302_Demo.bs2

    I tried the first one with my basic stamp homework board and the parallax 2x16 LCD display. I'm not using the 7 segments displays and the other things. I'm using only the 2x16 LCD display.

    The LCD shows the tittle and then shows: Sunday
    00 00 00

    How can I change the time?
  • roddhalfordroddhalford Posts: 4
    edited 2007-12-07 18:07
    Oh, I've seen a problem, I don't have the DS1302. This code can't work with the only 2 things I have : Basic Stamp Home Work Board and the parallax 2x16 display.

    what can I do? to solve the problem using only the board and the LCD display?
  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-07 18:30
    The problem is that there is no continuously running timebase. You can use the PAUSE statement to wait 1000 ms for a second counter and it's pretty accurate by itself. Unfortunately, the statements to keep track of the time and to send it to the display will take a little bit of time and that will throw the timekeeping off. You could calibrate it by writing the program, letting it run, and seeing what the average time loss would be over several days. If your program takes on average 1010 ms to do the counting and display once a second, you could make the PAUSE a little smaller to compensate.
  • stephenwagnerstephenwagner Posts: 147
    edited 2007-12-07 21:44
    roddhalford,

    On page 16 of getting started with the Parallax serial lcd document is a clock example that might help.

    http://www.parallax.com/dl/docs/prod/audiovis/SICSerialLcd.pdf


    SJW
  • roddhalfordroddhalford Posts: 4
    edited 2007-12-09 04:55
    Thank you stephen for the document, and all the people here. You all have been a great source of help.

    I have made the clock/calendar. Basic Stamp 2 is awesome.

    Thank you people
Sign In or Register to comment.