Search

Monday 9 April 2012

Arduino

Arduino hardware is programmed using a Wiring-based language (syntax and libraries), similar to C++ with some slight simplifications and modifications, and a Processing-based integrated development environment.

Arduino is a popular open-source single-board microcontroller, descendant of the open-source Wiring platform,designed to make the process of using electronics in multidisciplinary projects more accessible. The hardware consists of a simple open hardware design for the Arduino board with an Atmel AVR processor and on-board input/output support. The software consists of a standard programming language compiler and the boot loader that runs on the board.

Official hardware

Thirteen versions of the Arduino hardware have been commercially produced to date:[4]The original Arduino hardware is manufactured by the Italian company Smart Projects. Some Arduino-branded boards have been designed by the American company SparkFun Electronics.
  1. The Serial Arduino, programmed with a DE-9 serial connection and using an ATmega8
  2. The Arduino Extreme, with a USB interface for programming and using an ATmega8
  3. The Arduino Mini, a miniature version of the Arduino using a surface-mounted ATmega168
  4. The Arduino Nano, an even smaller, USB powered version of the Arduino using a surface-mounted ATmega168 (ATmega328 for newer version)
  5. The LilyPad Arduino, a minimalist design for wearable application using a surface-mounted ATmega168
  6. The Arduino NG, with a USB interface for programming and using an ATmega8
  7. The Arduino NG plus, with a USB interface for programming and using an ATmega168
  8. The Arduino Bluetooth, with a Bluetooth interface for programming using an ATmega168
  9. The Arduino Diecimila, with a USB interface and utilizes an ATmega168 in a DIL28 package (pictured)
  10. The Arduino Duemilanove ("2009"), using the ATmega168 (ATmega328 for newer version) and powered via USB/DC power, switching automatically
  11. The Arduino Mega, using a surface-mounted ATmega1280 for additional I/O and memory.
  12. The Arduino Uno, uses the same ATmega328 as late-model Duemilanove, but whereas the Duemilanove used an FTDI chipset for USB, the Uno uses an ATmega8U2 programmed as a serial converter.
  13. The Arduino Mega2560, uses a surface-mounted ATmega2560, bringing the total memory to 256 kB. It also incorporates the new ATmega8U2 (ATmega16U2 in revision 3) USB chipset.


A typical first program for a microcontroller simply blinks a LED on and off. In the Arduino environment, the user might write a program like this:

#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
}

No comments: