Adding the photocell step by step Place the photocell in the breadboard so that one end is in the same row of tie points as the jumper from analog pin A0. The other end should be in the row of tie points below that. The photocell doesn’t have an orientation so don’t worry about placing […]

Read More →

What’s the code in this sketch? Here’s the code for the ATG5_Button sketch. We’ll step through the details over the next few pages. (We’ve removed the code’s starting comments for the sake of brevity.) Initializing our code and variables ATG5_Button is different from our ATG3_Blink sketch in that there is code that happens before the […]

Read More →

Digital input: what is it again? Let’s say that you’re standing outside a friend’s house looking through the window at a light switch. Your friend calls to ask “Is the light switch on?” Your job is to tell the friend “yes the light switch is on” or “no, the light switch is off.” That’s exactly […]

Read More →

Adding a second button We are going to add another button to our circuit so we can play a 2 note tune on our mini-keyboard instrument. We will need another button, another 10 K ohm resistor and more jumpers. Remember to unplug your Arduino from your computer before you add to the circuit. Parts to […]

Read More →