Shop OBEX P1 Docs P2 Docs Learn Events
Confusing Voltage Reading — Parallax Forums

Confusing Voltage Reading

JTBJTB Posts: 9
edited 2005-01-20 00:20 in BASIC Stamp
I am getting·a confusing voltage mesurement in the "What's A Microcontroller"·manual (page 79)·in the activity using the circuit set-up for "Readpushbutton State.bs2" program.··The Circuit is set-up with a pushbutton for the "active low" mode.· There is a 10k Ohm resistor (pull-up) connected between Vdd and the pole 4 of the normally open button.··This connection is shared with a220 Ohm resistor which is connected to P3

Here is the confusing part.· When the circuit is turned on I should be able to measure a voltage drop across the pull-up resistor.· Instead, I get zero volts across the resistor and 5 volts measured·between the top·and the bottom of the resistor·and ·Vss respectively.·· Its like the resistor is not even in the circuit.· I've checked to make sure connections a tight and even moved to alternate connection sites on the breadboard.· The resistor measures the correct resistance.· What am I missing?

Julian

Comments

  • dandreaedandreae Posts: 1,375
    edited 2005-01-19 22:04
    Hello,

    You don't have a path for current unless the button is pressed, therefore, you won't read a voltage.

    Dave





    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    www.parallax.com

    ·
  • JTBJTB Posts: 9
    edited 2005-01-20 00:20
    Dave

    Man do I feel stupid! Thanks for the info.

    Julian
Sign In or Register to comment.