1 / 72

Colorado Space Grant Consortium

Gateway To Space ASEN 1400 / ASTR 2500 Class #12. T-58. Colorado Space Grant Consortium. Today:. Announcements Next Time One Minute Report Questions Arduino Part 1: Type and Blink. Announcements:. Everyone bring HW #4 and #5 hardware? USB cables? Arduino Unos ? Laptop?.

roman
Download Presentation

Colorado Space Grant Consortium

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Today: • Announcements • Next Time • One Minute Report Questions • Arduino Part 1: Type and Blink

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

  4. Announcements: • Review Syllabus changes…

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

  6. 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

  7. 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…

  8. 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

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

  10. Announcements:

  11. Announcements:

  12. Announcements:

  13. Announcements:

  14. Announcements:

  15. Announcements:

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

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

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

  19. Arduino Overview:

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

  21. Arduino Overview:

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

  23. Arduino Overview:

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

  25. Arduino Overview:

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

  27. Digital: • A state is one unique combination of bits • 1 bit – 0 or 1 = 2 states = 21 • 2 bits – 00, 01, 10, 11 = 4 states = 22 • 4 bits – 0000, 0001….1111 = 16 States = 24 • 8 bits = 00000000….11111111 = 256 states = 28 • 16 bits = 0000000000000000…1111111111111111 • = 65,536 states = 216 • 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?

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

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

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

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

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

  33. Arduino Overview: - Launch the Arduino Software 1.0.1 - Sketch

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

  35. Arduino Overview: Compile Serial Monitor Upload Code Message Box

  36. Code Arduino Overview:

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

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

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

  40. Arduino Overview: - Add the following to the sketch…

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

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

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

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

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

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

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

  48. Arduino Overview: - Connect resistor row to GND on your Arduino

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

More Related