Arduino

Arduino is a small popular electronic machine that makes it very easy for people to make electronic things. It has two parts: a circuit board and a program that lets people tell the circuit board what to do. As of 2011, more than 300,000 Arduinos had been sold.[1]

The machine

The machine part is open source, which means that anybody can make their own version of an Arduino machine for free. An official Arduino costs around US$30.[2] The original Arduino is made by a company in Italy called "Smart Projects"[3] but other types of Arduino boards have been designed by SparkFun Electronics, an American company.[source?]

"Shields"

Sometimes, people will make other machines that go on top of an Arduino board and let the board do more things. These are called "Arduino shields". They can do different things, like let an Arduino machine connect to the internet, or add a touchscreen, or let an Arduino use GPS to figure out where it is. Shields can also combine and stack on top of each other.

Telling the Arduino what to do

Arduinos are programmed in C or C++, using a program also called Arduino. An example program to blink a light (LED) could look like this: <syntaxhighlight lang="c">

  1. define LED_PIN 13

void setup () {

 pinMode (LED_PIN, OUTPUT); // Enable pin 13 for digital output

}

void loop () {

 digitalWrite (LED_PIN, HIGH); // Turn on the LED
 delay (1000); // Wait one second (1000 milliseconds)
 digitalWrite (LED_PIN, LOW); // Turn off the LED
 delay (1000); // Wait one second

} </syntaxhighlight>

First, the code after "void setup() {" runs. This tells the Arduino that pin 13 is going to be sending data out. Most Arduino boards have an LED attached to pin 13. Then, the code after the "void loop () {" runs. When it reaches the bottom, the code after the "void loop" runs again, until the Arduino is turned off. This code makes the Arduino tell the LED to turn on, wait a second, then turn off and wait another second. Since it repeats, this code will turn the LED on and off again and again.

Arduino Media

References

  1. "How many Arduinos are "in the wild?" About 300,000". Adafruit Industries. May 15, 2011. Retrieved 2013-05-26.
  2. Kushner, David (26 October 2011). "The Making of Arduino". IEEE Spectrum: Technology, Engineering, and Science News.
  3. "smartprj, Electronics". Archived from the original on 2013-11-06. Retrieved 2013-11-11.