Loading...
Pages: [1]   Go Down
Author Topic: pull up resistors and pull down resistors..  (Read 251 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 36
I know nothing.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do anybody have sound knowledge ?can even help me with some good links.. smiley-mr-green
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/Tutorial/DigitalPins
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 277
Posts: 25501
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How about this
http://www.thebox.myzen.co.uk/Tutorial/Inputs.html
Logged

Offline Offline
Full Member
***
Karma: 3
Posts: 230
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I volt this one http://www.thebox.myzen.co.uk/Tutorial/Inputs.html  It has real " sound knowledge"

Nice site Mike
Logged

Offline Offline
Edison Member
*
Karma: 114
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do anybody have sound knowledge ?

Very simple: they are there to "fix" the bus to a default logic / voltage level, and the fix can be easily overwhelmed by an output.
Logged

Central MN, USA
Offline Offline
Faraday Member
**
Karma: 35
Posts: 5921
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote from: dhenry link=topic=141722.msg1064266#msg1064266

Very simple: they are there to "fix" the bus to a default logic / voltage level, and the fix can be easily overwhelmed by an output.

but not so easily flipped/overwhelmed by random noise smiley
Logged


Offline Offline
God Member
*****
Karma: 10
Posts: 871
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's how i Think of it...

Your job is to look at a stream, if it's flowing with water, it's "on" or "1", if it's dry or very little water, it's "off" or "0"

So just precisely do you put down if it's neither of these 2 states? if it's flowing slowly and only a little water?   0 or 1?

well that's the problem at the reviving end.

the idea of the pull up, is to keep that stream always constantly flowing so that the detector can see a high signal.
the idea of the pull down, to keep the voltage at 0, to keep it from flowing, so the detector can clearly see (detector being you i might add in this analogy) the flow of water.

Without the resistors, it will float in between neither high voltage (5v) or low voltage (0v) the resistor just allows the detector to do it's job properly without false readings.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 279
Posts: 15316
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 Many beginners to electronics/arduino/microcontrollers do seem to struggle with the why for the need of pullup/pulldown resistors as used for arduino digital input pins. I think the basic problem is that in the software/logic world a signal is either a 1 or a 0, there is no other valid input state, but in the real world of electronics a digital input pin on a arduino, with nothing wired to it, does not know if it should be a 0 or a 1. It must therefore be wired such that in all cases at all time (like when a button is both being pressed and not being pressed) that there is always an electrical path to a voltage that is either 0 volts DC or +5vdc DC. A no connection is not a zero voltage, rather the input pin is just floating around in the world of the undefined.

Lefty/
 
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 277
Posts: 25501
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In the old days of TTL logic an unconnected input floated high and pull ups were used as part of good design practice.
The down side was that pulling down needed a very low resistor about 330R was the biggest that would work.
Now with CMOS that doesn't happen and you NEED to use pull ups. But pull downs can be in the order of 10K and still be effective.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 36
I know nothing.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank you guys for your help   smiley
Logged

Pages: [1]   Go Up
Print
 
Jump to: