Examples from Libraries

The Arduino Software (IDE) can be extended through the use of Libraries, just like most programming platforms, to provide extra functionality to your sketches. These tutorials walk your through the Examples of a number of libraries that come installed with the IDE, to open them click on the toolbar menu: File > Examples. To see the complete list of Libraries for Arduino boards (including Arduino Due, Arduino Zero and common contributed Libraries) visit the Library Reference page.

Download the latest Arduino Software, certain fuctions may not work in earlier versions.

Bridge Library

Enables the communication between the Linux processor and the AVR, more informations at the Reference for the Bridge Library page. For Arduino Yún.

  • Bridge: Access the pins of the board with a web browser.
  • Console ASCII Table: Demonstrates printing various formats to the Console.
  • Console Pixel: Control an LED through the Console.
  • Console Read: Parse information from the Console and repeat it back.
  • Datalogger: Store sensor information on a SD card.
  • File Write Script: Demonstrates how to write and execute a shell script with Process.
  • HTTP Client: Create a simple client that downloads a webpage and prints it to the serial monitor.
  • HTTP Client Console: Create a simple client that downloads a webpage and prints it to the serial monitor via WiFi using Console.
  • Mailbox Read Messages: Send text messages to the Arduino processor using REST API through a browser.
  • Process: Demonstrates how to use Process to run Linux commands.
  • Remote Due Blink: Demonstrates how to upload remotely a sketch on DUE boards.
  • Shell Commands: Use Process to run shell commands.
  • SpacebrewYun: See the Spacebrew documentation pages for more infos on the Examples listed in the Arduino Software.
  • Temboo: See the Temboo documentation section for more infos on the Examples listed in the Arduino Software.
  • Temperature Web Panel: Post sensor data on a webpage when requested by a browser.
  • Time Check: Get the time from a network time server and print it to the serial monitor.
  • WiFi Status: Runs a pre-configured script that reports back the strength of the current WiFi network.
  • Yun First Config: Connect your Yun product to the WiFi networks in a breeze using the Serial Monitor and answering a few simple questions within it.
  • Yun Serial Terminal: Access the Linux Terminal through the serial monitor.

EEPROM Library

Enables reading and writing to the permanent board storage, more information at the Reference for the EEPROM Library page. For all Arduino boards.

  • EEPROM Clear: Clear the bytes in the EEPROM.
  • EEPROM Read: Read the EEPROM and send its values to the computer.
  • EEPROM Write: Stores values from an analog input to the EEPROM.
  • EEPROM Crc: Calculates the CRC of EEPROM contents as if it was an array.
  • EEPROM Get: Get values from EEPROM and prints as float on serial.
  • EEPROM Iteration: Understand how to go through the EEPROM memory locations.
  • EEPROM Put: Put values in EEPROM using variable semantics.
  • EEPROM Update: Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life.

Esplora Library

Grants easy access to the various sensors and actuators of the Esplora, more information at the Reference for the Esplora Library page. For Arduino Esplora only. NOTE: Arduino Esplora is currently retired, therefore the documentation is no longer frequently updated.

BEGINNERS

EXPERTS

  • Esplora Kart: Use the Esplora as a controller to play a kart racing game.
  • Esplora Pong: Play Pong with the Esplora using Processing.
  • Esplora Remote: Connect the Esplora to Processing and control the outputs.
  • Esplora Table: Print the Esplora sensor information to a table format.

Ethernet Library

Enables network connection (local and Internet) using the Arduino Ethernet board or shield, more informations at the Reference for the Ethernet Library page. For all Arduino boards.

Firmata Library

Enables the communication with computer apps using a standard serial protocol. For all Arduino boards.

GSM Library

Enables GSM/GRPS network connection using the Arduino GSM Shield, more informations at the Reference for the GSM Library page. For all Arduino boards BUT Arduino DUE.

  • Gsm Web Client: Download the content of a website to your Arduino board through GPRS.
  • Gsm Web Server: Create a wireless web server through GPRS.
  • Make Voice Call: Get your shield to make phone calls from the Serial Monitor.
  • Send SMS: Use the Serial Monitor to type in SMS messages to different phone numbers.
  • Receive Voice Call: Check the status of the modem while getting voice calls.
  • Receive SMS: Read SMS messages and prompt them to the Serial Monitor.

TOOLS

I2S Library

Enables to use the I2S protocol on SAMD21 board like Arduino Zero, Arduino MKRZero and Arduino MKR1000.

  • SimpleTone: Generate a simple tone over I2S.
  • InputSerialPlotter: Show over the serial plotter the input waveform captured by an I2S microphone.

Liquid Crystal Library

Allows communication with alphanumerical liquid crystal displays (LCDs), more informations at the Reference for the LiquidCrystal Library page. For all Arduino boards.

  • Autoscroll: Shift text right and left.
  • Blink: Control of the block-style cursor.
  • Cursor: Control of the underscore-style cursor.
  • Display: Quickly blank the display without losing what's on it.
  • Hello World: Displays "hello world!" and the seconds since reset.
  • Scroll: Scroll text left and right.
  • Serial Display: Accepts serial input, displays it.
  • Set Cursor: Set the cursor position.
  • Text Direction: Control which way text flows from the cursor.

Robot Control Library

Enables easy access to the controls of the Arduino Robot Control board, more information at the Reference for the Robot Library page. For Arduino Robot only. NOTE: Arduino Robot is currently retired, therefore the documentation is no longer frequently updated.

EXPLORE

  • Logo: Tell your robot where to go through the on-board keyboard.
  • Line Following: Draw a racing track and get your robot to run on it.
  • Disco Bot: Turn your robot into an 8-bit jukebox and dance to the beat.
  • Compass: Plan a treasure hunt with this digital compass.
  • Inputs: Learn how to control the knob and the keyboard.
  • Wheel Calibration: Tune the wheels to perform even better.
  • Runaway Robot: Play tag with your robot using a distance sensor.
  • Remote Control: Reuse that old tv-remote to command the bot on distance.
  • Picture Browser: Want to use your own images? This is how.
  • Rescue: Train your robot to look for hidden pearls in a maze.
  • Hello User: Hack the robot's welcome demo and make your own.
  • Calibrate Compass: Calibrate the compass module so it rotates evenly.

SD Library

Enables reading and writing on SD cards, more informations at the Reference for the SD Library page. For all Arduino boards.

  • Card Info: Get info about your SD card.
  • Datalogger: Log data from three analog sensors to an SD card.
  • Dump File: Read a file from the SD card.
  • Files: Create and destroy an SD card file.
  • List Files: Print out the files in a directory on a SD card.
  • Read Write: Read and write data to and from an SD card.

Servo Library

Allows Arduino boards to control a variety of servo motors, more informations at the Reference for the Servo Library page. For all Arduino boards.

  • Knob: Control the position of a servo with a potentiometer.
  • Sweep: Sweep the shaft of a servo motor back and forth.

Software Serial Library

Enables serial communication on digital pins, more informations at the Reference for the Software Serial Library page. For all Arduino boards, BUT Arduino DUE.

SPI Library

Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus, more informations at the Reference for the SPI Library page. For all Arduino boards, BUT Arduino DUE.

Stepper Library

Allows Arduino boards to control a variety of stepper motors, more informations at the Reference for the Stepper Library page. For all Arduino boards.

TFT Library

Allows drawing text, images, and shapes on the Arduino TFT graphical display, more informations at the Reference for the TFT Library page. For all Arduino boards. NOTE: Arduino TFT LCD Screen is currently retired, therefore the documentation is no longer frequently updated.

ARDUINO

  • TFT Bitmap Logo: Read an image file from a micro-SD card and draw it at random locations.
  • TFT Color Picker: With three sensors, change the color of the TFT screen.
  • TFT Display Text: Read the value of a sensor and print it on the screen.
  • TFT Etch a Sketch: An Arduino version of the classic Etch-a-Sketch.
  • TFT Graph: Graph the values from a variable resistor to the TFT.
  • TFT Pong: An Arduino implementation of the classic game.

ESPLORA

Vidor libraries

The Arduino MKR Vidor 4000 libraries contain the APIs and the FPGA bitstream to implement low and high level functions that may fit your needs for peripherals communication, audio and video. Many of the functions have the same structure and syntax of the standard ones for SPI, UART and Wire. The following examples address new functions.

  • Enable Camera: Enables the video stream from a camera to an HDMI monitor.
  • Draw Logo: Draw the Arduino Logo on an HDMI monitor.
  • QR Recognition: The QR library allows you to recognize QR code markers and data.
  • Encoder: Manage easily quadrature encoders and never lose an impulse.

WiFi Library

Enables network connection (local and Internet) using the Arduino WiFi Shield, more information at the Reference for the WiFi Library page. For all Arduino boards. NOTE: Arduino WiFi Shield is currently retired, therefore the documentation is no longer frequently updated.

WiFi NINA Library

Enables network connection (local and Internet) using HTTP or HTTPS protocol using the Arduino MKR WiFi 1010, the Arduino UNO WiFi Rev.2 and the Arduino MKR VIDOR 4000, more information at the Reference for the WiFi NINA Library page.

WiFi Shield 101 Library

Enables network connection (local and Internet) using HTTP or HTTPS protocol using the Arduino WiFi Shield 101, more information at the Reference for the WiFi shield 101 Library page. Learn how to install this library on the Getting started page. Only for Wifi Shield 101.

Wire Library

Allows the communication between devices or sensors connected via Two Wire Interface Bus, more information at the Reference for the Wire Library page. For all Arduino boards.