Shop OBEX P1 Docs P2 Docs Learn Events
Reaction timer to track an rc time voltage delay — Parallax Forums

Reaction timer to track an rc time voltage delay

0714Darrell0714Darrell Posts: 1
edited 2007-03-14 15:22 in BASIC Stamp
I,m doing an activity to track rc time on a capacitor.· I debug the program and it starts but it never stops counting.· How long should it take approx. to discharge across the 220 ohm resister and the 10k ohm resister?

Comments

  • ZootZoot Posts: 2,227
    edited 2007-03-14 13:56
    Without knowing the value of the capacitor in your RC circuit, and seeing your code, it's hard to know how long the charge/discharge of the circuit will be, or what might be causing unexpected results.

    That said, the Pbasic Stamp manual has the formulas for determining what the charge/discharge times will be for capacitor/resistor combinations in an RC circuit. Check the manual under "RCTIME" for details (p. 351 in my copy).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-14 15:22
    Curious…You said it never stops counting…But regardless of the RC circuit it will timeout after 65536 cycles and return a 0. Take care.

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