elec_mech, I would lower the resistance of the pullup to about 4.7k to about 1k. if you have a meter, read the voltage at the micro pin and see if it is switching between 1/4 and 3/4 vcc.
Dave Purola,
N8NTA
elec_mech, I would lower the resistance of the pullup to about 4.7k to about 1k. if you have a meter, read the voltage at the micro pin and see if it is switching between 1/4 and 3/4 vcc.
Dave Purola,
N8NTA
Well, I had gone down as low as 1K with no luck, but I took your advice and checked the voltage going to the pin. With the 1K I read about 2.8V, which is just above the 2.5V limit. On a side note, I checked the voltage on the pin referenced to ground with nothing connected to the pin and read 1.56V. I have no clue why this is, especially since the pin is set as an input and its initial state is programmed to be low.
Anyways, since 2.8V was on the hairy edge, I tried two 1K's in parallel (500 ohms) and read about 3.2V. When I tried this, everything worked beautifully! Thanks for the advice Dave! I feel a little silly for not looking harder at the voltages on the pin earlier, but this is a learning experience. Thanks again!
-Tony
elec_mech, I still beleive there is something wrong with your setup because if the pin is programmed as an input, 10k ohms should pull it all the way up to + 5 volts and with that resistor in place putting a 1k ohm resistor to ground from the same pin should result in a voltage of about .3 volts or less.
Dave Purola,
N8NTA
Bookmarks