Introduction to the Arduino

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

Electrical team Arduino tutorial I BY: JOSHUA arduini
Lecture 1 – Arduino Basics
Lab7: Introduction to Arduino
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
How to use Arduino By: Andrew Hoffmaster.
Embedded Sumo 1T4 – 1T5 UTRA.
Re-programming the Simon Says with Arduino Linz Craig, Brian Huang.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Embedded Programming and Robotics Lesson 2 C Programming Refresher C Programming1.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
ProtoSnap Introduction to Arduino Casey Haskell, Pete Lewis, David Stillman, Jim Lindblom, Pete Dokter, Lindsay Levkoff, Trevor Zylstra.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Cascade switching of an LED EAS 199B Winter 2013.
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. ARDUINO BASICS Credit to: Sparkfun and Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson,
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
Arduino libraries Datatekniker Udvidet hardware/software.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino Training For You! Learn Programming at Your Own Pace! Chapter 1 A course developed from the text book: “Introduction to Arduino A Piece of Cake!”
:Blink Blink: Er. Sahil Khanna
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Introducing the Arduino Uno Presented by Dave Mawdsley, DACS Member, Linux SIG Member (wiring, programming and running a cute traffic light simulation)
Having fun with code, using Arduino in a middle school CS classroom
Arduino - Introduction
Arduino.
Getting Started: Building & Programming
Microcontroller basics
Dr. Kyung Eun Park Summer 2017
Val Manes Department of Math & Computer Science
Introduction to the Arduino
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Cascade switching of an LED
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Introduction to Arduino Microcontrollers
Roller Coaster Design Project
Introduction to Arduinos
Arduino 101 Credit(s):
using the Arduino to make LEDs flash
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
Introducing the Arduino Uno
Arduino : Introduction & Programming
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Arduino Uno circuit basics
Introduction to Arduinos
Arduino程式範例.
Introduction to Arduino IDE and Software
Presentation transcript:

Introduction to the Arduino Web site: http://www.arduino.cc/ Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software

What we’ll do with it: Communicate with it Program it Interface to it Build on it Learn to love it!

Communicate Single USB cable Provides power (5V) and coms

Install their software: arduino.cc/en/main/software Communicate Install their software: arduino.cc/en/main/software This is an “IDE”: Integrated Development Environment Text editor Compiler Loader helper

Interface to it The software works on PC’s and Macs You won’t do anything without this software

Program Arduino calls their programs “Sketches” These are lists of commands that the Arduino will execute There are lots of sample sketches available online for download and modification Once in the IDE, the sketch is uploaded to Arduino

Program The program consists of two parts (I have no idea why they use “void”): 1) the setup Establish what hardware will be used Initialize variables 2) the executables (loop) Controls Outputs Inputs storage

There are several ways to make conditional branches/loops: If else (like the BASIC IF/THEN) but uses {} for the “then” For (similar to BASIC FOR) but different syntax

We can interface using both digital or Analog inputs/outputs PinMode sets a pin to input or output digitalWrite sets the output high or low (1 or 0) Int digitalRead returns a 0 or 1 depending on whether the input is high or low It’s important to define the role before using the “digital” commands and don’t cross them.

For anything that provides a varying voltage as it’s signal, you’ll need an analog input 0-1024 for normal analog; how many bits is the A/D converter? It can also do a pseudo analog output (0-5V) using “pulse width modulation”; pretty clever

Please try to avoid clipping the leads on anything! If they are the same on the LEDs, you can’t tell the + from the – Bending is okay

Project #1: a blinking LED

We’ll let you cheat and use the breadboard sheet! But only for this one. You have to figure out the rest yourself.

Here is the code; let’s look it over: Comment section is a great idea Define the pin Turn it on; turn it off; repeat, repeat, repeat

Modify the program: Change blinking rate Blink two that alternate Change intensity (this uses the pulse width modulation)

Project #2: Run a motor Requires a transistor to provide more power Use the schematic; why is the diode there?