Shop OBEX P1 Docs P2 Docs Learn Events
Process time at a Display with Basic Stamp 2. ! — Parallax Forums

Process time at a Display with Basic Stamp 2. !

Johan1968Johan1968 Posts: 22
edited 2008-02-01 21:21 in BASIC Stamp
Can any one help me, i try to find a solution, to show time at a display(HH:MM:SEC) and send int from a PS2 to a displaydriver like (MAX 695) or have it there a smarter way do solve it with ? Regards Johan

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-02-01 07:49
    Johan -

    I would guess the "PS2" is a typo, and you mean BS-2 Stamp?

    If that's the case, you will need a real time clock (RTC) chip, as Stamps do not have RTC features built into them. A typical RTC chip for which there is plenty of documentation is the Maxim DS-1302, which Parallax sells on their web site.

    First, you would fetch the current time from the DS1302 using the SHIFTIN command. Then, you format the data to fit your needs, and finally, send that time data out to your display unit, using the appropriate commands to do so.

    That's about all there is to it, in summary.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There is no pleasure in having nothing to do;
    the fun is in having lots to do, and not doing it!
  • Johan1968Johan1968 Posts: 22
    edited 2008-02-01 09:26
    Ok !
    Yes i meant BS2 , thanks, will try to make this example.

    Ragards Johan
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-02-01 21:21
    Hello,

    The following thread in the Completed Projects forum has a similar concept that uses the MAX7219 to display the time. Perhaps it will help you with the coding and wiring. You will just need to adjust your project for the chip/IC you’re using. Take care.

    http://forums.parallax.com/forums/default.aspx?f=21&p=2&x=25&ord=ld

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.