Shop OBEX P1 Docs P2 Docs Learn Events
Power Checking Boe-Bot — Parallax Forums

Power Checking Boe-Bot

A.C. fishingA.C. fishing Posts: 262
edited 2006-02-27 15:27 in Robotics
Is there a way I can make my bot check its power source, and then, use the DEBUG command to show voltage left on screen?
thanks

Comments

  • A.C. fishingA.C. fishing Posts: 262
    edited 2006-02-26 21:20
    Also, another question: Can the twinkle toes work with the BOE-Bot?
  • A.C. fishingA.C. fishing Posts: 262
    edited 2006-02-26 21:30
    Final Question: (Sorry, these are all for a project i'm working on) Is there a command to ramdomize the order of a group of subrountines? Like, The bot can go forward, backward, right, or left. But what if i wanted the bot to randomly go around the room, bumbing into stuff?
  • Half-LucasHalf-Lucas Posts: 13
    edited 2006-02-26 22:02
    To your 3rd Q:

    Yes, you can randomize the robots movement with a command known as RANDOM.
    All you do is assign a number for each subroutine and tell the RANDOM command to spitt out numbers from 1 to 4. (Include in loop)
    This will cause a random subroutine to be activated per one LOOP.

    (Look up RANDOM in the Index for more info)
  • A.C. fishingA.C. fishing Posts: 262
    edited 2006-02-26 22:26
    thanks Half-Lucas!
    forget about the second question i just need the first answered.
  • Half-LucasHalf-Lucas Posts: 13
    edited 2006-02-26 23:45
    as for the first: I NEED that answer too!!


    PEOPLE: IF YOU READ THIS, PLEASE ANSWER THE FIRST QUESTION!
  • DiablodeMorteDiablodeMorte Posts: 238
    edited 2006-02-27 15:27
    You may want to specify the TYPE of battery. With normal(Non Lithium) batteries which drain(ie. lose strengh) as they discharge one can simple measures the amount of electricly coming through and compare it to what it should be(9v batteries are actually 10v fully charged). ONe way to do this is to use and led and a photoresistor and measures it relative brightness
Sign In or Register to comment.