5,710
edits
Changes
→Part 2 - Simple Digital In
* Set up this circuit on your breadboard, with a switch, +5V, and current limiting resistor to ground. This is a basic digital input.
* With your multimeter, check the output voltage of the circuit (V between button and resistor):
** V_OUT with the button pressed____.** V_OUT with the button released____.
* Open the button example (File->Sketchbook->Examples->Digital->Button) in the Arduino software.
* Connect your switch circuit to one of the digital I/O pins on your Freeduino, and change <code>inputPin</code> in the button program to correspond to this pin. (Mine is Digital Pin #7)