1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

Mini-SumoBot Construction and Programming
Intermediate Electronics and Lilypad Where Electronics Meet Textiles Workshop with Lynne Bruning and Troy Robert Nachtigall Sponsored by Spark Fun and.
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
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.
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
Secret Door Knock Detector
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #13 Gateway To Space ASEN 1400 / ASTR 2500 Class #13 T-53.
Embedded Programming and Robotics
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 2 Topics: Serial Communication Programming Constructs: functions, loops and conditionals Digital Input.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Working with Arduino: Lesson #3: Force Sensitive Resistors EGN1007.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Switches & whiskers on the Arduino living with the lab lever arm switches mounted to Arduino © 2012 David Hall.
Microprocessors Tutorial 1: Arduino Basics
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
1 of 20 Core Arduino Workshop Chris Koehler and Brian Sanders Colorado Space Grant Consortium.
1 - Now let’s modify our sketch to add an analog input - Let’s use the potentiometer from HW #4 Arduino Overview:
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Microprocessors Tutorial 1: Arduino Basics
Arduino The Internet of Things: Using the Arduino to Teach Coding.
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
Microcontroller basics Embedded systems for mortals.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
: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 of 20 How to use the Compass A. Compass. 2 Compass: - Provides heading relative to Magnetic North, not true North HMC5883L V input - I2C (not.
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Assist. Prof. Rassim Suliyev - SDU 2017
Prototyping with Microcontrollers and Sensors
Lab 2: Arduino Sensors Topics: Arduino Sensor Reading, Display
Microcontroller basics
Microcontroller basics
Microprocessors Tutorial 1: Arduino Basics
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
Arduino Part 1 Topics: Microcontrollers Programming Basics
Control the color and brightness of an RGB LED with a Potentiometer
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Roller Coaster Design Project
Continuing with LED’s and Arduino
Arduino 101 Credit(s):
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Digital Input from Switches
Chapter 1 Introduction of Arduino
Arduino : Introduction & Programming
Programming 2: The Arduino IDE & First Sketches
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Arduino Uno circuit basics
Presentation transcript:

1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:

2 - Connect resistor row to GND on your Arduino Arduino Overview:

3 - Connect + lead of LED to Arduino pin 9 Arduino Overview:

4 - Modify sketch to have LED blink on pin 9 through your breadboard - Compile and Upload the code - Do the LEDs blink? - Switch pin number in sketch and hardware - Tinker until all teams here Arduino Overview:

5 - Understanding what is happening on pin 9 - High ( = 1 ) and Low ( = 0 ) state - Let’s use the Arduino Serial Monitor to verify - Change delay to 3 seconds Arduino Overview:

6 - Modify the sketch to add the following variable Arduino Overview:

7 - Modify the sketch to add the following to the setup Arduino Overview:

8 - Modify the sketch to add the following to the loop Arduino Overview:

9 - Compile and Upload your code - Verify blink is every 3 seconds then… - Click Serial Monitor icon Arduino Overview:

10 - “LED is 1 or 0” correspond with on or off of LED? Arduino Overview:

11 - Now let’s modify our sketch to add an analog input - Let’s use the potentiometer from HW #4 Arduino Overview:

12 - Connect the Red wire to +5V, Black to GND, and White to A0 Arduino Overview:

13 - Leave the LED connected to pin 9 but it won’t blink Arduino Overview:

14 - Modify your sketch to add the following variable Arduino Overview:

15 - Modify your sketch to add the following to your loop - Comment out all LED blink and Serial Print for LED Arduino Overview:

16 - Compile and Upload your code - Click Serial Monitor icon Arduino Overview:

17 - “A0 is ” should change as you turn the potentiometer Arduino Overview:

18 - What does this number mean? - What resolution is it? 8 bit, 10 bit, 16 bit? - Modify sketch to Serial Print both 10 bit value and corresponding voltage value - Recompile and upload - Tinker until everyone is at this point Arduino Overview:

19 - Let’s connect the A0 to the LED with software - Turn your potentiometer fully counterclockwise - What do you think will happen? Arduino Overview:

20 - Modify sketch to add the following line: Arduino Overview:

21 - Compile and Upload - Activate Serial Monitor - Begin turning potentiometer clockwise - What happens? - Why? - 10 bit vs. 8 bit?255 vs 1023? Look at the monitor… Arduino Overview:

22 - When 255 is hit, resets - Let’s map our 10 bit analog to a 8 bit digital - Add the following variable to your sketch Arduino Overview:

23 - Add the following lines to your loop Arduino Overview:

24 - Compile and Upload - Activate Serial Monitor - Begin turning potentiometer clockwise - What happens? = 1023? Arduino Overview:

25 - Potentiometer is acting like an analog sensor - We can now hook up any analog sensor and see its value (at least through serial) - What other sensors can we hook up? - Let’s add some… - But first let’s add the Protoshield Arduino Overview: