Switches - Happy Ending :-)
Hello,
Thanks for each person help. It was greatly appreciated. I finally
got it working correctly 100% of the time. I originally had my
resistor connected to ground but of course that did not work. I
reversed it and connected my resistor to 5V+ and my switch to
ground. Amazingly that works! Go figure. I will continue to tinker
with the way I had it before.
The physical contacts on the bs2 worked like they should have.
Well, until the next question, thank a great deal.
Thank You All!
--- In basicstamps@egroups.com, Tracy Allen <tracy@e...> wrote:
> >input 7
> >Loop:
> > debug bin in7,CR
> >goto Loop
> >Actually, the state reports mostly ones, but it is sometimes
erratic
> >and reports a mixture of 1's and 0's. Pressing the button has no
> >effect :-(
>
> As Steve P. pointed out, the erratic response indicates that the
pin
> is open, not connected to anything.
>
> >The voltmeter did reflect some light. The voltage went from 0 to
4.8
> >volts.
>
> That is a good sign!
>
> Where did you probe the (+) voltage? Do it right on the Stamp pin.
> Logical P7 is actually pin 12 of the 24-pin BS2 carrier. Or as
> Steve said, it is also physical pin 14 on the SX28 chip that is
> mounted on top of the carrier. I guess I should ask, are you using
> the 24 pin BS2 module--and what breadboard?
>
> >Here's a breadboard illustration incase I am not interpreting the
> >schematics correctly:
> >
> > _______ ______ ______
> >row 1 | | | _|_ | _|_
> >row 2 I/O pin _|_ _|_ _|_ 5V _|_ GND
>
> I do not quite understand this diagram. Which line is which part?
> The real test is the voltage probed at the I/O pin, pin 12 on the
> physical carrier board for logical P7.
>
> -- Tracy Allen
> electronically monitored ecosystems
> http://www.emesystems.com
Thanks for each person help. It was greatly appreciated. I finally
got it working correctly 100% of the time. I originally had my
resistor connected to ground but of course that did not work. I
reversed it and connected my resistor to 5V+ and my switch to
ground. Amazingly that works! Go figure. I will continue to tinker
with the way I had it before.
The physical contacts on the bs2 worked like they should have.
Well, until the next question, thank a great deal.
Thank You All!
--- In basicstamps@egroups.com, Tracy Allen <tracy@e...> wrote:
> >input 7
> >Loop:
> > debug bin in7,CR
> >goto Loop
> >Actually, the state reports mostly ones, but it is sometimes
erratic
> >and reports a mixture of 1's and 0's. Pressing the button has no
> >effect :-(
>
> As Steve P. pointed out, the erratic response indicates that the
pin
> is open, not connected to anything.
>
> >The voltmeter did reflect some light. The voltage went from 0 to
4.8
> >volts.
>
> That is a good sign!
>
> Where did you probe the (+) voltage? Do it right on the Stamp pin.
> Logical P7 is actually pin 12 of the 24-pin BS2 carrier. Or as
> Steve said, it is also physical pin 14 on the SX28 chip that is
> mounted on top of the carrier. I guess I should ask, are you using
> the 24 pin BS2 module--and what breadboard?
>
> >Here's a breadboard illustration incase I am not interpreting the
> >schematics correctly:
> >
> > _______ ______ ______
> >row 1 | | | _|_ | _|_
> >row 2 I/O pin _|_ _|_ _|_ 5V _|_ GND
>
> I do not quite understand this diagram. Which line is which part?
> The real test is the voltage probed at the I/O pin, pin 12 on the
> physical carrier board for logical P7.
>
> -- Tracy Allen
> electronically monitored ecosystems
> http://www.emesystems.com