Shop OBEX P1 Docs P2 Docs Learn Events
POT command — Parallax Forums

POT command

ShyrbShyrb Posts: 2
edited 2005-07-11 12:20 in Robotics
Hi,
I am building a robot using Basic1.
The robot should track voice.
I need to connect 4 microphones as inputs to the Basic1 and to decide which one of them recieve the loudest signal.
I am trying to use the POT command to translate the microphones output to a digital value.
As an experimante, I connected P4, of Basic1, directly to·5V. I expected to see that Basic1 is reading a value of 255, but instead it read only once 255 and then read value of 0.
Can anyone explain to me the phenomena, please?

········· Thanks,
burger.gif
·············· Shy

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-07-10 02:26
    Hello,

    ·· Without knowing what you have connected and how they're connected, it would be difficult to say what's happening.· Your code would also be helpful (attached).



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-11 12:20
    The POT instruction is pretty specific in its goal: to charge an RC circuit, then discharge it step-by-step to determin the value of the RC circuit. So, it's probably not what you want to use; POT is not like the BS2's RCTIME command (RCTIME is passive) -- POT actually charges the RC circuit for you, and this could be causing problems with yoru mic inputs.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.