Shop OBEX P1 Docs P2 Docs Learn Events
Low battery threshold — Parallax Forums

Low battery threshold

jihyeonjihyeon Posts: 6
edited 2009-10-14 12:35 in BASIC Stamp
we using Board of Education with BS2.

how to set the low battery threshold with PBASIC code? confused.gif
(when the battery low, LED will light up)

helps are much appreciated! smile.gif

Comments

  • dev/nulldev/null Posts: 381
    edited 2009-09-23 10:19
    You can use the RCTIME command together with an RC circuit connected to Vin (with a voltage divider), or you can use a ADC chip like ADC0831 (with a voltage divider).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't worry. Be happy
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-09-24 16:27
    As a note though, once the voltage drops below·4.2V the BASIC Stamp will be held in a reset state and the program will cease to function.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • jihyeonjihyeon Posts: 6
    edited 2009-10-14 12:35
    We are having problems with the RCTIME. When we adjust the Vin from 0V to 6V, the values read is always within 510 to 520.

    I have attached part of our circuit, please help us check the circuit. Our RCTIME program code is taken from the basic stamp website.

    Thank you
    282 x 251 - 8K
Sign In or Register to comment.