Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.

Slides:



Advertisements
Similar presentations
Lecture 1 – Arduino Basics
Advertisements

Lab7: Introduction to Arduino
Mini-SumoBot Construction and Programming
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.
Intro to the Arduino Topics: The Arduino Digital IO Analog IO Serial Communication.
1 Colorado Space Grant Consortium Gateway To Space ASEN / ASTR 2500 Class #08 Gateway To Space ASEN / ASTR 2500 Class #08.
Colorado Space Grant Consortium Gateway To Space ASEN / ASTR 2500 Class #06 Gateway To Space ASEN / ASTR 2500 Class #06.
Colorado Space Grant Consortium Gateway To Space ASEN / ASTR 2500 Class #9 Gateway To Space ASEN / ASTR 2500 Class #9.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Introduction.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Intel Do-It-Yourself Challenge Hello World with the Arduino IDE Nicolas Vailliet Intel.
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
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
Intro to the Arduino Topics: The Arduino Digital IO
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
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.
Introduction to Arduino Microcontrollers. What is a Microcontroller ? What is a Microprocessor ? A Microcontroller (8 bit) does one task very fast and.
Microprocessors Tutorial 1: Arduino Basics
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
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.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
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.
Arduino Part 1 Topics: Microcontrollers
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Assist. Prof. Rassim Suliyev - SDU 2017
Scrolling LCD using Arduino.
Prototyping with Microcontrollers and Sensors
Microcontroller basics
Microprocessors Tutorial 1: Arduino Basics
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Arduino Development for Beginners
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
Arduino - Introduction
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Arduino and Grove LET’S START.
Week 5: Microcontrollers
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.
Intro to the Arduino Topics: The Arduino Digital IO
Arduino 101 Credit(s):
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
Arduino : Introduction & Programming
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Arduino Uno circuit basics
Arduino म्हणजे काय?.
Introduction to arduino
Introduction to Arduino IDE and Software
Presentation transcript:

Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58

-Announcements -Next Time -One Minute Report Questions -Arduino Part 1: Type and Blink Today:

-Everyone bring HW #4 and #5 hardware? -USB cables? -Arduino Unos? -Laptop? Announcements:

-Review Syllabus changes… Announcements:

Meetings tomorrow: -7:15Team 2 -8:00 -8:45 -9:30Team 4 -10:30Team 1 -11:15 -1:00Team 5 -1:45Team 6 -2:30Team 3 -3:15Team 8 - Announcements:

-Bring proposals, comments, and grade sheets -Bring questions and comments -Bring homework #6 – multiple copies if ordering from different locations -Bring budget -Whole team does not need to be there Announcements:

- Grades received yesterday - Need to add proposal and presentation scores - Will hand out passwords and post grades on Tuesday - Late 1 Minute Reports and those on different paper… Announcements:

General Proposal Comments: - HOBOs – Why? - GoPros – Many are using… - Imaging tests - Schedules are your plans to launch and your team's grade. Make them detailed. - Testing, like schedules must contain a lot of thought. Test everything and then test it some more. Test with mass sims. - Sensor calibration -Practice taking data and analyzing it - Requirements – RFP vs. Mission -Mission – WHY and WHAT -Arduino plan and usage – What you get - Industry examples Announcements:

General Presentation Comments: - Late vs. On-time - Practice vs. not practice - Eye Charts - Reading the slides and eye contact - Introductions - Answering questions - Overall, pretty good presentations Announcements:

Colorado Space Grant Consortium Next Time… Arduino Part 3 Next Time… Arduino Part 3

Colorado Space Grant Consortium Arduino Part 1: Type and Blink Class #3 Arduino Part 1: Type and Blink Class #3

18 What’s under the hood? Arduino Overview: USB 9V DC Power In 14 Digital Input/Outputs 6 Analog Inputs 3.3 V 5.0 VGND ATmega Bit ADC - 16 MHz - 32 KB Flash - I2C & SPI - 40 to +85C Serial I/O External Interrupts 5.0 V Regulator

19 Arduino Overview:

20 The Easy Stuff… Arduino Overview: USB 9V DC Power In 3.3 V 5.0 VGND 5.0 V Regulator

21 Arduino Overview:

22 The Chip… Arduino Overview: ATmega Bit ADC - 16 MHz - 32 KB Flash - I2C & SPI - 40 to +85C

23 Arduino Overview:

24 Other… Arduino Overview: 14 Digital Input/Outputs 6 Analog Inputs Serial I/O External Interrupts

25 Arduino Overview:

Digital: - Bits and Bytes, On/Off, 1 or 0, high or low, non-continuous 26 Red line – 2 bits = less info Green line – 4 bits = more info

Digital: -A state is one unique combination of bits -1 bit – 0 or 1 = 2 states = bits – 00, 01, 10, 11 = 4 states = bits – 0000, 0001….1111 = 16 States = bits = … = 256 states = bits = … = 65,536 states = More bits provides more precision over a given voltage range -If it is necessary to record small changes, more precision (bits), is required -8 bits is a byte -10 bits is how many bytes? 27

28 -What is the difference between 8-bit and 10-bit conversions? -An 8-bit conversion has 2 8 (0 to 255) possible values, -Resolution is 1/(2 8 – 1) * 5V = 1/255 * 5V = V Analog vs. Digital

29 -A 10-bit conversion has 2 10 (0 to 1024) possible values -Resolution is 1/(2 10 – 1) * 5V = 1/1023 * 5V = V -For a device that is very precise, a 10-bit conversion allows for a higher resolution on the data (high-range accelerometers) Analog vs. Digital

30

Analog vs. Digital 42.0 C temp Real World 4.20V = 42.0 C 0C = 0V 5V = 3 0V = 0 3 = 11 binary Storage for later use 50C = 5V 31 2 bit ADC 4.20V = 4 (4.20V / 5.0V * 4) = 3.36 = 3 Real World to Analog Voltage ADC = Analog to Digital Converter = Voltage to Binary

Sensor & Storage 42.0 C temp Real World 4.20V = 42.0 C 0C = 0V 5V = V = = binary Storage for later use 50C = 5V bit ADC 4.20V = 860 (4.20V / 5.0V * 1024) = = 860 Real World to Analog Voltage ADC = Analog to Digital Converter = Voltage to Binary

33 Let’s take it for a drive… Arduino Overview: USB 9V DC Power In 14 Digital Input/Outputs 6 Analog Inputs 3.3 V 5.0 VGND ATmega Bit ADC - 16 MHz - 32 KB Flash - I2C & SPI - 40 to +85C Serial I/O External Interrupts 5 V Regulator

34 - Launch the Arduino Software Sketch Arduino Overview:

35 - File/Examples/01.Basics/BareMinimum Arduino Overview:

36 Arduino Overview: Compile Upload Serial Monitor Message Box Code

37 Arduino Overview: Code

38 Arduino Overview: - Connect your Arduino Uno to your laptop via the USB cable - Select right board = Tools/Board/Arduino Uno

39 Arduino Overview: 1. Compile code and check for messages 2. Upload code to Arduino (checking communication with board) #1#1 #2#2

40 Arduino Overview: - Any problems? - Everyone, please wait until this has been completed

41 - Add the following to the sketch… Arduino Overview:

42 - Add the following to the sketch… Arduino Overview:

43 - Add the following to the sketch… Arduino Overview:

44 Arduino Overview: 1. Compile code and check for messages 2. Upload code to Arduino (checking communication with board) #1#1 #2#2

45 - Does LED blink? - Change the delay in the sketch and try again - Do you see a change? Arduino Overview:

46 - If you can Blink an LED, you can do anything - Why? Arduino Overview:

47 - Remove USB cable - Connect an LED (+ lead) to pin 13 and (- lead) to GND - Connect USB cable - Does LED light up? - What is happening? Arduino Overview:

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

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

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

51 - 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:

52 - 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:

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

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

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

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

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

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

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

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

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

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

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

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

65 - 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:

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

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

68 - 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:

69 - 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:

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

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

72 - 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: