Shop OBEX P1 Docs P2 Docs Learn Events
Ds1602 — Parallax Forums

Ds1602

Mike15Mike15 Posts: 109
edited 2006-03-25 17:45 in BASIC Stamp
I am using the DS1602 RTC to time stamp data from an ADXL accelerometer. And I am wondering if the RTC could also be used to triggger an event at say 30 seconds.

I want to ignite a secondary rocket motor seconds into flight. So if I had a transistor connected to the 12V power supply (needed to ignite)·and A BS pin, Can the RTC be monitered to set the BS pin high after a·certin amount of time?

I'm not quite sure how this would be programed? Any suggestions?

Thanks in advance.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-25 14:35
    The easiest way to do this would be to reset the time at the start of flight, then monitor the seconds register after the flight has started; as soon as it hits 30, you enable the control pin for the next stage.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Mike15Mike15 Posts: 109
    edited 2006-03-25 15:51
    So its as easy as an If Then statement.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-25 16:54
    Here are the steps:

    1. Launch
    2. Clear clock registers
    3. Read clock registers
    4. If clock is less than 30, go back to #3
    5. Start next stage

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Mike15Mike15 Posts: 109
    edited 2006-03-25 17:45
    Thanks
Sign In or Register to comment.