buttons...
Peter J. Fischel
Posts: 28
On my Propeller Boe Bot I installed 4 buttons, typical from parallax kits.
I connect one poll of the buttons to the port and the other to the 3.3v supply provided.
What is wierd is that if I get my fingers near any of the buttons, the signal triggers.
This is the code...
repeat
· if ina[noparse][[/noparse]24]
··· outa[noparse][[/noparse]16]~~
··· waitcnt(20000+cnt)
··· outa[noparse][[/noparse]16]~
Port 16 is connected to a tiny speaker typical of parallax kits.
Port 24 is the button.
It acts like I am some sort of antenna. Even if I get close to the buttons it causes that routine to chirp.
any ideas how to stop this effect?
Thanks.
I connect one poll of the buttons to the port and the other to the 3.3v supply provided.
What is wierd is that if I get my fingers near any of the buttons, the signal triggers.
This is the code...
repeat
· if ina[noparse][[/noparse]24]
··· outa[noparse][[/noparse]16]~~
··· waitcnt(20000+cnt)
··· outa[noparse][[/noparse]16]~
Port 16 is connected to a tiny speaker typical of parallax kits.
Port 24 is the button.
It acts like I am some sort of antenna. Even if I get close to the buttons it causes that routine to chirp.
any ideas how to stop this effect?
Thanks.
Comments