Reading a pin with a very low voltage
ryfitzger227
Posts: 99
Hello everyone!
I've been working with the propeller the last couple of months, but something came up that I need to fix and it would be much simpler to just use a Stamp. This is very simple. All I need the stamp to do is wait for a pin to become high (=1) and then set another pin high to light an LED. The only problem I'm having is the stamp reading the input pin from the computer. When you say DEBUG ? IN0 it will equal zero (because it's connected to ground through a 10K pull-up resistor) but it won't equal 1 when it's supposed to (when the computer sends a short pulse of power). What's happening is the computer that is sending a short pulse of +5VDC is 725ft away. When I stuck a meter on the wire it measured anywhere from .3 volts to .7 volts. The first question I'm asking is that enough for the stamp to pick up? If not, how could I make it work? If you have any questions, just ask.
- Ryan
I've been working with the propeller the last couple of months, but something came up that I need to fix and it would be much simpler to just use a Stamp. This is very simple. All I need the stamp to do is wait for a pin to become high (=1) and then set another pin high to light an LED. The only problem I'm having is the stamp reading the input pin from the computer. When you say DEBUG ? IN0 it will equal zero (because it's connected to ground through a 10K pull-up resistor) but it won't equal 1 when it's supposed to (when the computer sends a short pulse of power). What's happening is the computer that is sending a short pulse of +5VDC is 725ft away. When I stuck a meter on the wire it measured anywhere from .3 volts to .7 volts. The first question I'm asking is that enough for the stamp to pick up? If not, how could I make it work? If you have any questions, just ask.
- Ryan
Comments
This might work (not well though) if you make the 5V pulse long enough ... a sizeable fraction of a second would be best.
The input from the remote system could be signal and ground, as shown above. Or, in the case of differential signalling, the two signal lines.
-Phil
When in doubt, carefully check all conductors in your 725 feet of old wire. They may not be the continuous pieces of shiny copper wire that they used to be. Broken strands of wire, high resistance connections, rats chewing on wire insulation, sun/weather damage, all takes its toll after a few years. I'd bet that merely replacing the wire will improve system performance considerably. If possible, replace with shielded cable and ground the shield.
-Phil