Programming, Serial and Virtual Prototyping. Code if ( You like semicolons ) { Stay here for intro to Arduino code } else { Join the MODKit group for.

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
ARDUINO FRAMEWORK.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
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.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
Intro to Programming and Microcontrollers. Activity Group into pairs and sit back-to-back. Pick one person who is going to draw. The other person will.
Finish your programs from last week STOPLIGHT CIRCUIT! You may need … – int – void setup() – void loop() – pinMode – digitalWrite – delay.
Embedded Programming and Robotics Lesson 2 C Programming Refresher C Programming1.
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.
Arduino Part 2 Topics: Serial Communication Programming Constructs: functions, loops and conditionals Digital Input.
Intro to Arduino Zero to Virtual Prototyping in Seven Hours
ProtoSnap Introduction to Arduino Casey Haskell, Pete Lewis, David Stillman, Jim Lindblom, Pete Dokter, Lindsay Levkoff, Trevor Zylstra.
Introduction to the Arduino
Intro to Arduino Programming. Draw your circuits before you build them From Arduino 330 Ohm From Arduino 330 Ohm From Arduino 330 Ohm.
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.
ATLAS 2013 Super Fast Intro to Arduino and Processing Materials by Lindsay Craig, David Stillman and Ben Leduc-Mills.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Code The Arduino Environment.
MediaLive 2012 Danger Shield, Arduino and Processing Materials by Lindsay Craig, David Stillman and Ben Leduc-Mills.
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.
Arduino Circuits and Code. int ledPin = 9; void setup() { pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, LOW); delay(1000); digitalWrite(ledPin,
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. ARDUINO BASICS Credit to: Sparkfun and Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson,
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Microcontroller basics Embedded systems for mortals.
Microcontroller basics Embedded systems for mortals.
Lecture 9: Introduction to Arduino Topics: Arduino Fundamentals, Bean Date: Mar 22, 2016.
ME 120: Arduino Programming Arduino Programming Part II ME 120 Mechanical and Materials Engineering Portland State University
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
Pulse-Width Modulation: Simulating variable DC output
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
Arduino Programming. THE ARDUINO IS A MICROCONTROLLER – A LOW COST, LOW PERFORMANCE COMPUTER.
Hacking on Arduino George Patterson
physical computing .2 – Day 3
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
MediaLive 2012 Danger Shield, Arduino and Processing
Wireless Cue Light Project
Microcontroller basics
Cascade switching of an LED
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
European Robotic LABoratory
UCD ElecSoc Robotics Club 2017/2018
Lab 1: Arduino Basics Topics: Arduino Fundamentals, First Circuit
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Control the color and brightness of an RGB LED with a Potentiometer
What is an Arduino ? Open Source electronic prototyping platform based on flexible easy to use hardware and software.
IoT Programming the Particle Photon.
Programming, Serial and Virtual Prototyping
1 Code
Using Photoresistors with an Arduino
CS-4540 Robotics - Lab 05 Switch inputs to the Arduino Uno
Implementing Switches Using Interrupts
Topics: Programming Constructs: loops & conditionals Digital Input
Arduino : Introduction & Programming
Programming 2: The Arduino IDE & First Sketches
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Appliace Remote Control
Arduino Motor Lab Inspired by NYU ITP project
Arduino 7 Segment Display Lab
SAURABH GINGADE.
Arduino程式範例.
Interrupts.
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Programming, Serial and Virtual Prototyping

Code if ( You like semicolons ) { Stay here for intro to Arduino code } else { Join the MODKit group for GUI code }

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 Activity with Circuit 7 Communication Troubleshooting circuits Debugging Code

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

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

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 ) ) ; }

Serial Communication: Circuit 7 code void loop ( ) { buttonState = digitalRead(inputPin); if (buttonState== HIGH){ digitalWrite (ledPin, LOW) } else{ digitalWrite(ledPin, HIGH); Serial.print (“button state is “); Serial.println ( buttonState ); }

Fritzing Now that you feel comfortable putting together circuits with your breadboard let’s talk about how to go from the breadboard to a PCB

Free Time The rest of the class is dedicated to free pursuit Do whatever you like and an instructor will help you with any questions or problems you may have, this includes questions about personal projects using Arduino Thank you for attending our Intro to Arduino class Please fill out a class feedback form before you leave

Questions?

Longbow Drive, Suite 200 Boulder, Colorado 80301