CMSC838. Tangible Interactive Assistant Professor Computer Science
|
|
- Darrell Warren
- 5 years ago
- Views:
Transcription
1 CMSC838 Tangible Interactive Computing Week 01 Lecture 02 Jan 29, 2015 Arduino, Sensing, and Processing Human Computer Interaction Assistant Professor Computer Science
2 TODAY S LEARNING GOALS You ll get a taste of a lot of things today, some of which we will go over again ourselves; however, I encourage you to grab components from the HCIL Hackerspace and begin playing and experimenting with concepts, tools, and components to help you learn and reinforce your learning. 1. An overview of the course, course logistics, Maker culture, the Hackerspace, and assignments (especially IA2 & MP1) 2. Arduino basics such as digitalwrite, digitalread, analogwrite, and analogread 3. Light-emitting diode (LED) basics including: LEDs only allow current flow in one direction and that they require current limiting resistors. 4. How to read an LED datasheet and calculate the value of the resistor 5. How to use basic input components like trimpots and basic output components like a speaker 6. How to use the Serial println functionality in Arduino to communicate with your computer and build a simple interactive application in Processing
3 Making the invisible, visible.
4 First, some inspiration: you can do a lot of creative things with simple circuits, a microcontroller, and light
5 Timo Arnall, Jørn Knutsen, & Einar Martinussen, Immaterials: Light Painting WiFi,
6 Timo Arnall, Jørn Knutsen, & Einar Martinussen, Immaterials: Light Painting WiFi
7 Timo Arnall, Jørn Knutsen, & Einar Martinussen, Immaterials: Light Painting WiFi
8 Timo Arnall, Jørn Knutsen, & Einar Martinussen, Immaterials: Light Painting WiFi
9 Kuznetsov et al., Red Balloon, Green Balloon, Sensors in the Sky, UbiComp2011
10 air quality sensor + microcontroller + RGB LED + battery Kuznetsov et al.,
11 Kuznetsov et al., Red Balloon, Green Balloon, Sensors in the Sky, UbiComp2011
12 Helen Evans and Heiko Hansen, Nuage Vert,
13 Helen Evans and Heiko Hansen, Nuage Vert,
14 power-aware cord cord light pulsates & varies in intensity based on power draw [Gustafsson and Gyllenswärd, CHI2005]
15 HEATSINK thermistor senses water temperature, which feeds into a microcontroller that controls LEDs mounted around faucet Arroyo et al., Waterbot: exploring feedback and persuasive techniques at the sink, CHI 05
16 ello world intro arduino example
17 OPEN THE ARDUINO IDE
18 SELECT THE BOARD YOU ARE USING
19 SELECT THE COM PORT You will program your Arduino via the serial port over USB.
20 NOW, WE RE READY: LET S BLINK AN LED Arduinos typically have a single LED often called the L LED as this is how it s labeled on your board--that you can control from your sketches. The location of the L LED is circled below on the UNO and Leonardo. On the UNO and Leonardo, we can control this LED via D13 (digital pin 13). [source:
21 WRITING THE BLINK PROGRAM Goal: blink pin 13 (hooked up to the L LED on the board) once every 1 second.
22 WRITING THE BLINK PROGRAM Goal: blink pin 13 (hooked up to the L LED on the board) once every 1 second. The checkmark compiles and verifies the program
23 WRITING THE BLINK PROGRAM Goal: blink pin 13 (hooked up to the L LED on the board) once every 1 second. The checkmark compiles and verifies the program The right arrow sends the program to your Arduino
24 THE ENTIRE BLINK PROGRAM
25 SOME MODIFICATIONS I paramaterized the code a bit and added my own special prefix to track global variables.
26 [source:
27 ello world 2 blinky with external led
28 NOW, LET S BLINK OUR OWN LED
29 NOW, LET S BLINK OUR OWN LED To do this, we need to learn about two things: breadboards and LEDs.
30 readboards
31
32
33 BREADBOARDS: LOTS OF VARIETY [source: sparkfun.com]
34 BREADBOARDS: HOW THEY WORK [source:
35 BREADBOARDS: HOW THEY WORK wire1 wire2 wire3 wire4 [source:
36 BREADBOARDS: HOW THEY WORK wire1 wire2 wire10 wire9 wire8 wire7 wire6 wire5 wire13 wire12 wire11 wire18 wire17 wire16 wire15 wire14 wire20 wire19 wire23 wire22 wire21 wire28 wire27 wire26 wire25 wire24 wire30 wire29 wire34 wire33 wire32 wire31 wire3 wire4 [source:
37 [source: wire1 wire2 wire3 wire4 wire5 wire6 wire7 wire8 wire9 wire10 wire15 wire16 wire17 wire18 wire19 wire20 wire11 wire12 wire13 wire14 wire25 wire26 wire27 wire28 wire29 wire30 wire21 wire22 wire23 wire24 wire31 wire32 wire33 wire34 wire64 wire63 wire62 wire61 wire60 wire59 wire54 wire53 wire52 wire51 wire50 wire49 wire58 wire57 wire56 wire55 wire44 wire43 wire42 wire41 wire40 wire39 wire48 wire47 wire46 wire45 wire38 wire37 wire36 wire35 BREADBOARDS: HOW THEY WORK
38 BREADBOARDS: A LOOK INSIDE Breadboard now flipped over (you re looking at the back with the insulated backing peeled away) [source:
39 BREADBOARDS: A LOOK INSIDE A single strip of conductive metal from breadboard column [source:
40 BREADBOARDS: A QUICK TIP The power rails on either side are not connected, so if you want the same power source on both sides, you will need to connect the two sides with some jumper wires. Keep in mind that the markings are there just as a reference (you need not follow this convention if you have good reason not to). Two jumper wires used to connect the power rails on both sides. Always attach the + to + and the - to -. I also like to use black wire for - and red wire for +. [source:
41 DEFENSIVE BREADBOARDING Some Makers choose to only connect power on one side of the breadboard and ground on the other to reduce the chance of accidentally plugging a wire into the wrong socket and shorting out a circuit. Notice how the 5V and GND rails are only connected on opposite sides of the breadboard. This is to limit stupid mistakes! [source:
42 BREADBOARDS: LIKE LEGOS! Many breadboards have little nubbins and slots on the sides, and some even have them on the tops and bottoms. These allow you to connect multiple breadboards together to form the ultimate prototyping surface. [source: sparkfun.com]
43 BREADBOARDS VS. PERFBOARDS Sometimes novice Makers mistake breadboards for perfboards but they are completely different (though both allow you to hook up circuits in a semi-organized fashion).!= Breadboard Perfboard Breadboards are great for experimenting, and testing a circuit - but once you re happy with how it works, you ll probably want to transfer it to something that makes it a bit more permanent. In that case you can transfer your circuit to a perfboard. Perfboards require soldering. [source:
44 BREADBOARDS VS. PERFBOARDS Some perfboards have the same connections and hole spacings as a breadboard [source:
45 PERFBOARD USE [source:
46 NOW, LET S BLINK OUR OWN LED So, that s a quick intro to breadboards. Now we need to learn about LEDs.
47 Anode Cathode ight-emitting iodes (LEDs)
48 LEDS Anode LEDs have polarity: the long end is the positive lead Cathode [
49 LEDS Anode LEDs have polarity: the long end is the positive lead Cathode Helpful mnemonic: the long side is + and the negative side is -, so consider that the plus sign would be twice as long as the minus sign if its horizontal and vertical stroke were dissembled and placed end to end. [ Platt, Encyclopedia of Electronic Components]
50 LEDS Anode LEDs have polarity: the long end is the positive lead Cathode You cannot connect an LED directly to a battery or voltage source. You must include a resistor to limit the current flowing through the LED, otherwise the LED could burn out! [
51 LEDS Anode LEDs have polarity: the long end is the positive lead Cathode - + Long end of LED (anode) connected towards positive supply voltage Resistor Current limiting resistor to protect LED [
52 Current limiting resistor. An absolute must! + - Resistor
53 But how do we know what resistor value to select?
54 TRIAL AND ERROR! Makers know that their LEDs require current limiting resistors but they are often not so exact in selecting the theoretically optimal resistor. Instead, they pick a likely resistor value (e.g., 330Ω) and check the resulting brightness of their LEDs and iterate. See flow chart. Honestly, the easiest way to do this is via a variable resistor like a trimpot where you can adjust the resistance, find a good value, and then replace the trimpot with a permanent resistor of that value. This works fairly well in practice but it s important that you understand how to select an appropriate resistor as it involves key circuit skills like reading a datasheet and applying Ohm s law. [source:
55 - + Resistor SELECTING A CURRENT LIMITING RESISTOR Pseudo schematic Real schematic Though we ve been using the schematic representation on the left, the real electronics schematic representation is on the right. Both diagrams represent the same circuit. [source:
56 SELECTING A CURRENT LIMITING RESISTOR Using the circuit to the left, we need to know three values in order to determine the current limiting resistor value: 1. i : LED forward current in Amps (found in the LED datasheet) 2. Vf : LED forward voltage drop in Volts (found in the LED datasheet) 3. Vs : supply voltage Once you have obtained these three values, you can use this equation derived from Ohm s Law to find the value, in Ω, of the resistor: R = V s V f i [source:
57 Let s try an example
58
59
60 All we really need to know has been highlighted here by Sparkfun, but let s view the datasheet anyway as a learning exercise
61 LED DATASHEET
62 READING AN LED DATASHEET Forward Current: how much current your LED will be able to handle continuously. In this case, 20mA. Peak Forward Current: how much current the LED can sustain in short bursts. In this case, 30mA. Suggestion Using Current: not all data sheets provide this, but this company recommends operating the LED at 16-18mA for best performance Reverse Voltage: The maximum reverse voltage that the LED can sustain without damage (pay attention to this value if you often accidentally connect your LED anode to GND and cathode to VSS) Power Dissipation: The amount of power in milliwatts that the LED can use before taking damage [source:
63 READING AN LED DATASHEET Forward Voltage: The forward voltage is the voltage drop across the LED. You must reach this threshold to turn on the LED. In this case, 1.8V to 2.2V Wavelength: A precise way of explaining the color of the LED, in this case its nm LED Brightness: A measure of how bright the LED can get. The unit, millicandela (mcd), is standard for measuring the intensity of a light source. This LED has a luminous intensity of , which would make for a good indicator light (super bright LEDs can have 160, ,000mcd). Viewing Angle: Different style LEDs will incorporate different types of lenses, reflectors, or diffusers to concentrate light or spread it widely. [source:
64 EXAMPLE LED Using the circuit to the left, we need to know three values in order to determine the current limiting resistor value: 1. i : LED forward current in Amps. In this case, it s 20mA. 2. Vf : LED forward voltage drop in Volts (found in the LED datasheet). In this case, it s V, so let s say 2V. 3. Vs : supply voltage. In this case, let s say 5V (which is a common Arduino value) Once you have obtained these three values, you can use this equation derived from Ohm s Law to find the value, in Ω, of the resistor: R = V s V f i R = = 150 Ω [source:
65 EASY WAY TO TEST AN LED Just use a coin cell battery (e.g., a 3V) CR2025 or similar
66 SOME ADDITIONAL LED RESOURCES AddOhms #8 Current Limiting Resistors LED Current Limiting Resistors Electric Power
67 NOW, LET S BLINK OUR OWN LED So, that s a quick intro to breadboards and LEDs, let s get back to our example.
68 LET S HOOKUP OUR CIRCUIT The circuit is on the left and code is on the right
69 ello world 3 analogwrite and fading the LED
70 ARDUINO CODE: FADE THE LED ON/OFF
71 ello world 4 analogread to control the fade of the LED
72 ARDUINO CODE: FADE THE LED BASED ON ANALOGREAD Here, we will fade the LED based on the value of the analog input pin A0
73 HOW TO USE YOUR TRIMPOTS! You all have breadboard friendly trimpots, let s quickly learn a bit about them and how to use them in our circuits!
74 POTENTIOMETERS ARE EVERYWHERE! Used to adjust sensitivity, balance, input, output (especially in audio equipment)
75 HUGE VARIETY OF POTENTIOMETERS
76 SLIDE POTENTIOMETERS! [source:
77 SCHEMATIC SYMBOLS American Symbol European Symbol [source: Platt, Encyclopedia of Electronic Components: Volume 1, 2012]
78 THIS IS A BREADBOARD FRIENDLY TRIMPOT [source:
79 POTENTIOMETERS: HOW IT WORKS Inside the potentiometer is a single resistor and a wiper, which slides along the resisitive material. Externally, there are three pins: two pins connect to each end of the resistor while the third connects to the wiper.
80 POTENTIOMETERS: HOW IT WORKS Inside the potentiometer is a single resistor and a wiper, which slides along the resisitive material. Externally, there are three pins: two pins connect to each end of the resistor while the third connects to the wiper. B A W [source:
81 POTENTIOMETERS: HOW IT WORKS Inside the potentiometer is a single resistor and a wiper, which slides along the resisitive material. Externally, there are three pins: two pins connect to each end of the resistor while the third connects to the wiper. B A W If the resistive material in a potentiometer is of constant width and thickness, the electrical potential at the wiper will change in ratio with the rotation of the wiper and shaft (or with movement of a slider). [source:
82 POTENTIOMETERS: HOW IT WORKS B A W [source: Platt, Encyclopedia of Electronic Components: Volume 1, 2012]
83 FADE LED WITH A POTENTIOMETER Let s hookup the circuit first.
84 FADE LED WITH A POTENTIOMETER Let s hookup the circuit first. How would you write code to read the potentiometer value and then use this value to control the brightness of the LED?
85 FADE LED WITH A POTENTIOMETER The circuit is on the left and code is on the right
86 We can use Serial.println and the serial monitor to display our values Super useful for debugging!
87 ARDUINO SERIAL MONITOR Go to Tools -> Serial Monitor
88 ello world 5 Fading an LED and playing a tone
89 ARDUINO TONE() FUNCTION Generates a square wave of the specified frequency (and 50% duty cycle) on a pin. A duration can be specified, otherwise the wave continues until a call to notone(). The pin can be connected to a piezo buzzer or other speaker to play tones. Only one tone can be generated at a time. If a tone is already playing on a different pin, the call to tone() will have no effect. If the tone is playing on the same pin, the call will set its frequency. Use of the tone() function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega). It is not possible to generate tones lower than 31Hz. For technical details, see Brett Hagman's notes. [source
90 FADE LED AND PLAY TONE The circuit is on the left and code is on the right
91 ello world 6 interacting with processing
92 Open Processing and copy/paste the code from here:
93
94 PROCESSING ARDUINO GRAPH
95 PROCESSING ARDUINO GRAPH The sketch should run right away with one exception, the highlighted part. Note: the code below is a slightly modified version of the Arduino Graph with my own variable names and code formatting You must change the index in Serial.list()[4] to whatever port your Arduino is plugged into. How do you know? See next slide.
96 SELECTING THE RIGHT SERIAL PORT You can open up the Arduino IDE and go to Tools -> Port and simply count (starting from 0) until you get to the COM port that is connected to your Arduino. index 0 index 1 So, my UNO is on COM6, which will be index 1 in the Serial.list() array
97 SELECTING THE RIGHT SERIAL PORT The sketch should run right away with one exception, the highlighted part. Note: the code below is a slightly modified version of the Arduino Graph with my own variable names and code formatting Changed to index 1
98 PROCESSING ARDUINO GRAPH From Serial Monitor to fanciful visualization. Note: you cannot have them both open at the same time! If you have the Arduino Serial Monitor open, you will not be able to read the serial port with your Processing program!
99 Can you modify the code so that the graph color is based on the analog value?
100 PROCESSING ARDUINO GRAPH Let s modify this graph so that the color is based on the input
101 SCROLLING, RESIZABLE ARDUINO GRAPH You will need to make your graph resizable for IA2
102 Can you draw and move a box across the screen based on the analog value?
103 MY SILLY DRAW RECTANGLE EXAMPLE
104 MY IA2 ARDUINO GRAPH DEMO Trimpot 10k; $0.95 Touch Membrane Potentiometer; $12.95 Photocell; $1.50 Flexiforce Pressure Sensor (1lb); $19.95
105 Playtime
106
CMSC838. Tangible Interactive Assistant Professor Computer Science
CMSC838 Tangible Interactive Computing Week 01 Lecture 02 Jan 29, 2014 About You, Tangible Bits Discussion, & Hackerspace Tour Human Computer Interaction Laboratory @jonfroehlich Assistant Professor Computer
More informationCMSC838. Tangible Interactive Assistant Professor Computer Science. Week 11 Lecture 20 April 9, 2015 Motors
CMSC838 Tangible Interactive Computing Week 11 Lecture 20 April 9, 2015 Motors Human Computer Interaction Laboratory @jonfroehlich Assistant Professor Computer Science TODAY S LEARNING GOALS 1. Learn about
More informationFor this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.
Physics 222 Name: Exercise 6: Mr. Blinky This exercise is designed to help you wire a simple circuit based on the Arduino microprocessor, which is a particular brand of microprocessor that also includes
More informationLab 2: Blinkie Lab. Objectives. Materials. Theory
Lab 2: Blinkie Lab Objectives This lab introduces the Arduino Uno as students will need to use the Arduino to control their final robot. Students will build a basic circuit on their prototyping board and
More informationArduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014
AD32600 Physical Computing Prof. Fabian Winkler Fall 2014 Arduino Workshop 01 This workshop provides an introductory overview of the Arduino board, basic electronic components and closes with a few basic
More informationLab 2.4 Arduinos, Resistors, and Circuits
Lab 2.4 Arduinos, Resistors, and Circuits Objectives: Investigate resistors in series and parallel and Kirchoff s Law through hands-on learning Get experience using an Arduino hat you need: Arduino Kit:
More informationINA169 Breakout Board Hookup Guide
Page 1 of 10 INA169 Breakout Board Hookup Guide CONTRIBUTORS: SHAWNHYMEL Introduction Have a project where you want to measure the current draw? Need to carefully monitor low current through an LED? The
More informationVoltage Dividers a learn.sparkfun.com tutorial
Voltage Dividers a learn.sparkfun.com tutorial Available online at: http://sfe.io/t44 Contents Introduction Ideal Voltage Divider Applications Extra Credit: Proof Resources and Going Further Introduction
More informationWorkshop 9: First steps in electronics
King s Maths School Robotics Club Workshop 9: First steps in electronics 1 Getting Started Make sure you have everything you need to complete this lab: Arduino for power supply breadboard black, red and
More informationElectronic Components
Electronic Components Arduino Uno Arduino Uno is a microcontroller (a simple computer), it has no way to interact. Building circuits and interface is necessary. Battery Snap Battery Snap is used to connect
More informationDC CIRCUITS AND OHM'S LAW
July 15, 2008 DC Circuits and Ohm s Law 1 Name Date Partners DC CIRCUITS AND OHM'S LAW AMPS - VOLTS OBJECTIVES OVERVIEW To learn to apply the concept of potential difference (voltage) to explain the action
More informationBasic Electronics Course Part 2
Basic Electronics Course Part 2 Simple Projects using basic components Including Transistors & Pots Following are instructions to complete several electronic exercises Image 7. Components used in Part
More informationDemon Pumpkin APPROXIMATE TIME (EXCLUDING PREPARATION WORK): 1 HOUR PREREQUISITES: PART LIST:
Demon Pumpkin This is a lab guide for creating your own simple animatronic pumpkin. This project encourages students and makers to innovate upon the base design to add their own personal touches. APPROXIMATE
More informationCMSC838. Tangible Interactive Assistant Professor Computer Science
CMSC838 Tangible Interactive Computing Week 04 Lecture 05 Feb 17, 2014 Electronic Components Sensing and Sensors Human Computer Interaction Laboratory @jonfroehlich Assistant Professor Computer Science
More informationLesson 3: Arduino. Goals
Introduction: This project introduces you to the wonderful world of Arduino and how to program physical devices. In this lesson you will learn how to write code and make an LED flash. Goals 1 - Get to
More informationLEDs and Sensors Part 2: Analog to Digital
LEDs and Sensors Part 2: Analog to Digital In the last lesson, we used switches to create input for the Arduino, and, via the microcontroller, the inputs controlled our LEDs when playing Simon. In this
More informationHAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1
HAW-Arduino Sensors and Arduino 14.10.2010 F. Schubert HAW - Arduino 1 Content of the USB-Stick PDF-File of this script Arduino-software Source-codes Helpful links 14.10.2010 HAW - Arduino 2 Report for
More informationArduino An Introduction
Arduino An Introduction Hardware and Programming Presented by Madu Suthanan, P. Eng., FEC. Volunteer, Former Chair (2013-14) PEO Scarborough Chapter 2 Arduino for Mechatronics 2017 This note is for those
More informationAttribution Thank you to Arduino and SparkFun for open source access to reference materials.
Attribution Thank you to Arduino and SparkFun for open source access to reference materials. Contents Parts Reference... 1 Installing Arduino... 7 Unit 1: LEDs, Resistors, & Buttons... 7 1.1 Blink (Hello
More informationEK 307 Lab: Light-Emitting Diodes
EK 307 Lab: Light-Emitting Diodes Laboratory Goal: To explore the characteristics of the light emitting diode. Learning Objectives: Voltage, current, power, and instrumentation. Suggested Tools: Voltage
More informationExperiment #5 Series and Parallel Resistor Circuits
Experiment #5 Series and Parallel Resistor Circuits Objective: You will become familiar with the MB Board and learn how to build simple DC circuits. This will introduce you to series and parallel circuits
More informationFABO ACADEMY X ELECTRONIC DESIGN
ELECTRONIC DESIGN MAKE A DEVICE WITH INPUT & OUTPUT The Shanghaino can be programmed to use many input and output devices (a motor, a light sensor, etc) uploading an instruction code (a program) to it
More informationEGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE
EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 6: INTRODUCTION TO BREADBOARDS DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS GOAL: This section introduces
More informationObjectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink
Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink By the end of this session: You will know how to use an Arduino
More informationCoding with Arduino to operate the prosthetic arm
Setup Board Install FTDI Drivers This is so that your RedBoard will be able to communicate with your computer. If you have Windows 8 or above you might already have the drivers. 1. Download the FTDI driver
More informationintroduction to Digital Electronics Install the Arduino IDE on your laptop if you haven t already!
introduction to Digital Electronics Install the Arduino IDE 1.8.5 on your laptop if you haven t already! Electronics can add interactivity! Any sufficiently advanced technology is indistinguishable from
More informationUniversity of Jordan School of Engineering Electrical Engineering Department. EE 204 Electrical Engineering Lab
University of Jordan School of Engineering Electrical Engineering Department EE 204 Electrical Engineering Lab EXPERIMENT 1 MEASUREMENT DEVICES Prepared by: Prof. Mohammed Hawa EXPERIMENT 1 MEASUREMENT
More informationCURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet
Lab : Computer Engineering Software Perspective Sign-Off Sheet NAME: NAME: DATE: Sign-Off Milestone TA Initials Part 1.A Part 1.B Part.A Part.B Part.C Part 3.A Part 3.B Part 3.C Test Simple Addition Program
More informationEK 307 Lab: Light-Emitting Diodes. In-lab Assignment (Complete Level 1 and additionally level 2 if you choose to):
EK 307 Lab: Light-Emitting Diodes Laboratory Goal: To explore the characteristics of the light emitting diode. Learning Objectives: Voltage, Current, Power, and Instrumentation. Suggested Tools: Voltage
More informationPulse Width Modulation and
Pulse Width Modulation and analogwrite ( ); 28 Materials needed to wire one LED. Odyssey Board 1 dowel Socket block Wire clip (optional) 1 Female to Female (F/F) wire 1 F/F resistor wire LED Note: The
More informationMAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL
BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device
More information02 Digital Input and Output
week 02 Digital Input and Output RGB LEDs fade with PWM 1 Microcontrollers utput ransducers actuators (e.g., motors, buzzers) Arduino nput ransducers sensors (e.g., switches, levers, sliders, etc.) Illustration
More information// Parts of a Multimeter
Using a Multimeter // Parts of a Multimeter Often you will have to use a multimeter for troubleshooting a circuit, testing components, materials or the occasional worksheet. This section will cover how
More informationCongratulations on your purchase of the SparkFun Arduino ProtoShield Kit!
Congratulations on your purchase of the SparkFun Arduino ProtoShield Kit! Well, now what? The focus of this guide is to aid you in turning that box of parts in front of you into a fully functional prototyping
More informationThe answer is R= 471 ohms. So we can use a 470 ohm or the next higher one, a 560 ohm.
Introducing Resistors & LED s P a g e 1 Resistors are used to adjust the voltage and current in a circuit. The higher the resistance value, the more electrons it blocks. Thus, higher resistance will lower
More informationNano v3 pinout 19 AUG ver 3 rev 1.
Nano v3 pinout NANO PINOUT www.bq.com 19 AUG 2014 ver 3 rev 1 Nano v3 Schematic Reserved Words Standard Arduino ( C / C++ ) Reserved Words: int byte boolean char void unsigned word long short float double
More informationGuide to LED and Hobby Lighting Projects Documentation
Guide to LED and Hobby Lighting Projects Documentation Release 0.1.2 Brian Luft Nov 06, 2017 Contents 1 Set Your Goals and Expectations 3 1.1 Introduction...............................................
More informationMechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators
Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators Ahmed Okasha, Assistant Lecturer okasha1st@gmail.com Objective Have a
More informationLab 4 OHM S LAW AND KIRCHHOFF S CIRCUIT RULES
57 Name Date Partners Lab 4 OHM S LAW AND KIRCHHOFF S CIRCUIT RULES AMPS - VOLTS OBJECTIVES To learn to apply the concept of potential difference (voltage) to explain the action of a battery in a circuit.
More informationIntro to Electronics. Week 1
Intro to Electronics Week 1 1 What is included? DIY ELECTRONICS 2 Lights http://www.flickr.com/photos/oskay/3423822454/ Intro to Electronics, Week 1 Last modified April 16, 2012 3 Sounds http://www.flickr.com/photos/createdigitalmedia/3701158293/
More informationSten-Bot Robot Kit Stensat Group LLC, Copyright 2013
Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the
More informationLAB II. INTRODUCTION TO LAB EQUIPMENT
1. OBJECTIVE LAB II. INTRODUCTION TO LAB EQUIPMENT In this lab you will learn how to properly operate the oscilloscope Keysight DSOX1102A, the Keithley Source Measure Unit (SMU) 2430, the function generator
More informationAdafruit 16-channel PWM/Servo Shield
Adafruit 16-channel PWM/Servo Shield Created by lady ada Last updated on 2018-08-22 03:36:11 PM UTC Guide Contents Guide Contents Overview Assembly Shield Connections Pins Used Connecting other I2C devices
More informationInternet of Things Student STEM Project Jackson High School. Lesson 2: Arduino and LED
Internet of Things Student STEM Project Jackson High School Lesson 2: Arduino and LED Lesson 2: Arduino and LED Time to complete Lesson 60-minute class period Learning objectives Students learn about Arduino
More informationTHE INPUTS ON THE ARDUINO READ VOLTAGE. ALL INPUTS NEED TO BE THOUGHT OF IN TERMS OF VOLTAGE DIFFERENTIALS.
INPUT THE INPUTS ON THE ARDUINO READ VOLTAGE. ALL INPUTS NEED TO BE THOUGHT OF IN TERMS OF VOLTAGE DIFFERENTIALS. THE ANALOG INPUTS CONVERT VOLTAGE LEVELS TO A NUMERICAL VALUE. PULL-UP (OR DOWN) RESISTOR
More informationUniversity of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009
University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009 Lab 1 Power Amplifier Circuits Issued August 25, 2009 Due: September 11, 2009
More informationLAB I. INTRODUCTION TO LAB EQUIPMENT
1. OBJECTIVE LAB I. INTRODUCTION TO LAB EQUIPMENT In this lab you will learn how to properly operate the oscilloscope Agilent MSO6032A, the Keithley Source Measure Unit (SMU) 2430, the function generator
More informationSidekick Basic Kit for Arduino V2 Introduction
Sidekick Basic Kit for Arduino V2 Introduction The Arduino Sidekick Basic Kit is designed to be used with your Arduino / Seeeduino / Seeeduino ADK / Maple Lilypad or any MCU board. It contains everything
More informationThe Motor sketch. One Direction ON-OFF DC Motor
One Direction ON-OFF DC Motor The DC motor in your Arduino kit is the most basic of electric motors and is used in all types of hobby electronics. When current is passed through, it spins continuously
More informationLecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino
Lecture 4: Basic Electronics Lecture 4 Page: 1 Brief Introduction to Electronics and the Arduino colintan@nus.edu.sg Lecture 4: Basic Electronics Page: 2 Objectives of this Lecture By the end of today
More informationZX Distance and Gesture Sensor Hookup Guide
Page 1 of 13 ZX Distance and Gesture Sensor Hookup Guide Introduction The ZX Distance and Gesture Sensor is a collaboration product with XYZ Interactive. The very smart people at XYZ Interactive have created
More informationTwo Hour Robot. Lets build a Robot.
Lets build a Robot. Our robot will use an ultrasonic sensor and servos to navigate it s way around a maze. We will be making 2 voltage circuits : A 5 Volt for our ultrasonic sensor, sound and lights powered
More informationMeasuring Voltage, Current & Resistance Building: Resistive Networks, V and I Dividers Design and Build a Resistance Indicator
ECE 3300 Lab 2 ECE 1250 Lab 2 Measuring Voltage, Current & Resistance Building: Resistive Networks, V and I Dividers Design and Build a Resistance Indicator Overview: In Lab 2 you will: Measure voltage
More informationCommunity College of Allegheny County Unit 4 Page #1. Timers and PWM Motor Control
Community College of Allegheny County Unit 4 Page #1 Timers and PWM Motor Control Revised: Dan Wolf, 3/1/2018 Community College of Allegheny County Unit 4 Page #2 OBJECTIVES: Timers: Astable and Mono-Stable
More informationEXAMPLE. Use this jack for the red test lead when measuring. current from 0 to 200mA. Figure P-1
Digital Multimeters ON / OFF power switch Continuity / Diode Test Function Resistance Function Ranges from 200Ω to 200MΩ Transistor Test Function DC Current Function Ranges from 2mA to 20A. AC Current
More informationDigital Electronics & Chip Design
Digital Electronics & Chip Design Lab Manual I: The Utility Board 1999 David Harris The objective of this lab is to assemble your utility board. This board, containing LED displays, switches, and a clock,
More informationLAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY
LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY Objectives Preparation Tools To see the inner workings of a commercial mechatronic system and to construct a simple manual motor speed controller and current
More informationSetup Download the Arduino library (link) for Processing and the Lab 12 sketches (link).
Lab 12 Connecting Processing and Arduino Overview In the previous lab we have examined how to connect various sensors to the Arduino using Scratch. While Scratch enables us to make simple Arduino programs,
More informationBasic Electronics Refresher
Basic Electronics Refresher Current and Voltage Current is the rate of flowing electric charge in a conductor. Voltage is the potential difference (electric driving force) applied between two points to
More informationRodni What will yours be?
Rodni What will yours be? version 4 Welcome to Rodni, a modular animatronic animal of your own creation for learning how easy it is to enter the world of software programming and micro controllers. During
More informationBasic Electronics. Guoping Wang. March 22, Indiana University Purdue University Fort Wayne IEEE Fort Wayne Section
Basic Electronics Guoping Wang Indiana University Purdue University Fort Wayne IEEE Fort Wayne Section wang@ipfw.edu March 22, 2016 Table of Contents 1 Safety Guideline 2 Group Electronic Kits 3 Electronics
More informationBill of Materials: PWM Stepper Motor Driver PART NO
PWM Stepper Motor Driver PART NO. 2183816 Control a stepper motor using this circuit and a servo PWM signal from an R/C controller, arduino, or microcontroller. Onboard circuitry limits winding current,
More informationWorkshops Elisava Introduction to programming and electronics (Scratch & Arduino)
Workshops Elisava 2011 Introduction to programming and electronics (Scratch & Arduino) What is programming? Make an algorithm to do something in a specific language programming. Algorithm: a procedure
More informationArduino Intermediate Projects
Arduino Intermediate Projects Created as a companion manual to the Toronto Public Library Arduino Kits. Arduino Intermediate Projects Copyright 2018 Toronto Public Library. All rights reserved. Published
More informationExperiment 15: Diode Lab Part 1
Experiment 15: Diode Lab Part 1 Purpose Theory Overview EQUIPMENT NEEDED: Computer and Science Workshop Interface Power Amplifier (CI-6552A) (2) Voltage Sensor (CI-6503) AC/DC Electronics Lab Board (EM-8656)
More informationEXPERIMENT 3 Circuit Construction and Operational Amplifier Circuits
ELEC 2010 Lab Manual Experiment 3 PRE-LAB Page 1 of 8 EXPERIMENT 3 Circuit Construction and Operational Amplifier Circuits Introduction In this experiment you will learn how to build your own circuits
More informationModule: Arduino as Signal Generator
Name/NetID: Teammate/NetID: Module: Laboratory Outline In our continuing quest to access the development and debugging capabilities of the equipment on your bench at home Arduino/RedBoard as signal generator.
More informationCourse materials and schedule are at. positron.hep.upenn.edu/p364
Physics 364, Fall 2014, Lab #1 Name: (using breadboards; measuring voltage, current, and resistance) Wednesday, August 27 (section 401); Thursday, August 28 (section 402) Course materials and schedule
More informationEE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter
EE283 Electrical Measurement Laboratory Laboratory Exercise #7: al Counter Objectives: 1. To familiarize students with sequential digital circuits. 2. To show how digital devices can be used for measurement
More informationEE320L Electronics I. Laboratory. Laboratory Exercise #4. Diode Rectifiers and Power Supply Circuits. Angsuman Roy
EE320L Electronics I Laboratory Laboratory Exercise #4 Diode Rectifiers and Power Supply Circuits By Angsuman Roy Department of Electrical and Computer Engineering University of Nevada, Las Vegas Objective:
More informationElectronics & Control
Electronics & Control Analogue Electronics Introduction By the end of this unit you should be able to: Know the difference between a series and parallel circuit Measure voltage in a series circuit Measure
More informationAPDS-9960 RGB and Gesture Sensor Hookup Guide
Page 1 of 12 APDS-9960 RGB and Gesture Sensor Hookup Guide Introduction Touchless gestures are the new frontier in the world of human-machine interfaces. By swiping your hand over a sensor, you can control
More informationEE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino
EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs 10-11 Introduction to Arduino In this lab we will introduce the idea of using a microcontroller as a tool for controlling
More informationLab 4 Ohm s Law and Resistors
` Lab 4 Ohm s Law and Resistors What You Need To Know: The Physics One of the things that students have a difficult time with when they first learn about circuits is the electronics lingo. The lingo and
More informationARDUINO / GENUINO. start as professional
ARDUINO / GENUINO start as professional . ARDUINO / GENUINO start as professional short course in a book MOHAMMED HAYYAN ALSIBAI SULASTRI ABDUL MANAP Publisher Universiti Malaysia Pahang Kuantan 2017 Copyright
More informationEE43 43/100 Fall Final Project: 1: Audio Amplifier, Part Part II II. Part 2: Audio Amplifier. Lab Guide
EE 3/00 EE FINAL PROJECT PROJECT:AN : AUDIO AUDIO AMPLIFIER AMPLIFIER Part : Audio Amplifier Lab Guide In this lab we re going to extend what you did last time. We re going to use your AC to DC converter
More informationOnwards and Upwards, Your near space guide
The NearSys One-Channel LED Photometer is based on Forest Mims 1992 article (Sun Photometer with Light-emitting Diodes as Spectrally selective Filters) about using LEDs as a narrow band photometer. The
More informationPotentiometer Tutorial Cornerstone Electronics Technology and Robotics I Week 8
Potentiometer Tutorial Cornerstone Electronics Technology and Robotics I Week 8 Electricity and Electronics, Section 3.5, Potentiometers: o Potentiometers: A potentiometer is a type of variable resistor
More informationElectronics. RC Filter, DC Supply, and 555
Electronics RC Filter, DC Supply, and 555 0.1 Lab Ticket Each individual will write up his or her own Lab Report for this two-week experiment. You must also submit Lab Tickets individually. You are expected
More information2-Terminal Device Characteristics and Diode Characterization
Laboratory-1 2-Terminal Device Characteristics and Diode Characterization Introduction The objectives of this experiment are to learn methods for characterizing 2- terminal devices, such as diodes, observe
More informationComputational Crafting with Arduino. Christopher Michaud Marist School ECEP Programs, Georgia Tech
Computational Crafting with Arduino Christopher Michaud Marist School ECEP Programs, Georgia Tech Introduction What do you want to learn and do today? Goals with Arduino / Computational Crafting Purpose
More informationPrelab: Introduction and Greenhouse Construction
Prelab: Introduction and Greenhouse Construction In this lab, you will create a PID control system that will regulate temperature and humidity of a greenhouse-like enclosure. You will learn the concepts
More informationARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology
ARDUINO / GENUINO start as professional short course in a book faculty of engineering technology Publisher Universiti Malaysia Pahang Kuantan 2017 Copyright Universiti Malaysia Pahang, 2017 First Published,
More informationUnit 3: Introduction to Op- amps and Diodes
Unit 3: Introduction to Op- amps and Diodes Differential gain Operational amplifiers are powerful building blocks conceptually simple, easy to use, versatile, and inexpensive. A great deal of analog electronic
More informationTouch Potentiometer Hookup Guide
Page 1 of 14 Touch Potentiometer Hookup Guide Introduction The Touch Potentiometer, or Touch Pot for short, is an intelligent, linear capacitive touch sensor that implements potentiometer functionality
More informationME 461 Laboratory #5 Characterization and Control of PMDC Motors
ME 461 Laboratory #5 Characterization and Control of PMDC Motors Goals: 1. Build an op-amp circuit and use it to scale and shift an analog voltage. 2. Calibrate a tachometer and use it to determine motor
More informationA BASIC UNDERSTANDING OF LED LIGHTING FOR MINIATURES
A BASIC UNDERSTANDING OF LED LIGHTING FOR MINIATURES Why use LEDs for miniature lighting? There has been a growing interest in the use of LEDs (Light Emitting diodes) for lighting in miniatures. I feel
More informationMUSIC RESPONSIVE LIGHT SYSTEM
MUSIC RESPONSIVE LIGHT SYSTEM By Andrew John Groesch Final Report for ECE 445, Senior Design, Spring 2013 TA: Lydia Majure 1 May 2013 Project 49 Abstract The system takes in a musical signal as an acoustic
More informationIntroduction to Electronics and Breadboarding Circuits
Introduction to Electronics and Breadboarding Circuits What we're going to learn today: What is an electronic circuit? What kind of power is needed for these projects? What are the fundamental principles
More informationEE283 Laboratory Exercise 1-Page 1
EE283 Laboratory Exercise # Basic Circuit Concepts Objectives:. To become familiar with the DC Power Supply unit, analog and digital multi-meters, fixed and variable resistors, and the use of solderless
More informationNever power this piano with anything other than a standard 9V battery!
Welcome to the exciting world of Digital Electronics! Who is this kit intended for? This kit is intended for anyone from ages 13 and above and assumes no previous knowledge in the field of hobby electronics.
More informationAN2129 APPLICATION NOTE
Introduction AN229 APPLICATION NOTE Thanks to the high efficiency and reliability, super high brightness LEDs are becoming more and more important when compared to conventional light sources. Although
More informationElectronics Technology and Robotics I Week 5 Resistors and Potentiometers
Electronics Technology and Robotics I Week 5 Resistors and Potentiometers Administration: o Prayer o Turn in quiz o Using two switches, design a circuit that correspond to an AND gate. Resistors: o Function:
More informationSo you just want to light up an LED. What resistor should you use?
Resistors for LEDs Basics: Picking Resistors for LEDs evilmadscientist.com/2012/resistors-for-leds/ Lenore EdmanAugust 29, 2012 So you just want to light up an LED. What resistor should you use? Maybe
More informationLEVEL A: SCOPE AND SEQUENCE
LEVEL A: SCOPE AND SEQUENCE LESSON 1 Introduction to Components: Batteries and Breadboards What is Electricity? o Static Electricity vs. Current Electricity o Voltage, Current, and Resistance What is a
More informationBreadboard Primer. Experience. Objective. No previous electronics experience is required.
Breadboard Primer Experience No previous electronics experience is required. Figure 1: Breadboard drawing made using an open-source tool from fritzing.org Objective A solderless breadboard (or protoboard)
More informationTWEAK THE ARDUINO LOGO
TWEAK THE ARDUINO LOGO Using serial communication, you'll use your Arduino to control a program on your computer Discover : serial communication with a computer program, Processing Time : 45 minutes Level
More informationLine-Following Robot
1 Line-Following Robot Printed Circuit Board Assembly Jeffrey La Favre October 5, 2014 After you have learned to solder, you are ready to start the assembly of your robot. The assembly will be divided
More informationIndex. n A. n B. n C. Base biasing transistor driver circuit, BCD-to-Decode IC, 44 46
Index n A Android Droid X smartphone, 165 Arduino-based LCD controller with an improved event trigger, 182 with auto-adjust contrast control, 181 block diagram, 189, 190 circuit diagram, 187, 189 delay()
More informationCECS LAB 4 Prototyping Series and Parallel Resistors
NAME: POSSIBLE POINTS: 10 NAME: NAME: DIRECTIONS: We are going to step through the entire process from conceptual to a physical prototype for the following resistor circuit. STEP 1 - CALCULATIONS: Calculate
More information