Pages: [1]   Go Down
Author Topic: Pull Up or Pull Down; That is the question...  (Read 768 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 415
MEGA_Stick_II is here
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Pros, cons, differences, preferences of using a Pull up vs a Pull down resistor on an Arduino Digi pin.

Whats your preferance and why.
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

pull up, because they are in the chip
Logged


Central Indiana, USA
Offline Offline
Full Member
***
Karma: 0
Posts: 203
So many projects, so little time...and money!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think it really matters.  There are switches and other devices that will pull up or pull down depending on your preferences.  Personally, I agree that pull up is the way to go since it's already built-in to the chip.
Logged

New York
Offline Offline
Edison Member
*
Karma: 1
Posts: 1023
E != m*c^2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I like to think of it as analogous to the cup half-empty / half-full idea - depends on your character.
Logged

0
Offline Offline
Full Member
***
Karma: 6
Posts: 200
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It depends on the application... if you're using a one-wire, device, it NEEDS to be pull-up.
Logged

Boston, MA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1024
wiblocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Some times you can gain a reduction in current by choosing one over the other. It
depends on the application.

If all other things are equal I would favor a pull-up resistor. Some microcontrollers (like the Atmega series) have inputs that can be configured with an internal pull-up. Using only pull-ups (internal or external) does provide some consistency.

(* jcl *)

------------------------------------
www: http://www.wiblocks.com
twitter: http://twitter.com/wiblocks
blog: http://luciani.org


Logged


0
Offline Offline
Shannon Member
****
Karma: 199
Posts: 11650
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you're building your own PCB, pull down might be easier to route if you have a ground plane and no +5V plane.   For CMOS it doesn't really matter electrically.  For TTL it mattered much more as TTL could sink current easily but not source much, so pull-ups were favoured.

Some bright spark has probably invented the pull-sideways by now. smiley-wink
Logged

[ I won't respond to messages, use the forum please ]

0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 415
MEGA_Stick_II is here
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks everyone for their comments. The source of the question is simply couriousity. I am designig some new stuff and I want to keep my Digi-inputs pulled high.

I just started to wonder which was more efficiant, to source or to sink, but I guess that all depends on the situation and resistor used. I figured a pull-up would be more common.
Logged

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

Pull up when you can - pull down if you must.

As mentioned before with TTL you needed very low values of pull down resistors (about 300R) and that gave poor noise immunity and high currents. Where as a pull up could be 4k7.

With some drive circuits like that on the ones on the arduino chip it is irrelevant.
However the absolute chip limit of 200mA is the current limit of the supply pin. By mixing them you could have 200mA of current source and 200mA of current sink and still stay within the limits.  smiley

Actually keep that limit to less than 150mA anyway.
Logged

Pages: [1]   Go Up
Jump to: