Push button inconsistency
francis_L_H
Posts: 10
Hello all,
I am working on a project that requires user interface of a simple pushbutton. I have two of the same setups. The only difference is that one is on a breadboard and the other is on the propeller protobard. The code will pull until the user pushes the button. The breadboard set up works perfectly fine. When I try to run the same exact setup, just with the protoboard, the propeller will not recognize the user input. It recognized it a few times during troubleshooting, I was plugging in the wires to the buttons when the protobard still had power to it. I know that is frowned upon and don't usually do it, but thought it might be insightful that it is one of the few times it worked. The very few other times it recognized a button push it gave me some weird results that didn't make any sense.
Just for more information, I have used a multimeter to check continuity and voltages and they are exactly the same as the breadboard set up. I have also run other code on the protobard to make sure everything was working correctly.
Any ideas?
I am working on a project that requires user interface of a simple pushbutton. I have two of the same setups. The only difference is that one is on a breadboard and the other is on the propeller protobard. The code will pull until the user pushes the button. The breadboard set up works perfectly fine. When I try to run the same exact setup, just with the protoboard, the propeller will not recognize the user input. It recognized it a few times during troubleshooting, I was plugging in the wires to the buttons when the protobard still had power to it. I know that is frowned upon and don't usually do it, but thought it might be insightful that it is one of the few times it worked. The very few other times it recognized a button push it gave me some weird results that didn't make any sense.
Just for more information, I have used a multimeter to check continuity and voltages and they are exactly the same as the breadboard set up. I have also run other code on the protobard to make sure everything was working correctly.
Any ideas?
Comments
It would be helpful to see a drawing of your push button schematic plus the code.
I have attached a schematic (very rough) of my circuit and the spin code. I used the LCD screen to check the inputs of the pins and they all indicate 0 just before the point in my code that the pushbutton is used. I used a multimeter to check the voltages across the pin and 3.3V/Vdd. It is 0 when the button is open and 3.3 when the button is pushed.