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 →

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 →

SOS signal light: creating more complex timing While the previous circuit ended up being very similar to the project in chapter 2, we have accomplished something by now hooking it up to Arduino and the possibilities of code. Earlier in this chapter, we saw that we can make one light blink on and off with […]

Read More →