Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 6 Digital Inputs
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Electrical team Arduino tutorial I BY: JOSHUA arduini
Lab7: Introduction to Arduino
Intermediate Electronics and Lilypad Where Electronics Meet Textiles Workshop with Lynne Bruning and Troy Robert Nachtigall Sponsored by Spark Fun and.
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)
Embedded Sumo 1T4 – 1T5 UTRA.
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
Re-programming the Simon Says with Arduino Linz Craig, Brian Huang.
Intro to the Arduino Topics: The Arduino Digital IO Analog IO Serial Communication.
Introduction.
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.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Intro to Arduino Zero to Prototyping in a Flash! Material designed by Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson, and Eli Santistevan.
Intro to Arduino Zero to Prototyping in a Flash! Material designed by Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson, and Eli Santistevan.
Embedded Programming and Robotics
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Intro to Arduino Zero to Virtual Prototyping in Seven Hours
Intro to the Arduino Topics: The Arduino Digital IO
LVTech / / IRC #makelv on freenode.net Jared Steckel AN INTRODUCTION.
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.
Introduction to the Arduino
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
L ILY P AD T RAINING C ENTENNIAL E LEMENTARY 2012 Material by Linz Craig Revision by Sarah Bloms Additional images by Modkit & Adam Meyer.
Code The Arduino Environment.
Programming, Serial and Virtual Prototyping. Code if ( You like semicolons ) { Stay here for intro to Arduino code } else { Join the MODKit group for.
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. ARDUINO BASICS Credit to: Sparkfun and Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson,
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
Microcontroller basics Embedded systems for mortals.
Intro to Arduino Basic Arduino John Wolf (WolfDenElectronics.com)
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Pulse-Width Modulation: Simulating variable DC output
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
Arduino - Introduction
Microcontroller basics
Microcontroller basics
Intro to the Arduino Created by
Arduino & its hardware interfacing
Microcontroller basics
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Arduino - Introduction
Control the color and brightness of an RGB LED with a Potentiometer
Analog Input through POT
Introduction to Arduinos
Roller Coaster Design Project
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
What is an Arduino ? Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Programming, Serial and Virtual Prototyping
Intro to the Arduino Topics: The Arduino Digital IO
1 Code
Arduino : Introduction & Programming
Intro to the Arduino by Someet Singh
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino 7 Segment Display Lab
Introduction to Arduinos
Introduction to arduino
Arduino程式範例.
Presented By,  Mamata Yadav (BE Elex & Comm.) Vice R&D Coordinator(HW), PCRT  Payal Shah (BE Elex & Comm.)  Ananta Das (BE Elex & Comm.) R&D Team,PCRT.
Interrupts.
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett

Overview of Class Getting Started: Installation and Applications Electrical: Components, Input and Output, Analog and Digital Trouble Shooting: Serial Communication Additional Teaching Tools: Giant Components and Breadboard, Free Teaching Materials

Arduino Board “Strong Friend” Created in Ivrea, Italy in 2005 by Massimo Banzi & David Cuartielles Open Source Hardware Atmel Processor Coding is accessible (C++, Processing, ModKit and MiniBloq)

The LilyPad Dev Board

Flip the Board Over Do you see the wires that are running to the sensors, LEDs, and buttons? The microcontroller can already talk to the inputs and outputs!

Board Type

Other Board Type

Serial Port / COM Port

Analog and Digital All Arduino signals are either Analog or Digital All computers including Arduino, only understand Digital It is important to understand the difference between Analog and Digital signals since Analog signals require an Analog to Digital conversion

Output Output is always Digital To Output a Digital signal (On or Off) use this code: digitalWrite ( pinNumber, value ); Where value is HIGH or LOW To output a signal that pretends to be Analog use this code: analogWrite ( pinNumber, value ); Where value is a number

Output Output is always Digital Using a Digital signal that pretends to be an Analog signal is called Pulse Width Modulation Use Pulse Width Modulation, or P.W.M., for anything that requires a signal between HIGH and LOW P.W.M. is available on Arduino pins # 3, 5, 6, 9, 10, and 11

Output Output is always Digital, even when it’s P.W.M. For P.W.M. the Arduino pin turns on then off very fast P.W.M. 25%P.W.M. 75% P.W.M. Signal rising

Input Input is any signal entering an electrical system Both digital and analog sensors are forms of input Input can also take many other forms: Keyboards, a mouse, infared sensors, biometric sensors, or just plain voltage from a circuit

Analog Input To connect an analog Input to your Arduino use Analog Pins # To get an analog reading: analogRead ( pinNumber ); Analog Input varies from 0 to 1023 on an Arduino

Digital Input To connect digital input to your Arduino use Digital Pins # 0 – 13 (Although pins # 0 & 1 are also used for serial) Digital Input needs a pinMode command: pinMode ( pinNumber, INPUT ); Make sure to use caps for INPUT To get a digital reading: digitalRead ( pinNumber ); Digital Input values are only HIGH (On) or LOW (Off)

Digital Sensors No matter what the sensor there are only two settings: On and Off Signal is always either HIGH (On) or LOW (Off) Voltage signal for HIGH will be a little less than 5V on your Uno Voltage signal for LOW will be 0V on most systems

Setup, Internal Pullup Resistors void setup ( ) { digitalWrite (12, HIGH); } You will need to create internal pullup resistors in setup, to do so digitalWrite the pin HIGH

Serial Communication Serial Communication is the transferring and receiving of information between two machines, the Arduino dedicates pin # 0 to receiving information and pin 1 to transferring information

Serial in Setup

Serial Monitor

Serial Communication: Serial Setup void setup ( ) { Serial.begin ( 9600 ) ; } In this case the number 9600 is the baud rate at which the computer and Arduino communicate

Serial Communication: Sending a Message void loop ( ) { Serial.print ( “Constructivism & “ ) ; Serial.println ( “Mechatronics” ) ; }

Serial Communication

Serial Communication: Serial Debugging void loop ( ) { int xVar = 10 ; Serial.print ( “Variable xVar is “ ) ; Serial.println ( xVar ) ; }

Serial Communication: Serial Troubleshooting void loop ( ) { Serial.print ( “Digital pin 9 reads “ ) ; Serial.println ( digitalRead ( 9 ) ) ; }

Making the World’s Worst Musical Instrument Now for some really crappy dubstep…. If we have time. Because, really, who has time for crappy dubstep?

MODKit: Graphical User Interface for intuitive coding of Arduino Developed by Ed Baafi and Collin Reisdorf

Fritzing Virtual Electrical Prototyping Project started in 2007 by the Interaction Design Lab at the University of Applied Science Potsdam, Germany Open Source Prototypes: Document, Share, Teach, Manufacture

Murphy’s Law If it can go wrong, it will… eventually. Be ready to improvise.

Developing Instructors They will surprise you. Being open will lead you to some interesting places. Have some student leaders. Get some laughs to make people comfortable.

Other Teaching Tools Sewing: Processing: Ohm’s Law Board: Giant Breadboard and Components: Additional Resources:

Questions?

Longbow Drive, Suite 200 Boulder, Colorado 80301