One Pin Less Sensitive Than Others?
Martin_H
Posts: 4,051
I have push button wired like the Basic Stamp manual. The pin has 220 ohm connected to one side of the switch, that side also has a 10K pull up, and the other side of the switch is grounded. This set up works fine with my Arduino, my Propeller Platform, and almost all my BS2e pins.
I say almost because it will return 1 when open and zero when closed on all pins except pin 0. On that pin it always returns 1. Now at first I thought the pin was dead, but connecting it to ground results in pin 0 reading 0, and I can also blink an LED no problem.
So is it possible to have one sensitive pin detect any voltage as logic 1?
I say almost because it will return 1 when open and zero when closed on all pins except pin 0. On that pin it always returns 1. Now at first I thought the pin was dead, but connecting it to ground results in pin 0 reading 0, and I can also blink an LED no problem.
So is it possible to have one sensitive pin detect any voltage as logic 1?
Comments
-Phil
I will check the code ago looking to see if made that pin an output.
-Phil
Yes, that could be explained by a pin/socket connection problem.
First, measuring the voltage at the pin was a really good idea, because as soon as I started doing it I found the root cause. The CBA control board has a line following module which plugs into a header on the side of the robot. The cable goes under the board to the LFM and I usually leave it unplugged. But I forgot and it is easy to miss with all the other wires, but that caused the problem.
Basically if you don't send control signals to the LFM it mostly does nothing, except it was messing up the voltage to pin 0 which is the input pin from the LFM. Doh!