Stamp 2p and buttons
bzoo2005@yahoo.com
Posts: 4
I am working on a project on a BS2p, and attempting to test a button circuit. I have the circuit set up as "active High". To test it I am using the generic button program that downloads with the Parallax software, and modified the pin # to the correct pin, and changed the BUTTON command so that the pin is active high.
And it doesn't work....I get no "*" at all.
I have tested the circuit, and there is power to the button, the ground is properly connected, and the current does go to the set pin when the button is pushed.
AND I have connected the same exact setup to a BS2 (the green ones) with the same changes to the program, and it works fine.
Anyone know what's up? I am testing on the MAINIO side, and ruled out that I am addressing the wrong pin...
And it doesn't work....I get no "*" at all.
I have tested the circuit, and there is power to the button, the ground is properly connected, and the current does go to the set pin when the button is pushed.
AND I have connected the same exact setup to a BS2 (the green ones) with the same changes to the program, and it works fine.
Anyone know what's up? I am testing on the MAINIO side, and ruled out that I am addressing the wrong pin...
Comments
Are you using a clean 5V external power source or the onboard 5V regulator?
Your BS2P is known good, including the input pin you are using? If there is any possibility that you damaged that pin, try another.
You have a high-value pulldown resistor (~10K) from the input pin to ground, a ~220-ohm resistor in series with said input pin, and your switch/button intermittently connects that pin to +5V?
Have you tested the voltage at the pin with a multimeter while you press the button to verify 0V and 5V?
If you remove your switch circuit from the pin and hardwire a 220 ohm resistor from the pin to ground, does the pin read low?
If you remove your switch circuit from the pin and hardwire a 220 ohm resistor from the pin to +5V, does the pin read high?
Thanks for the reply! I did change the directive also..well, I forgot once and the download prompted me to select the correct chip, and then I did!
True about the user name...didn't consider that...though using the ex's email seems like a good idea...