I'm following arduino project book from starter kit and i'm having a problem with the second lesson (not a very good start ).
I'm trying to setting up a simple circuit with switch and I follow step by step the book but it doesn't work.
This is my circuit : Imgur: The magic of the Internet
Why this is wrong? Why when i push on my switch nothign happens?
I try to correct the circuit and i move the switch.
This circuit works right.
Why the second works and the first not?
Arduino project book say that the switch must be like picture one.
Thanks for help.
The pictures seem to be there now.
I'd do a quick test to see if the problem is the switch. Just bypass the switch by putting the end of the resistor (currently in h21) to h19 on your breadboard to see if that works.
If that does not work, then the LED may be wrongly connected. The flat or shorter lead goes to the negative.
The classic error with those switched is to have them rotated accidentally through 90 degrees. Yours looks right, and anyway, in the case of that error, the light would be always on.
Try rotating the switch through 180 degrees to see if that helps. Also, push hard on the switch to check it is making contact.
If you have multimeter , connect it to see if it works when you push the button, and check which way the switch should be. As Cattledog is saying, the best way is to wire it diagonally.