Arduino

From Wikipedia, the free encyclopedia

"LilyPad" redirects here. For other uses, see Lily pad (disambiguation) and Arduino (disambiguation).

Arduino

Arduino Logo.svg

Genuino Logo.svg

Arduino Uno - R3.jpg

Arduino Uno SMD R3

Developer

arduino.cc

Manufacturer

Arduino

Type

Single-board microcontroller

Operating system

None (default) / Xinu

CPU

Atmel AVR (8-bit),

ARM Cortex-M0+ (32-bit),

ARM Cortex-M3 (32-bit),

Intel Quark (x86) (32-bit)

Memory

SRAM

Storage

Flash, EEPROM

Website

www

Arduino (/ɑːrˈdwiːnoʊ/) is an open-source hardware and software company, project and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices. Its hardware products are licensed under a CC-BY-SA license, while software is licensed under the GNU Lesser General Public License (LGPL) or the GNU General Public License (GPL),[1] permitting the manufacture of Arduino boards and software distribution by anyone. Arduino boards are available commercially from the official website or through authorized distributors.

Arduino board designs use a variety of microprocessors and controllers. The boards are equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to various expansion boards ('shields') or breadboards (for prototyping) and other circuits. The boards feature serial communications interfaces, including Universal Serial Bus (USB) on some models, which are also used for loading programs. The microcontrollers can be programmed using the C and C++ programming languages, using a standard API which is also known as the "Arduino language". In addition to using traditional compiler toolchains, the Arduino project provides an integrated development environment (IDE) and a command line tool (arduino-cli) developed in Go.

The Arduino project began in 2005 as a tool for students at the Interaction Design Institute Ivrea in Ivrea, Italy,[2] aiming to provide a low-cost and easy way for novices and professionals to create devices that interact with their environment using sensors and actuators. Common examples of such devices intended for beginner hobbyists include simple robots, thermostats and motion detectors.

The name Arduino comes from a bar in Ivrea, Italy, where some of the founders of the project used to meet. The bar was named after Arduin of Ivrea, who was the margrave of the March of Ivrea and King of Italy from 1002 to 1014.[3]

Contents

- 1History

- 1.1Trademark dispute

- 1.2Post-dispute

- 2Hardware

- 2.1Official boards

- 2.2Shields

- 3Software

- 3.1IDE

- 3.2Pro IDE

- 3.3Sketch

- 3.4Libraries

- 3.5Operating Systems / Threading

- 4Applications

- 5Recognitions

- 6See also

- 7Notes

- 8References

- 9Further reading

- 10External links

History[edit]

The first Arduino ever made

The Arduino project was started at the Interaction Design Institute Ivrea (IDII) in Ivrea, Italy.[2] At that time, the students used a BASIC Stamp microcontroller at a cost of $50. In 2003 Hernando Barragán created the development platform Wiring as a Master's thesis project at IDII, under the supervision of Massimo Banzi and Casey Reas. Casey Reas is known for co-creating, with Ben Fry, the Processing development platform. The project goal was to create simple, low cost tools for creating digital projects by non-engineers. The Wiring platform consisted of a printed circuit board (PCB) with an ATmega168 microcontroller, an IDE based on Processing and library functions to easily program the microcontroller.[4] In 2005, Massimo Banzi, with David Mellis, another IDII student, and David Cuartielles, extended Wiring by adding support for the cheaper ATmega8 microcontroller. The new project, forked from Wiring, was called Arduino.[4]

The initial Arduino core team consisted of Massimo Banzi, David Cuartielles, Tom Igoe, Gianluca Martino, and David Mellis.[2]

Following the completion of the platform, lighter and less expensive versions were distributed in the open-source community. It was estimated in mid-2011 that over 300,000 official Arduinos had been commercially produced,[5] and in 2013 that 700,000 official boards were in users' hands.[6]

Trademark dispute[edit]

In early 2008, the five co-founders of the Arduino project created a company, Arduino LLC,[7] to hold the trademarks associated with Arduino. The manufacture and sale of the boards was to be done by external companies, and Arduino LLC would get a royalty from them. The founding bylaws of Arduino LLC specified that each of the five founders transfer ownership of the Arduino brand to the newly formed company.[citation needed]

At the end of 2008, Gianluca Martino's company, Smart Projects, registered the Arduino trademark in Italy and kept this a secret from the other co-founders for about two years. This was revealed when the Arduino company tried to register the trademark in other areas of the world (they originally registered only in the US), and discovered that it was already registered in Italy. Negotiations with Martino and his firm to bring the trademark under control of the original Arduino company failed. In 2014, Smart Projects began refusing to pay royalties. They then appointed a new CEO, Federico Musto, who renamed the company Arduino SRL and created the website arduino.org, copying the graphics and layout of the original arduino.cc. This resulted in a rift in the Arduino development team.[8][9][10]

In January 2015, Arduino LLC filed a lawsuit against Arduino SRL.[11]

In May 2015, Arduino LLC created the worldwide trademark Genuino, used as brand name outside the United States.[12]

At the World Maker Faire in New York on 1 October 2016, Arduino LLC co-founder and CEO Massimo Banzi and Arduino SRL CEO Federico Musto announced the merger of the two companies.[13] Around that same time, Massimo Banzi announced that in addition to the company a new Arduino Foundation would be launched as "a new beginning for Arduino.", but this decision was withdrawn later.[14][15]

In April 2017, Wired reported that Musto had "fabricated his academic record.... On his company's website, personal LinkedIn accounts, and even on Italian business documents, Musto was, until recently, listed as holding a PhD from the Massachusetts Institute of Technology. In some cases, his biography also claimed an MBA from New York University." Wired reported that neither university had any record of Musto's attendance, and Musto later admitted in an interview with Wired that he had never earned those degrees.[16] The controversy surrounding Musto continued when, in July 2017, he reportedly pulled many Open source licenses, schematics, and code from the Arduino website, prompting scrutiny and outcry.[17]

By 2017 Arduino AG owned many Arduino trademarks. In July 2017 BCMI, founded by Massimo Banzi, David Cuartielles, David Mellis and Tom Igoe, acquired Arduino AG and all the Arduino trademarks. Fabio Violante is the new CEO replacing Federico Musto, who no longer works for Arduino AG.[18][19]

Post-dispute[edit]

In October 2017, Arduino announced its partnership with ARM Holdings (ARM). The announcement said, in part, "ARM recognized independence as a core value of Arduino ... without any lock-in with the ARM architecture.” Arduino intends to continue to work with all technology vendors and architectures.[20]

Under Violante's guidance, the company started growing again and releasing new designs. The Genuino trademark was dismissed and all products were branded again with the Arduino name. As of February 2020, the Arduino community included about 30 million active users based on the IDE downloads.[21]

In August 2018, Arduino announced its new open source command line tool (arduino-cli), which can be used as a replacement of the IDE to program the boards from a shell.[22]

In February 2019, Arduino announced its IoT Cloud service as an extension of the Create online environment.[23]

Hardware[edit]

Arduino-compatible R3 Uno board made in China with no Arduino logo, but with identical markings, including "Made in Italy" text

Arduino is open-source hardware. The hardware reference designs are distributed under a Creative Commons Attribution Share-Alike 2.5 license and are available on the Arduino website. Layout and production files for some versions of the hardware are also available.

Although the hardware and software designs are freely available under copyleft licenses, the developers have requested the name Arduino to be exclusive to the official product and not be used for derived works without permission. The official policy document on use of the Arduino name emphasizes that the project is open to incorporating work by others into the official product.[24] Several Arduino-compatible products commercially released have avoided the project name by using various names ending in -duino.[25]

An early Arduino board[26] with an RS-232 serial interface (upper left) and an Atmel ATmega8 microcontroller chip (black, lower right); the 14 digital I/O pins are at the top, the 6 analog input pins at the lower right, and the power connector at the lower left.

Most Arduino boards consist of an Atmel 8-bit AVR microcontroller (ATmega8,[27] ATmega168, ATmega328, ATmega1280, or ATmega2560) with varying amounts of flash memory, pins, and features.[28] The 32-bit Arduino Due, based on the Atmel SAM3X8E was introduced in 2012.[29] The boards use single or double-row pins or female headers that facilitate connections for programming and incorporation into other circuits. These may connect with add-on modules termed shields. Multiple and possibly stacked shields may be individually addressable via an I²C serial bus. Most boards include a 5 V linear regulator and a 16 MHz crystal oscillator or ceramic resonator. Some designs, such as the LilyPad,[30] run at 8 MHz and dispense with the onboard voltage regulator due to specific form-factor restrictions.

Arduino microcontrollers are pre-programmed with a boot loader that simplifies uploading of programs to the on-chip flash memory. The default bootloader of the Arduino Uno is the Optiboot bootloader.[31] Boards are loaded with program code via a serial connection to another computer. Some serial Arduino boards contain a level shifter circuit to convert between RS-232 logic levels and transistor–transistor logic (TTL) level signals. Current Arduino boards are programmed via Universal Serial Bus (USB), implemented using USB-to-serial adapter chips such as the FTDI FT232. Some boards, such as later-model Uno boards, substitute the FTDI chip with a separate AVR chip containing USB-to-serial firmware, which is reprogrammable via its own ICSP header. Other variants, such as the Arduino Mini and the unofficial Boarduino, use a detachable USB-to-serial adapter board or cable, Bluetooth or other methods. When used with traditional microcontroller tools, instead of the Arduino IDE, standard AVR in-system programming (ISP) programming is used.

An official Arduino Uno R2 with descriptions of the I/O locations

The Arduino board exposes most of the microcontroller's I/O pins for use by other circuits. The Diecimila,[a] Duemilanove,[b] and current Uno[c] provide 14 digital I/O pins, six of which can produce pulse-width modulated signals, and six analog inputs, which can also be used as six digital I/O pins. These pins are on the top of the board, via female 0.1-inch (2.54 mm) headers. Several plug-in application shields are also commercially available. The Arduino Nano, and Arduino-compatible Bare Bones Board[32] and Boarduino[33] boards may provide male header pins on the underside of the board that can plug into solderless breadboards.

Many Arduino-compatible and Arduino-derived boards exist. Some are functionally equivalent to an Arduino and can be used interchangeably. Many enhance the basic Arduino by adding output drivers, often for use in school-level education,[34] to simplify making buggies and small robots. Others are electrically equivalent, but change the form factor, sometimes retaining compatibility with shields, sometimes not. Some variants use different processors, of varying compatibility.

Official boards[edit]

Further information: List of Arduino boards and compatible systems

The original Arduino hardware was manufactured by the Italian company Smart Projects.[35] Some Arduino-branded boards have been designed by the American companies SparkFun Electronics and Adafruit Industries.[36] As of 2016, 17 versions of the Arduino hardware have been commercially produced.

- Arduino RS232[37]

(male pins)

- Arduino Diecimila[38]

- Arduino Duemilanove[39]

(rev 2009b)

- Arduino Uno R2[40][41]

- Arduino Uno SMD R3[42]

- Arduino Leonardo[43]

- Arduino micro(AtMega 32U4)

- Arduino pro micro (AtMega32U4)

- Arduino Pro[44]

(No USB)

- Arduino Mega[45]

- Arduino Nano[46]

(DIP-30 footprint)

- Arduino LilyPad 00[47]

(rev 2007) (No USB)

- Arduino Robot[48]

- Arduino Esplora[49]

- Arduino Ethernet[50]

(AVR + W5100)

- Arduino Yún[51]

(AVR + AR9331)

- Arduino Due[52]

(ARM Cortex-M3 core)

Shields[edit]

Arduino and Arduino-compatible boards use printed circuit expansion boards called shields, which plug into the normally supplied Arduino pin headers.[53] Shields can provide motor controls for 3D printing and other applications, GNSS (satellite navigation), Ethernet, liquid crystal display (LCD), or breadboarding (prototyping). Several shields can also be made do it yourself (DIY).[54][55][56]

- Some shields offer stacking headers which allows multiple shields to be stacked on top of an Arduino board. Here, a prototyping shield is stacked on two Adafruit motor shield V2s.

- Screw-terminal breakout shield in a wing-type format, allowing bare-end wires to be connected to the board without requiring any specialized pins.

- Adafruit Datalogging Shield with a Secure Digital (SD) card slot and real-time clock (RTC) chip along with some space for adding components and modules for customization.

- Adafruit Motor Shield with screw terminals for connection to motors. Officially discontinued, this shield may still be available through unofficial channels.

- The Adafruit motor shield V2 uses I²C, requiring vastly fewer digital I/O pins than attaching each motor directly.

- A USB host shield which allows an Arduino board to communicate with a USB device such as a keyboard or a mouse.

Software[edit]

Arduino Software IDE

Arduino IDE - Blink.png

Screenshot of Arduino IDE showing Blink program

Developer(s)

Arduino Software

Stable release

1.8.13 / 16 June 2020; 12 months ago[57]

Repository

- github

Edit this at Wikidata

Written in

Java, C, C++

Operating system

Windows, macOS, Linux

Platform

IA-32, x86-64, ARM

Type

Integrated development environment

License

LGPL or GPL license

Website

www

A program for Arduino hardware may be written in any programming language with compilers that produce binary machine code for the target processor. Atmel provides a development environment for their 8-bit AVR and 32-bit ARM Cortex-M based microcontrollers: AVR Studio (older) and Atmel Studio (newer).[58][59][60]

IDE[edit]

The Arduino integrated development environment (IDE) is a cross-platform application (for Windows, macOS, and Linux) that is written in the Java programming language. It originated from the IDE for the languages Processing and Wiring. It includes a code editor with features such as text cutting and pasting, searching and replacing text, automatic indenting, brace matching, and syntax highlighting, and provides simple one-click mechanisms to compile and upload programs to an Arduino board. It also contains a message area, a text console, a toolbar with buttons for common functions and a hierarchy of operation menus. The source code for the IDE is released under the GNU General Public License, version 2.[61]

The Arduino IDE supports the languages C and C++ using special rules of code structuring. The Arduino IDE supplies a software library from the Wiring project, which provides many common input and output procedures. User-written code only requires two basic functions, for starting the sketch and the main program loop, that are compiled and linked with a program stub main() into an executable cyclic executive program with the GNU toolchain, also included with the IDE distribution. The Arduino IDE employs the program avrdude to convert the executable code into a text file in hexadecimal encoding that is loaded into the Arduino board by a loader program in the board's firmware.

Pro IDE[edit]

On October 18, 2019, Arduino Pro IDE (alpha preview) was released. The system still uses Arduino CLI (Command Line Interface), but improvements include a more professional development environment, autocompletion support, and Git integration.[62] The application frontend is based on the Eclipse Theia Open Source IDE. The main features available in the alpha release are:[63]

- Modern, fully featured development environment

- Dual Mode, Classic Mode (identical to the Classic Arduino IDE) and Pro Mode (File System view)

- New Board Manager

- New Library Manager

- Board List

- Basic Auto-Completion (Arm targets only)

- Git Integration

- Serial Monitor

- Dark Mode

Sketch[edit]

A sketch is a program written with the Arduino IDE.[64] Sketches are saved on the development computer as text files with the file extension .ino. Arduino Software (IDE) pre-1.0 saved sketches with the extension .pde.

A minimal Arduino C/C++ program consists of only two functions:[65]

- setup(): This function is called once when a sketch starts after power-up or reset. It is used to initialize variables, input and output pin modes, and other libraries needed in the sketch. It is analogous to the function main().[66]

- loop(): After setup() function exits (ends), the loop() function is executed repeatedly in the main program. It controls the board until the board is powered off or is reset. It is analogous to the function while(1).[67]

Blink example

Power LED and Integrated LED on Arduino Compatible Board

Power LED (red) and User LED (green) attached to pin 13 on an Arduino compatible board

Most Arduino boards contain a light-emitting diode (LED) and a current limiting resistor connected between pin 13 and ground, which is a convenient feature for many tests and program functions.[68] A typical program used by beginners, akin to Hello, World!, is "blink", which repeatedly blinks the on-board LED integrated into the Arduino board. This program uses the functions pinMode(), digitalWrite(), and delay(), which are provided by the internal libraries included in the IDE environment.[69][70][71] This program is usually loaded into a new Arduino board by the manufacturer.

# define LED_PIN 13                  // Pin number attached to LED.

void setup() {

pinMode(LED_PIN, OUTPUT);       // Configure pin 13 to be a digital output.

}

void loop() {

digitalWrite(LED_PIN, HIGH);    // Turn on the LED.

delay(1000);                    // Wait 1 second (1000 milliseconds).

digitalWrite(LED_PIN, LOW);     // Turn off the LED.

delay(1000);                    // Wait 1 second.

}

Libraries[edit]

The open-source nature of the Arduino project has facilitated the publication of many free software libraries that other developers use to augment their projects.

Operating Systems / Threading[edit]

There is a Xinu OS port for the atmega328p (Arduino Uno and others with the same chip), which includes most of the basic features.[72] The source code of this version is freely available.[73]

There is also a threading tool, named Protothreads. Protothreads are described as "... extremely lightweight stackless threads designed for severely memory constrained systems, such as small embedded systems or wireless sensor network nodes. Protothreads provide linear code execution for event-driven systems implemented in C. Protothreads can be used with or without an underlying operating system."[74]

Protothreading utilizes C switch() statement in a non-obvious way that is similar to Duff's device.[75] The following is skeleton code for protothreads:

#include "pt.h"

struct pt pt;

struct timer timer;

PT_THREAD(example(struct pt *pt))

{

PT_BEGIN(pt);

while(1) {

if(initiate_io()) {

timer_start(&timer;);

PT_WAIT_UNTIL(pt,

io_completed() ||

timer_expired(&timer;));

read_data();

}

}

PT_END(pt);

}

Applications[edit]

- Arduboy, a handheld game console based on Arduino

- Arduinome, a MIDI controller device that mimics the Monome

- Ardupilot, drone software and hardware

- ArduSat, a cubesat based on Arduino.

- C-STEM Studio, a platform for hands-on integrated learning of computing, science, technology, engineering, and mathematics (C-STEM) with robotics.

- Data loggers for scientific research.[76][77][78][79]

- OBDuino, a trip computer that uses the on-board diagnostics interface found in most modern cars

- OpenEVSE an open-source electric vehicle charger

- XOD, a visual programming language for Arduino

Recognitions[edit]

The Arduino project received an honorary mention in the Digital Communities category at the 2006 Prix Ars Electronica.[80]

The Arduino Engineering Kit won the Bett Award for “Higher Education or Further Education Digital Services” in 2020.[81]

See also[edit]

- Free and open-source software portal

- iconElectronics portal

- List of Arduino boards and compatible systems

- List of open-source hardware projects

Notes[edit]

1. ^ Diecimila means "ten thousand" in Italian

2. ^ Duemilanove means "two thousand and nine" in Italian

3. ^ Uno means "one" in Italian

Jump to search

Jump to navigation