Hi all,
My first post here on the forums and also a complete newbie to the world of Arduino. Recently I got myself a starter kit which I'm loving, but quickly got stuck on project 2!
TL;DR: Pressing the switch has no effect and even if I bypass the switch with a jumper nothing happens.
Here are some of the things that I've tried out so far:
- So I've wired up the board exactly as the book shows
- To eliminate any coding errors I used the code from the Examples section of the app
- Powered each LED directly on the breadboard, instead of using the Arduino's digital pins to switch it (still use the current limiting resistor) as per @pert
- Tested that all the LEDs can light up from the Arduino's digital pins by changing the initial code to:
if (switchstate == LOW) {
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
}
- Rewired the board to not use pin2 (in case that was the issue)
- Read all other posts on challenges with project 2