Switch Problem

Hey guys. So I'm currently giving the IRremote library a shot and am having problems with my power switch apparently. http://www.arcfn.com/2009/09/arduino-universal-remote-record-and.htmlI'm setting everything up as shown by the schematic/picture in that link i.e. 5V to one pole of the button along with a 1000 ohm resistor while on the other end of the switch it is connected to input pin. The problem is that the serial monitor is showing output as if the switch is continuously pressed. I replaced the switch with 3 different ones but to no avail so it shouldn't be the fault of a faulty switch. Any ideas/suggestions?

What you are describing is not what is in the schematic.

The schematic shows 5v to switch, then switch to input and resistor, then resistor to ground.

What you describe is 5v to resistor, resistor to switch, switch to input.

Very different.

Bingo... There Should be a Mandatory 'junior' electronics course... especially the importance of making it look like the picture, as Exactly as possible. When the circuit works then you have proven the circuit and the Arduino... Then you can change it to what ever....

Doc

There are many 'Junior' courses. Making them mandatory might be a feat. I think it is incumbent on us to recommend appropriate courses to those without our experience. We all had some help in getting into this sport.

Here is a great place to start http://www.allaboutcircuits.com.

Mandatory perhaps also that I remember that these people haven't had it as avocation and ad-vocation for their whole (or nearly) lives electronics has been my hobby and profession for nearly 55 years. It never occurred to me that might have been his first time wiring anything up at all. For that oversight I apologize, sir.

Doc