Absolutely basic question about switches

So I've made LEDs blink. Even used the analog write to make them fade. I want to do switches. I understand about push / pull up and the role of the 10k resistor. I know that you can turn internal resistors on.

But I want to check wiring as I'm paranoid about killing the Arduino.

I want a simple press switch that turns a light on. I have to set a pin - say 12 as an input. I set it as high at the start and that turns on the internal resistors. What wiring do I need to do?

Please keep it simple. Thanks

Welcome Robyn,

robynduckworth: Please keep it simple.

I'll try :) With the internal pull-up resistor active you just need to wire from pin 12 one side of the switch, and from the other side of the switch to GND. Thats' all there is to it.

Cheers ! Geoff

Fantastic. Worked - I'm just a bit paranoid about destroying things. Thanks

robynduckworth: Fantastic. Worked - I'm just a bit paranoid about destroying things. Thanks

So am I, but "learning by burning" will come to you anyway.

Paranoia is great for keeping you alert, but the moment it stops you from acting, it is too much. :grin: