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

Slides:



Advertisements
Similar presentations
RedBot An introduction to robotics using the SparkFun RedBot Board
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.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Pulse Detector Ramiro Duarte, Clayton Greenbaum Prof. Betty Lise Anderson.
Secret Door Knock Detector
Solar Energy Labs – Part 1 ENGR Today's Learning Objectives  After today's class, students will be able to: Describe and build both a calibration.
Working with Arduino: Lesson #2: Variable, Photo, and Force Sensitive Resistors EGN1007.
Introduction.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
Embedded Programming and Robotics Lesson 2 C Programming Refresher C Programming1.
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.
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.
Microprocessors Tutorial 1: Arduino Basics
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.
INTERFACING WEB SERVER WITH A ROBOT
1 of 20 Core Arduino Workshop Chris Koehler and Brian Sanders Colorado Space Grant Consortium.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Microprocessors Tutorial 1: Arduino Basics
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Temperature Sensing Temperature Bar Graph Project National Electronics Museum November 12, 2011 National Electronics Museum.
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
Arduino The Internet of Things: Using the Arduino to Teach Coding.
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
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.
Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture.
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.
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Arduino Programming. THE ARDUINO IS A MICROCONTROLLER – A LOW COST, LOW PERFORMANCE COMPUTER.
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Smart Newton Car By: Hui Zhu.
Arduino Uno – controlling LED strips
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Breadboards and LED’s with Arduino
Assist. Prof. Rassim Suliyev - SDU 2017
Prototyping with Microcontrollers and Sensors
Lab 2: Arduino Sensors Topics: Arduino Sensor Reading, Display
Dr. Kyung Eun Park Summer 2017
Microprocessors Tutorial 1: Arduino Basics
An Arduino Workshop A Microcontroller.
Sensors with Arduino A Microcontroller.
Liquid Crystal Display Arduino
Arduino - Introduction
Arduino Uno and sensors
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Analog Input through POT
Arduino and Grove LET’S START.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Secret Door Knock Detector
Teacher’s Note (do not include in student packet/slide show)
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Intro to Arduino Part 2 The Breadboard
Arduino and Grove LET’S START.
Introduction to arduino
Autonomous Delivery Robot
Presentation transcript:

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

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

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

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

5 - Take out the Protoshield your team built in HW#4 Arduino Overview:

6 - Carefully connect it with your unpowered Uno Arduino Overview:

7 - Carefully connect it with your unpowered Uno Arduino Overview:

8 - Carefully connect it with your unpowered Uno Arduino Overview:

9 - Carefully connect it with your unpowered Uno Arduino Overview:

10 - Reconnect Uno to laptop and verify all is working - Activate Serial Monitor Arduino Overview:

11 - Disconnect LED Breadboard and connect wire from pin 9 to JC3 on ProtoShield - Activate Serial Monitor Arduino Overview:

12 - Carefully move wire to JC3 to JC2… Arduino Overview:

13 - Add the Temperature Sensor to the Breadboard Arduino Overview:

14 - Connect Pin 1 to 5V Arduino Overview:

15 - Connect Pin 3 to GND Arduino Overview:

16 - Connect Pin 2 to A5 Arduino Overview:

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

18 - Modify your sketch to add the following lines in loop Arduino Overview:

19 - Compile and Upload - Activate Serial Monitor - Test by putting your finger on the sensor - Do you see a change? Arduino Overview:

20 - Convert to Voltage and display on Serial Monitor Arduino Overview:

21 - Should see this… Arduino Overview:

22 - Use spec sheet to convert to degrees C - 10 mV/C - Look for offset Arduino Overview:

V offset Arduino Overview:

24 - Modify your sketch Arduino Overview:

25 - Should see this… Arduino Overview:

26 - Data make sense? - How would you calibrate this sensor? Arduino Overview:

27 - Add the Humidity Sensor to the Breadboard Arduino Overview:

28 - Connect 5 V from Temp Sensor Arduino Overview:

29 - Connect GND from Temp Sensor Arduino Overview:

30 - Connect Out to A4 Arduino Overview:

31 - Modify Sketch Arduino Overview:

32 - Should get… Arduino Overview:

33 - Convert to voltage and understandable units from data sheet - Algebra Arduino Overview:

34 - Modify Sketch Arduino Overview:

35 - Should get… Arduino Overview:

36 - Data make sense? - How would you calibrate this sensor? Arduino Overview:

37 - Add the Accelerometer to the Breadboard Arduino Overview:

38 - Connect 3.3V to Vcc from UNO Arduino Overview:

39 - Connect GND to GND from Humidity Sensor Arduino Overview:

40 - Connect ZOUT to A3 on UNO Arduino Overview:

41 - Connect YOUT to A2 on UNO Arduino Overview:

42 - Connect XOUT to A1 on UNO Arduino Overview:

43 - Accelerometer has a few other settings we need address from the Data Sheet Arduino Overview:

44 - Sleep…Connect 3.3V from Accel Vcc to SLP Arduino Overview:

45 - Range…Connect 3.3V from Accel Vcc to GSEL Arduino Overview:

46 - Modify Sketch as follows Arduino Overview:

47 - Modify Sketch as follows Arduino Overview:

48 - Should get… Arduino Overview:

49 - Convert to voltage and understandable units from data sheet - Algebra Arduino Overview:

50 - Convert to Voltage = accelX * (5.0/1024) - Subtract offset and convert to Gs Gs = (voltage – 1.65) / (0.206) Arduino Overview:

51 Arduino Overview: - Modify Sketch as follows

52 Arduino Overview: - Modify Sketch as follows

53 Arduino Overview: - Should get…

54 Arduino Overview: - Hold X flat, should see 0 G

55 Arduino Overview: - Hold X arrow pointing up, should see 1.0 G

56 Arduino Overview: - Hold X arrow pointing down, should see G

57 Arduino Overview: - Repeat with Y and Z axes - May need to tape breadboard down - Do you need to Calibrate? - How would you do it?

58 - Add the Pressure Sensor to the Breadboard - Notice orientation Arduino Overview:

59 - Add the Pressure Sensor to the Breadboard - Notice orientation Arduino Overview:

60 - Connect Pin 2 to 5.0 Volts from your Humidity Sensor Arduino Overview:

61 - Connect Pin 4 to GND from your Humidity Sensor Arduino Overview:

62 - Connect Pin 3 to A0 on your UNO Arduino Overview:

63 - Modify your sketch… Arduino Overview:

64 - Modify your sketch… Arduino Overview:

65 - Compile and upload. Should see… Arduino Overview:

66 - Use ¼ sprinkler tubing to suck on pressure sensor - Do not blow as limit of this sensor is 15 psi Arduino Overview:

67 - Convert to voltage pV=A0*(5.0/1024) - Use spec sheet to solve for psi (Algebra) Pmax = 15 psi Pmin = 0 Vsupply = 5.0 V Output(V) = pV Arduino Overview:

68 - Solve for Pressure(applied) = Pa Pa = psi= (pV – (.1 * 5.0)) / (.8*5.0) / (15-0) psi= (pV –.5) / (.4 / 15) Arduino Overview:

69 - Modify your sketch… Arduino Overview:

70 - Modify your sketch…Suggest commenting out your accel and other sensor Serial.print statements Arduino Overview:

71 - Should see this… - Suck to zero? Arduino Overview: