Problem getting the Stamp to recognize input from a BCD switch
margog
Posts: 2
Hi!
We are trying get the stamp to recognize input from a BCD switch connected to pins 12 - 15 on a Parallax Stamp, Board of Education using PBasic 2.5. The problem is that, no matter what we set the switch to, the Stamp still thinks it's set to 0.
I've attached my few lines of code and next, the data sheet for the BCD switch we are using.
Many thanks for your help!
Margo
We are trying get the stamp to recognize input from a BCD switch connected to pins 12 - 15 on a Parallax Stamp, Board of Education using PBasic 2.5. The problem is that, no matter what we set the switch to, the Stamp still thinks it's set to 0.
I've attached my few lines of code and next, the data sheet for the BCD switch we are using.
Many thanks for your help!
Margo
pdf
890K
Comments
We don't have any email-able schematic, but I can give you the details:
The 1-pin of the switch is connected to Pin 12 of the Stamp.
The 2-pin of the switch is connected to Pin 13 of the Stamp.
The 4-pin of the switch is connected to Pin 14 of the Stamp.
The 8-pin of the switch is connected to Pin 15 of the Stamp.
Currently, the Common-pin of the switch is connected to ground (though we've tried it without being grounded, but it makes no difference, either way.)
On each connect a switch pin and a Stamp pin is a diode (1N4148) with the band towards the switch.
No Pull-up or pull-down resistors are used.
I hope this is enough to let you see how it's hooked up ... thanks!
Margo