Connecting to arduinos

sirch2

Joined Jan 21, 2013
1,075
In that "button" example the resistor is a pull-down to ensure that the pin is 0 (gnd) unless the button is pressed in which case it would go high. Nothing "serious" is going to happen if you connect the digital pins from one Arduino to another without pull-up/down resistors but the results may not be reliable because the pins may float if no specific value is assigned to them.

The AVR processors have internal pull-up resistors and so you can use
Rich (BB code):
pinMode(pin, INPUT);           // set pin to input 
digitalWrite(pin, HIGH);       // turn on pullup resistors
to enable the interal pull-ups and you would not need the external resistor (assuming you could live with pull-up rather than pull-down as per teh "button" example
 
Top