Debugging: what do I do if the LED is not blinking? If your LED is blinking and the upload worked, move on to the next page. But what if the LED didn’t light up? Just like we used Debugging to search out any issues in our hardware and circuits, we will do the same throughout […]

Read More →

setup(): setting initial conditions We’ve gotten past the comments, and have seen that setup runs once at the beginning, whenever we turn on or reset the Arduino. Let’s now take a in depth look at the setup function in the ATG3_Blink example sketch we loaded: Setup has some parantheses attached to it: we will explain […]

Read More →

A schematic of the Arduino Now that we’ve run our code and lit the LED on the Arduino board, we’re going to attach our Arduino to a breadboard, build a circuit and run our ATG3_Blink sketch again. We want to learn how to control external components with our Arduino, not just light up an LED […]

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 →

/* Analog Input Demonstrates analog input by reading an analog sensor on analog pin 0 and turning on and off a light emitting diode(LED) connected to digital pin 13. The amount of time the LED will be on and off depends on the value obtained by analogRead(). The circuit: * Potentiometer attached to analog input […]

Read More →

/*   Blink   Turns on an LED on for one second, then off for one second, repeatedly.   Most Arduinos have an on-board LED you can control. On the Uno and   Leonardo, it is attached to digital pin 13. If you're unsure what   pin the on-board LED is connected to on your Arduino model, check   the documentation […]

Read More →

/*   Blink   Turns on an LED on for one second, then off for one second, repeatedly.   Most Arduinos have an on-board LED you can control. On the Uno and   Leonardo, it is attached to digital pin 13. If you're unsure what   pin the on-board LED is connected to on your Arduino model, check   the documentation […]

Read More →