POT command
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,
·············· Shy
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,
·············· Shy
Comments
·· 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 Williams
Applications Engineer, Parallax