I can't get a simple switch to work, this is driving me mad.
If I wire it like this: http://arduino.cc/en/Tutorial/DigitalReadSerial each time i press the button the whole Arduino shuts down (on light goes off and use disconnects from windows). This seems like a short circuit to me but I don't know much about this stuff yet. I tried wiring it this way (and I thought this worked the night before): Pin 2 (logic) -> dip switch -> 10k resistor -> ground.
This doesn't seem to do anything. Other strange things that happen: When I touch the wire for pin 2 it reacts as if the button was pressed. Could there be something wrong with the arduino or the components I use (I tried dip switch and push button and new resistor)? I am using the example code for button.
Any help appreciated! ![]()