0% found this document useful (0 votes)
36 views

Arduino Basics

This document provides an introduction to the Arduino prototyping platform. It explains that Arduino is an open source hardware and software platform used for electronic prototyping. It describes Arduino boards, how to get started with the Arduino IDE by downloading and installing the environment and connecting a board, and how to select a serial port and board. It also gives an overview of digital input/output with Arduino, including using pinMode(), digitalRead(), and digitalWrite() functions to set pins as inputs or outputs and read from or write to pins. The document concludes by outlining an in-class exercise using a push button to turn an LED on and off via digital input/output.

Uploaded by

Samiul Suman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Arduino Basics

This document provides an introduction to the Arduino prototyping platform. It explains that Arduino is an open source hardware and software platform used for electronic prototyping. It describes Arduino boards, how to get started with the Arduino IDE by downloading and installing the environment and connecting a board, and how to select a serial port and board. It also gives an overview of digital input/output with Arduino, including using pinMode(), digitalRead(), and digitalWrite() functions to set pins as inputs or outputs and read from or write to pins. The document concludes by outlining an in-class exercise using a push button to turn an LED on and off via digital input/output.

Uploaded by

Samiul Suman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 15

Intro to the Arduino

What is an Arduino ?
• Open Source electronic prototyping
platform based on flexible easy to use
hardware and software.
Arduino Boards
Meet Arduino UNO
Getting Started
• Check out: http://arduino.cc/en/Guide/HomePage
1. Download & install the Arduino environment (IDE)
(not needed in lab)
2. Connect the board to your computer via the USB
cable
3. If needed, install the drivers (not needed in lab)
4. Launch the Arduino IDE
5. Select your board
6. Select your serial port
7. Open the blink example
8. Upload the program
Arduino IDE

See: http://arduino.cc/en/Guide/Environment for more information


Select Serial Port and Board
todbot.com/blog/bionicarduino
Input/Output

Image from Theory and Practice of Tangible User Interfaces at UC Berkley


Digital Input/Output

1
• Digital IO is binary
valued—it’s either on 0
or off, 1 or 0
• Internally, all
microprocessors are
digital, why?
Arduino Digital I/0

www.mikroe.com/chapters/view/1

pinMode(pin, mode)
Sets pin to either INPUT or OUTPUT
digitalRead(pin)
Reads HIGH or LOW from a pin
digitalWrite(pin, value)
Writes HIGH or LOW to a pin
Electronic stuff
Output pins can provide 40 mA of current
Writing HIGH to an input pin installs a 20KΩ pullup
Our First Program
IO Pins

Image from Theory and Practice of Tangible User Interfaces at UC Berkley


In-class Exercise 1: Digital IO

• Use a push-button to turn ON/Off LED


Thank you

You might also like