Experiment 4: Using the Arduino

Size: px
Start display at page:

Download "Experiment 4: Using the Arduino"

Transcription

1 Experiment 4: Using the Arduino Laboratory Outline We have learned to take measurements and power our circuits using the bench equipment found the in the ECE 110 lab. While the high accuracy of this equipment is well suited for conducting lab experiments in a university or industry, the size and cost make these devices impractical for most hobbyists. This week we ll learn to use a small, inexpensive microcontroller (made famous under the brand name Arduino) that can serve many of the same purposes as the DMM, power supply, function generator and, if you re clever, the oscilloscope. In addition, we ll see how the Arduino can be used to automatically react to its measurements while your circuit is operating! Using the Arduino as Bench Equipment: As stated above, the Arduino can perform many of the same tasks as your bench equipment. As we progress through the lab, you ll learn to use the Arduino in this manner. Once you understand how to power a circuit and take measurements with the Arduino, you ll be able to conduct small experiments at home. Although our formal lab experiments will still require your attendance in lab, you ll find this capability very useful when working on extra lab modules, your final design project, and any future projects you might take on outside of ECE 110. Using the Arduino as a Circuit: The power of the Arduino is enhanced by its ability to react to measurements. When employed correctly, the Arduino can replace large parts of a circuit. Since the Arduino is programmable, this means that a person can quickly change its behavior without rewiring anything! Today we ll learn the basics of using the Arduino to read a sensor voltage and react to it. It is important to note that ECE110 teaches a minimal amount of programming. The use of the Arduino this semester in ECE110 should be limited to basic tasks for which you are provided the core code. Looking ahead, the final project will outline goals that do not depend heavily on your ability to program the Arduino.

2 Getting Started with the Arduino Before we can begin using the Arduino microcontroller (actually, we use the RedBoard clone from SparkFun Electronics), we need to learn how to safely power it and program it. Fortunately for us, the microcontroller s design includes a very good voltage-regulation circuit that allows it to be powered through several interfaces using a range of voltages. Powering the Arduino USB is how you program the RedBoard. The USB is also the most direct and the safest method of powering your RedBoard. You can safely power your RedBoard by connecting it to a computer (or even a phone charger) via USB. This is the first method we ll use to power the RedBoard today. Unfortunately, while the power that can be drawn through the USB is enough to power the microcontroller, it quickly behaves as a non-ideal DC voltage source when it is used to power other devices such as motors and sensors. Since the USB can provide only limited power and its cable tethers your device to a computer, the use of battery power in most applications is essential! The DC power jack is the barrel jack on the RedBoard and can be powered using an external voltage no less than 7 V and no more than 12 V. The voltage regulator on the RedBoard is designed to handle voltages within this range comfortably and you can easily power the board by connecting a battery to this jack and there is no chance of accidentally reversing the battery s polarity. We will use a 7.2-V rechargeable NiMH battery with a barrel connector. The barrel jack input also has the benefit of having protection circuits to keep you from destroying your board this doesn t mean it s impossible to kill your board this way, just more difficult.

3 (a) (b) Figure 1: Typical power connections for the RedBoard in ECE110 (a) with exploded view in (b). Images adapted from those provided by SparkFun Electronics, CC BY-NC-SA 3.0.

4 When powering the RedBoard with the battery through the power jack, the Vin pin will allows us to access the un-regulated 7.2-V source to power motors and other higher-voltage, higher-current devices. The term un-regulated means that the voltage and current available from the battery are present at the Vin/GND terminals unaltered by the presence of the board. The Vin pin may also be used in the other direction in order to provide a voltage to the board. This pin is connected to the RedBoard s voltage regulation circuit like the barrel jack described above except it does not have the same protection circuits. While this method allows you to power your board without the need for a barrel connector, it can easily destroy the circuitry if you accidentally supply voltage in reverse polarity. Never power the RedBoard by connecting your voltage source to 5V pin or 3.3V pin or you risk burning up the components on your board and rendering it useless. These ports were not designed for this purpose. If you d like to learn about other ways to destroy your board, visit the Rugged Circuits page listed below. Programming the Redboard In order to program to RedBoard, we ll need to make use the Arduino Programming software. On the computers in the ECE 110 Lab, you should be able find a shortcut on the desktop or by searching for Arduino in the start menu. Alternatively you can install the Arduino software on your own computer so long as you have an internet connection. The instructions for doing so can be found in your SIK Guide. Build the Circuit #1 found in the SIK Guide and program the RedBoard following the instructions in the guide. If the Sparkfun code is loaded in your Arduino IDE you can simply follow the instructions in your SIK Guide. Alternatively you can use the example code that comes with the Arduino IDE found using the instructions below. Figure 2 shows the circuit. The symbol represents a plug and jack connection. For us, the jack is a wire that feeds into a pin (jack) on the Arduino board.

5 Program your RedBoard with the Blink example code. Figure 2: Blink circuit. o Open the Blink example code in the Arduino IDE ( File > Examples > Basics > Blink ) o Select the Save as option under the file menu and save the sketch to your desktop under a name of your choosing. This allows you to make changes to the code. o Ensure that the correct port is selected under Tools > Serial Port (Hint: COM1 is not the correct port) o Upload the code to the RedBoard If you run into problems, the SIK Guide has some wonderful debugging help. You should read it.

6 Navigate to the Arduino site arduino.cc. Using the help section, indicate purpose of the setup and loop portions of the code (yes, it was actually explained in the comments but navigate to the Arduino site to see how useful and informative it is). Explain what is happening to the voltage at pin 13 on your RedBoard. (Hint: measure with your oscilloscope.) What do the two parameters of the digitalwrite function mean? (If you don t know, you can find the answer in the SIK Guide or the Arduino website.)

7 Change the parameter being passed to the delay functions to a small value (like 50 rather than 1000). What is the LED doing now? What SI time unit does this number correspond to? What error message appears if you don t select the correct serial port before you upload your code? What happens if your RedBoard is not connected when you attempt to upload? Arduino as Bench Equipment The Arduino and clones such as the RedBoard are capable of performing many tasks that are similar to the equipment you can find on your bench. The fact that the Arduino can be reconfigured for a task very quickly adds to its value as a bench-top device. Arduino as Power Supply When you hook up the board to your computer via the USB port, the computer provides power to the board. The board can also be powered via an external power source (battery or wall-wart within in the recommended range 7-12V). Once the board is powered, a regulated 5V is supplied to the pin labeled 5V and a regulated 3.3V is supplied to pin labeled 3.3V clever labeling. The term regulated means that the voltage is controlled to within a certain tolerance of variation. Use a 7.2 volt battery to power your RedBoard.

8 Measure the voltage at the 5V for various resistive loads and fill in the following table. Generate a plot using MATLAB and attach it the end of your lab. Resistive Load (Ω) Reading at 5V pin (V) Comments Arduino as Function Generator Open a new sketch in the Arduino programming IDE and type in the following code. void setup() { } pinmode(9, OUTPUT); void loop() { } analogwrite(9, 64);

9 This program will use the LED circuit you built in a different way. Upload the program to the board. This will erase the current program that is blinking the LED so it should stop blinking. The first parameter of the analog write function is the pin number it is controlling. To get this program to work you must make a very simple modification to the circuit. You will know it is working because the LED will go back on. Draw your modified circuit diagram below. Again describe the function of each line of code. How does the LED behave now? Play with the second parameter of the analogwrite function. What happens to the voltage at pin 9 when you increase and decrease the value? (Hint: Use the scope.)

10 What does the analogwrite function really do? (Hint: Look at Circuit #3 in the SIK Guide.) What happens to the waveform produced when you use a number greater than 255 or less than 0 as the input to analogwrite? Compare and contrast the analogwrite function to the operation of the oscillator circuit constructed in the previous laboratory meeting.

11 Arduino as a DMM In addition to generating signals, the Arduino can also measure voltages using the analogread() function. In addition, the Arduino has a set of functions built into it that allow us to send data back to the computer to be viewed on the serial monitor. Below is the bare minimum code for reading a voltage and printing it to the serial monitor. void setup() { } int sensorvalue; // initialize an integer variable pinmode(a0, INPUT); // set pin A0 as input Serial.begin(9600); // initialize serial port void loop() { } sensorvalue = analogread(a0, 64); // read from pin A0 Serial.println(sensorValue); // print value to serial monitor The function Serial.println() sends the function argument to the serial monitor in your Arduino IDE. Once you have loaded this code to the RedBoard, open the Serial Monitor to see it in action (the icon that looks like a magnifying glass located at the top right any open sketch). Connect the DC power supply to pin A0 as shown in the wiring diagram below

12 Figure 3: Test-circuit schematic for using the microcontroller as a DMM. Vary the supplied voltage from 0V to 5V and measure the voltage at pin A0 using the DMM and record this measured voltage along with the value printed to the Serial Monitor by the RedBoard. Be sure to use the full range of 0V to 5V. Supplied Voltage Arduino Value What does the analogread function do? What are the range of voltages that it can accurately read? What range of outputs does this voltage range correspond to?

13 voltages. Write down a mathematical expression for converting the numbers returned by analogread into Using this expression, you can use the RedBoard as a simple digital voltmeter. Modify your code so that the serial monitor outputs voltage. Write the line of code that does the computation here. Since the Arduino can only measure voltages, how could it be used to measure current? Include a circuit schematic in your explanation. How do would you measure resistance? If you aren t sure, move on to the next portion of this experiment and then come back to this question.

14 If you take time to familiar with the components in your kit, you can even add a LCD screen to your RedBoard and use it a multimeter without needing to a computer connection. Arduino as a Circuit Build Circuit #2 from your SIK Guide and load the corresponding code onto your RedBoard. Play around with the potentiometer and verify that the LED changes brightness corresponding to the position of the potentiometer. What is causing the LED to change brightness? Be specific. So far in this lab we have learned about resistive sensors. As you saw earlier in this experiment, the Arduino can only read voltages through the I/O pins. In order to make use of resistive sensors, we must employ a circuit we saw in Experiment 2: the voltage divider circuit. Modify Circuit #2 as to include the flex sensor as shown in the circuit diagram below.

15 Figure 4: Circuit schematic showing modifications to Circuit #2 of the SIK Guide. Does the LED get as bright as it could with the potentiometer attached? Does it get as dark? As you should recall, the range of voltages measured across the flex sensor will not reach the full range of 0-5V. Record the minimum and maximum values read in by the Arduino here (i.e. the value corresponding to the sensor un-flexed and flexed to 90 degrees).

16 Initialize a new variable to represent the value we will write to the LED pin using the following line of code. Insert this line just after sensorvalue is initialized: int ledvalue; Now replace the line containing analogwrite function in your code with the following lines. Replace MIN with the minimum value read by the Arduino (use the code from the Arduino as DMM portion of this lab). ledvalue = int((sensorvalue - MIN) * 250 / (MAX - MIN)); if (ledvalue < 0) { ledvalue = 0; } if (ledvalue > 255) { ledvalue = 255; } analogwrite(13, ledvalue); The first of these lines calculates the new output value converts it to an integer (rather than a floating point variable). For this to work, you must first replace MIN and MAX with values recorded earlier. The IF-statements you inserted ensure that we do not try to enter invalid values to analogwrite. Explain in your own words what the code does now.

17 Conclusion Explain the different ways in which the microprocessor might be used in the laboratory? What makes the microprocessor more useful than ordinary bench-top test-and-measurement devices? What makes it less useful? Arduino is not the end-all be-all but it s a very powerful tool, especially for hobby projects. Throughout the rest of the semester, we will examine and design circuits that perform tasks that can also be done using the Arduino. Take time to explore the Arduino further by playing with the circuits described in SIK Guide. You may find it very useful in future experiments as well as the final design challenge at the end of the semester. What You Learned You should now be able to use the RedBoard as a voltmeter, ammeter, and ohmmeter. You should understand some of the basics of programming and some of the limitations of the RedBoard device. Learn More! At the end of each regular lab procedure, as time permits, you will be provided with materials to continue to improve your mastery of the materials. The suggested modules for this lab will be provided by the TA. You are to work on these as long as time permits. The modules will be submitted to your TA when finished and a number of them will count in your final grade.

18 Lab Report Rubric The following rubric will be provided at the end of each lab procedure. As a final step in preparing your lab report, you will use this rubric to analyze your own performance. While your analysis is not used in the grading process, extra points may be awarded after lab 8 based on your ability to properly discern and implement good lab-writing strategies as demonstrated here. Section Ques. Total points Experimental Setup and/or Design Description Measurements Computations Criterion Circuit Schematics are drawn neatly, accurately, and properly labeled. All important decisions regarding experimental setup or project design are clearly explained. Tables include units and proper precision. Any new device introduced should be characterized using measurements! Computations performed on raw data are explicitly described and follow rules for significant figures. Comments: Analysis Modeling Conclusion General Formatting Graphs have title, labels, units, scale, legend; Lines for curve-fitting appear in the graph when needed and parameters like the intercepts and slope are labeled. A mathematical model for the curve-fit graph allows for more abstract references to the device s behavior. The expected behavior is explained in the context of the graph. Conclusions are drawn from your experimental results to support the reason(s) for completing the experiment. Closes the loop on the Introduction. Answers to questions clearly labeled. The overall appearance of the report is professional.

Module#4C: Arduino as voltmeter

Module#4C: Arduino as voltmeter Name/NetID: Teammate/NetID: Module#4C: Arduino as voltmeter Laboratory Outline As you work on through the labs during the semester and some of the modules you may want to continue experimenting at home.

More information

EXPERIMENT #2: DC Circuits and Tools

EXPERIMENT #2: DC Circuits and Tools Name/NetID: Teammate/NetID: EXPERIMENT #2: DC Circuits and Tools Laboratory Outline In today s lab we ll begin developing the fundamental knowledge and skills you ll need to conduct basic experiments.

More information

Module: Arduino Input/Output (I/O) Pins

Module: Arduino Input/Output (I/O) Pins Name/NetID: Teammate: Module: Arduino Input/Output (I/O) Pins Module Outline In this module you will be learning how to use the Digital I/O pins on the Arduino effectively. Digital? What does digital mean

More information

Module: Using the Arduino Analog Inputs

Module: Using the Arduino Analog Inputs Module: Using the Arduino Analog Inputs Name/NetID: Partner: Introduction One of the most powerful features of the Arduino board is its ability to take an analog voltage and convert that analog voltage

More information

Getting Started with Arduino

Getting Started with Arduino Getting Started with Arduino What is Arduino? Arduino is Small, programmable microcontroller. Software that runs on Mac, PC, and Linux. (IDE) Learning platform (for electronics & programming). Community

More information

Module 4B: Arduino as Power Supply

Module 4B: Arduino as Power Supply Name/NetID: Teammate/NetID: Module 4B: Arduino as Power Supply Laboratory Outline As you work on through the labs during the semester and some of the modules you may want to continue experimenting at home.

More information

Experiment 8 : Pulse Width Modulation

Experiment 8 : Pulse Width Modulation Name/NetID: Teammate/NetID: Experiment 8 : Pulse Width Modulation Laboratory Outline In experiment 5 we learned how to control the speed of a DC motor using a variable resistor. This week, we will learn

More information

Lab 3 Introduction to Arduino

Lab 3 Introduction to Arduino Introduction to Arduino: University of Pennsylvania Department of Electrical and Systems Engineering ESE 111 Intro to Elec/Comp/Sys Engineering Lab 3 Introduction to Arduino The Arduino (shown in Figure

More information

EXPERIMENT #4: Arduino as Oscilloscope

EXPERIMENT #4: Arduino as Oscilloscope Name/NetID: Teammate/NetID: EXPERIMENT #4: Arduino as Oscilloscope Laboratory Outline This module adds the ability to visualize time-varying signals to your portable bench equipment. If you have completed

More information

by Jody Culkin resources that can be used, redistributed or rewritten free of charge. often software or hardware.

by Jody Culkin resources that can be used, redistributed or rewritten free of charge. often software or hardware. what is an arduino? it s an open source electronics prototyping platform. by Jody Culkin what does that mean? open source resources that can be used, redistributed or rewritten free of charge. often software

More information

Using Your Arduino, Breadboard and Multimeter. Work in teams of two!

Using Your Arduino, Breadboard and Multimeter. Work in teams of two! Using Your Arduino, Breadboard and Multimeter Work in teams of two! EAS 199A Fall 2010 Your Multimeter pincer clips good for working with breadboard wiring (push these onto probes) probes leads Turn knob

More information

INTRODUCTION TO ARDUINO

INTRODUCTION TO ARDUINO INTRODUCTION TO ARDUINO By Nathanael Slater An Exciting look at the basics of programming and hardware development 1 Contents About the Author... 2 Information About this Booklet... 3 A Simple Blink Program...

More information

Arduino Tutorial I Updated: 1/12/2013

Arduino Tutorial I Updated: 1/12/2013 Introduction: As a reminder, all posted safety guidelines must be followed at all times. The current safety code is posted around N3D an available at http://engineering.nd.edu/groups/n3d/safety. In this

More information

Observing the Temperature of the TMP36 Temperature Sensor

Observing the Temperature of the TMP36 Temperature Sensor Observing the Temperature of the TMP36 Temperature Sensor By now you ve learned how to upload code, wire components onto a breadboard and control an LED with an analog input; you ve come a long way! This

More information

Basics of Arduino EPICS Workshop. Arduino (RedBoard), Breadboard, LEDs Professor John Steele Mechanical Engineering Department October 23, 2015

Basics of Arduino EPICS Workshop. Arduino (RedBoard), Breadboard, LEDs Professor John Steele Mechanical Engineering Department October 23, 2015 Basics of Arduino EPICS Workshop Arduino (RedBoard), Breadboard, LEDs Professor John Steele Mechanical Engineering Department October 23, 2015 What is an Arduino/RedBoard? Arduino Uno (and the Sparkfun

More information

very small Ohm s Law and DC Circuits Purpose: Students will become familiar with DC potentiometers circuits and Ohm s Law. Introduction: P31220 Lab

very small Ohm s Law and DC Circuits Purpose: Students will become familiar with DC potentiometers circuits and Ohm s Law. Introduction: P31220 Lab Ohm s Law and DC Circuits Purpose: Students will become familiar with DC potentiometers circuits and Ohm s Law. Introduction: Ohm s Law for electrical resistance, V = IR, states the relationship between

More information

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 2: INTRODUCTION TO ARDUINO UNO AND DANGER SHIELD DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS GOAL: This

More information

Module: Wall-Following using Arduino

Module: Wall-Following using Arduino Module: Wall-Following using Arduino Now that you have a working wall-following vehicle enjoy a moment of satisfaction and then think how you might change the design to include more functionality. Maybe

More information

Engineering and Computational Thinking For Kids

Engineering and Computational Thinking For Kids Appendix A - The Voltage Divider...2 Appendix B Arduino Hardware diagram...4 Appendix C digitalread/write and analogread/write...5 Appendix D Pulse Width Modulation (PWM )...6 Appendix E Programming the

More information

Meters and Ohm s Law

Meters and Ohm s Law Meters and Ohm s Law Purpose: Familiarize yourself with electrical measurements, explore the nature of Ohm s Law, Resistivity, and practice interpreting data with graphs. Equipment: Power supply producing

More information

Introduction to the Op-Amp

Introduction to the Op-Amp ENGR 210/EEAP 240 Lab 5 Introduction to the Op-Amp Purpose: To become familiar with the operational amplifier (OP AMP), and gain experience using this device in electronic circuits. Equipment Required:

More information

ENGR 40M Solar-powered cell phone charger

ENGR 40M Solar-powered cell phone charger ENGR 40M Solar-powered cell phone charger Due Prelab: Oct 3-5, 24 hours before lab; Lab: beginning of lab, Oct 4-6 1 Objectives In this project, we ll build a solar-powered cell phone/ipod/tablet charger.

More information

Arduino Programming Part 3. EAS 199A Fall 2011

Arduino Programming Part 3. EAS 199A Fall 2011 Arduino Programming Part 3 EAS 199A Fall 2011 Overview Part I Circuits and code to control the speed of a small DC motor. Use potentiometer for dynamic user input. Use PWM output from Arduino to control

More information

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall 2012. Work in teams of two!

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall 2012. Work in teams of two! Using Your Arduino, Breadboard and Multimeter Work in teams of two! EAS 199A Fall 2012 pincer clips good for working with breadboard wiring (push these onto probes) Your Multimeter probes leads Turn knob

More information

Arduino. Physical Computing

Arduino. Physical Computing Physical Computing 1 Physical Computing System Model Behaviors 2 Physical Computing System Model Inputs Outputs Behaviors 3 Physical Computing System Model Inputs Outputs Sensors Actuators Behaviors Software/Hardware

More information

R A _ + Figure 2: DC circuit to verify Ohm s Law. R is the resistor, A is the Ammeter, and V is the Voltmeter. A R _ +

R A _ + Figure 2: DC circuit to verify Ohm s Law. R is the resistor, A is the Ammeter, and V is the Voltmeter. A R _ + Physics 221 Experiment 3: Simple DC Circuits and Resistors October 1, 2008 ntroduction n this experiment, we will investigate Ohm s Law, and study how resistors behave in various combinations. Along the

More information

Experiment 3 Ohm s Law and Resistance

Experiment 3 Ohm s Law and Resistance Name Partner(s): Experiment 3 Ohm s Law and Resistance Objectives Equipment Preparation Pre-Lab To demonstrate how Ohm s Law is used to define resistance. 1 DC Regulated Power Supply: a source of variable

More information

Project 1: Introduction to Arduino and LED Blink (Sketch Version) Description:

Project 1: Introduction to Arduino and LED Blink (Sketch Version) Description: Project 1: Introduction to Arduino and LED Blink (Sketch Version) Description: The Arduino is a microprocessor. A Microprocessor is a compact programmable computing device with memory, processing, input,

More information

Testing the Arduino Nano

Testing the Arduino Nano The Arduino Nano is a rugged device, but when attached to an AEV, with motors, batteries and sensors, quite a bit can potentially go wrong. The Arduino Nano test board pictured below enables testing of

More information

PHY 101 Lab 7 on Electric circuits: Direct current circuits Your name: Other team members:

PHY 101 Lab 7 on Electric circuits: Direct current circuits Your name: Other team members: PHY 101 Lab 7 on Electric circuits: Direct current circuits Your name: Other team members: Goals: To explore the basic principles of electric circuits, and how to measure them. Materials: Electrical resistors

More information

Lab 3 - DC Circuits and Ohm s Law

Lab 3 - DC Circuits and Ohm s Law Lab 3 DC Circuits and Ohm s Law L3-1 Name Date Partners Lab 3 - DC Circuits and Ohm s Law OBJECTIES To learn to apply the concept of potential difference (voltage) to explain the action of a battery in

More information

Arduino Programming Part 3

Arduino Programming Part 3 Arduino Programming Part 3 EAS 199A Fall 2010 Overview Part I Circuits and code to control the speed of a small DC motor. Use potentiometer for dynamic user input. Use PWM output from Arduino to control

More information

Start Arduino course 02 - Fade

Start Arduino course 02 - Fade Introduction: You know how to turn an LED on and off with the Arduino, the next skill to master is how to control the brightness. To do this you are going to start reading switch values. After you have

More information

Experiment 7: Ohm s Law & DC Circuits

Experiment 7: Ohm s Law & DC Circuits MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring 2009 OBJECTIVES Experiment 7: Ohm s Law & DC Circuits 1. To explore the measurement of voltage & current in circuits 2. To see Ohm

More information

ADXL337 and ADXL377 Accelerometer Hookup Guide

ADXL337 and ADXL377 Accelerometer Hookup Guide Page 1 of 6 ADXL337 and ADXL377 Accelerometer Hookup Guide Introduction The ADXL337 and the ADXL377 are both small, thin, low power, complete 3-axis accelerometers with signal conditioned analog voltage

More information

Module: Building Motor Drive Circuit

Module: Building Motor Drive Circuit Name/NetID: Teammate: Module: Building Motor Drive Circuit Module Outline The vehicle connected to a battery with some resistors inserted to keep the velocity slow enough that the car does not crash is

More information

Lab E1: Introduction to Circuits

Lab E1: Introduction to Circuits E1.1 Lab E1: Introduction to Circuits The purpose of the this lab is to introduce you to some basic instrumentation used in electrical circuits. You will learn to use a DC power supply, a digital multimeter

More information

Experiment - The Digital Multimeter

Experiment - The Digital Multimeter Eperiment - The Digital Multimeter I. Objective To become familiar with a digital multimeter () and how it works. At the same time to become familiar with resistors and to learn how to use a power supply.

More information

Physics 2306 Experiment 6: Direct Current (DC) circuits, Part 2

Physics 2306 Experiment 6: Direct Current (DC) circuits, Part 2 Name ID number Date Lab partner Lab CRN Lab instructor Physics 2306 Experiment 6: Direct Current (DC) circuits, Part 2 Objective To learn to apply the concept of potential difference to explain the action

More information

Start Arduino course 01 - Blink

Start Arduino course 01 - Blink Introduction: Welcome to your Start Arduino Kit! With this kit, were going to start you on your journey into programming and electronics, taking you through the basics up to some more advanced challenges.

More information

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 1: INTRODUCTION TO ARDUINO IDE AND PROGRAMMING DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS 1. FYS KIT COMPONENTS

More information

Voltage, Current, and Resistance

Voltage, Current, and Resistance Voltage, Current, and Resistance Equipment DataStudio with 750 interface, Power Amplifier II, analog DC voltmeter, analog DC ammeter, voltage sensor, current sensor, RLC circuit board, 4 black leads, 4

More information

Chapter 1: DC circuit basics

Chapter 1: DC circuit basics Chapter : DC circuit basics Overview Electrical circuit design depends first and foremost on understanding the basic quantities used for describing electricity: Voltage, current, and power. In the simplest

More information

INTRODUCTION. Resistance and Color Codes

INTRODUCTION. Resistance and Color Codes Page 1/9 Revision 2 18-May-111 OBJECTIVES To gain skills in using basic electrical laboratory equipment such as meters and power supplies. (These skills will be needed in subsequent electrical engineering

More information

Voltage Dividers and Voltage Sources

Voltage Dividers and Voltage Sources Voltage Dividers and Voltage Sources Equipment Anatek power supply Philips multimeter Sanwa 50 analog multimeter Set of 3 resistors Set of 2 resistors Eico 7 decade resistor box 25 Ω Potentiometer Black

More information

OHM'S LAW. Objective To study the relationship between the electrical current flowing through a circuit element and the voltage applied.

OHM'S LAW. Objective To study the relationship between the electrical current flowing through a circuit element and the voltage applied. OHM'S LAW Objective To study the relationship between the electrical current flowing through a circuit element and the voltage applied. Equipment Power supply, 10 ohm resistor, 50 ohm resistor, automotive

More information

Lab #7: Analog I/O and Closed Loop Programming

Lab #7: Analog I/O and Closed Loop Programming Lab #7: Analog I/O and Closed Loop Programming Objectives: Introduction to analog output Familiarization with basic output and functions Familiarization with scaling Introduction to closed loop control

More information

Chapter 2. Materials and Devices

Chapter 2. Materials and Devices Chapter 2 Materials and Devices 1 CHAPTER 2. MATERIALS AND DEVICES 2.1 Introduction Materials and Devices is concerned with how semiconductor devices, such as transistors, diodes, and sensors work and

More information

LABORATORY 0.1 BREADBOARDS & DC MEASUREMENTS

LABORATORY 0.1 BREADBOARDS & DC MEASUREMENTS LABORATORY 0.1 BREADBOARDS & DC MEASUREMENTS OBJECTIVES 1. To learn the internal connections of a typical breadboard. 2. To construct a breadboard layout from a schematic diagram. 3. To connect and use

More information

Resistance and Ohm s Law - MBL

Resistance and Ohm s Law - MBL Resistance and Ohm s Law - MBL In this experiment you will investigate different aspects of Ohm s Law, which relates voltage, current, and resistance. A computer will be used to collect, display, and help

More information

Arduino Training. Based on kit from

Arduino Training. Based on kit from Arduino Training Topics: Microcontrollers Arduino Schematic Explanation Programming Basics Digital Output Analog to Digital Conversion 16x2 LCD Interfacing Based on kit from www.avmicrotech.com Kit Content

More information

Lab-18-(Circuit Analysis).doc Rev. 3/8/2006 ANALYSIS

Lab-18-(Circuit Analysis).doc Rev. 3/8/2006 ANALYSIS Name: Period: Due Date: _ Lab Partners: CIRCUIT ANALYSIS Purpose: To analyze subunits of complex circuits to see how the small branches may be analyzed as part of the analysis of the whole circuit. You

More information

Lab #2 Detailed Wiring Instructions

Lab #2 Detailed Wiring Instructions Lab #2 Detailed Wiring Instructions IMPORTANT LAB TIP: Some of the power supplies in the Arduino lab kits have the red and black wires backwards (i.e. black is 5V when it should be 0V and red is 0V when

More information

Massachusetts Institute of Technology

Massachusetts Institute of Technology Objectives Massachusetts Institute of Technology Robotics: Science and Systems I Lab 1: System Overview and Introduction to the µorcboard Distributed: February 4, 2015, 3:30pm Checkoffs due: February 9,

More information

Breadboards, Meters and Ohm s Law

Breadboards, Meters and Ohm s Law Breadboards, Meters and Ohm s Law Purpose: Familiarize yourself with electrical measurements, explore the nature of Ohm s Law, Resistivity, and practice interpreting data with graphs. Equipment: Power

More information

Introduction to Sensors and Data Acquisition

Introduction to Sensors and Data Acquisition Introduction to Sensors and Data Acquisition Experimenting with a compound pendulum Prof. R.G. Longoria Department of Mechanical Engineering The University of Texas at Austin Fall 2014 Lab Overview In

More information

Experiment 2: Instrumentation and Oscilloscope Introduction

Experiment 2: Instrumentation and Oscilloscope Introduction Experiment 2: Instrumentation and Oscilloscope Introduction Part 1: Multimeter, Ammeter and Breadboards In this lab we will become familiar with three instruments that you will use throughout the semester:

More information

Batteries and Bulbs. (A study of simple direct-current circuits)

Batteries and Bulbs. (A study of simple direct-current circuits) Goals: (A study of simple direct-current circuits) To learn to use a digital multimeter as an ammeter and a voltmeter To demonstrate the loop rule for potential differences To understand the role of batteries,

More information

Arduino - BART. Corso di Robotica Prof. Davide Brugali Università degli Studi di Bergamo

Arduino - BART. Corso di Robotica Prof. Davide Brugali Università degli Studi di Bergamo Arduino - BART Corso di Robotica Prof. Davide Brugali Università degli Studi di Bergamo The Arduino Development Board PWR IN USB (to Computer) A printed circuit board designed to facilitate work with a

More information

Rectifier and Filter Design Oregon State University ECE 322 Manual Page 11

Rectifier and Filter Design Oregon State University ECE 322 Manual Page 11 SECTION TWO Rectifier and Filter Design 2008 Oregon State University ECE 322 Manual Page 11 SECTION OVERVIEW This section deals with rectifier and filter design. Following are the objectives, materials

More information

Electronics 4: The Arduino Microcontroller - Programming Basics, I/O

Electronics 4: The Arduino Microcontroller - Programming Basics, I/O BIOE 123 Module 5 Electronics 4: The Arduino Microcontroller - Programming Basics, I/O Lecture (30 min) Date Learning Goals Become familiar with using Arduino microcontroller Learn how to define variables

More information

Electronic Brick Starter Kit

Electronic Brick Starter Kit Electronic Brick Starter Kit Getting Started Guide v1.03 by Introduction Hello and thank you for purchasing the Electronic Brick Starter Pack from Little Bird Electronics. We hope that you will find learning

More information

Lab 3 - OHM'S LAW AND KIRCHHOFF S CIRCUIT RULES

Lab 3 - OHM'S LAW AND KIRCHHOFF S CIRCUIT RULES 41 Name Date Partners Lab 3 - 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 information

Objective: Learn to interface between analog and digital domains Connect light tracker for project. ...

Objective: Learn to interface between analog and digital domains Connect light tracker for project. ... ENGG13: Introduction to Electrical and Electronic Engineering Second Semester, 13 14 Lab 7 Objective: Learn to interface between analog and digital domains Connect light tracker for project.......................................................................

More information

ENGG1015: lab 6. In Search of Light

ENGG1015: lab 6. In Search of Light ENGG0: lab 6 In Search of Light st Semester 2-3 The goal of this lab is to begin constructing the last stage of your project a light tracker. By doing so, you will learn to use a digital-to-analog converter

More information

Laboratory 1 Introduction to the Arduino boards

Laboratory 1 Introduction to the Arduino boards Laboratory 1 Introduction to the Arduino boards The set of Arduino development tools include C (microcontroller) boards, accessories (peripheral modules, components etc.) and open source software tools

More information

Fun in the Embedded World with Arduino. Rob Miles

Fun in the Embedded World with Arduino. Rob Miles Fun in the Embedded World with Arduino Rob Miles What is an Arduino? Arduino isn t a thing, it s a open standard for the hardware and software that make up a microcontroller based computing platform You

More information

PHYSICS 176 UNIVERSITY PHYSICS LAB II. Experiment 2 (two weeks) Direct Current Measurement and Ohm's Law

PHYSICS 176 UNIVERSITY PHYSICS LAB II. Experiment 2 (two weeks) Direct Current Measurement and Ohm's Law PHYSICS 176 UNIVERSITY PHYSICS LAB II Experiment 2 (two weeks) Direct Current Measurement and Ohm's Law Equipment: Supplies: VOM (volt-ohm-milliammeter), digital multimeter, power supply. 1/2 watt carbon

More information

Galileo Tutorial I/Os, Sensing and Actuation Senzations 2014

Galileo Tutorial I/Os, Sensing and Actuation Senzations 2014 Galileo Tutorial I/Os, Sensing and Actuation Senzations 2014 Biograd na Moru 1. September 2013 Alex Gluhak Intel Labs Europe 1 Galileo Tutorial I/Os, Sensing and Actuation WHAT WILL YOU MAKE? Learning

More information

Electric Circuits, Fall 2015 Project ShanghaiTech University. Audio Amplifier. Part 1

Electric Circuits, Fall 2015 Project ShanghaiTech University. Audio Amplifier. Part 1 Audio Amplifier Part 1 In this part you will build and analyze a simple AC to DC converter. You will receive a breadboard and necessary electronic components from your TA that you may take out the laboratory

More information

If two circuit elements are in series, the same current must flow through them.

If two circuit elements are in series, the same current must flow through them. Physics E-1b Expt. 2: DC Circuits Spring 2006 Introduction Preparation: Before coming to lab, read the lab handout and Giancoli Chapter 19, sections 19-1 through 19-3 plus section 19-8. Then prepare your

More information

Lab 6 Introduction to Serial and Wireless Communication

Lab 6 Introduction to Serial and Wireless Communication University of Pennsylvania Department of Electrical and Systems Engineering ESE 111 Intro to Elec/Comp/Sys Engineering Lab 6 Introduction to Serial and Wireless Communication Introduction: Up to this point,

More information

Arduino Leonardo ETH. Overview. without PoE. with PoE

Arduino Leonardo ETH. Overview. without PoE. with PoE Arduino Leonardo ETH without PoE with PoE Overview The Leonardo ETH is a microcontroller board based on the ATmega32U4 (datasheet) and the new W5500 TCP/IP Embedded Ethernet Controller (datasheet). It

More information

Signal Ampifier. Figure 4.1.

Signal Ampifier. Figure 4.1. Lab #4: Operational Amplifier Application: Electronic Security System Design: Part 1of 2 Theory & Introduction Goals For Lab #4 In Lab #4 and Lab #5, you will design, build and analyze an electronic security

More information

ECE 2201 PRELAB 1 DIODE CHARACTERISTICS

ECE 2201 PRELAB 1 DIODE CHARACTERISTICS P1. Lab Notebook Preparation: ECE 221 PRELAB 1 DIODE CHARACTERISTICS (1) Obtain an appropriate engineering lab notebook and write your NAME and ECE BOX# on the cover, so that your notebook can be returned

More information

LAB 2: BATTERIES, BULBS, AND CURRENTS

LAB 2: BATTERIES, BULBS, AND CURRENTS 1 Name Date Partner(s) LAB 2: BATTERIES, BULBS, AND CURRENTS IN SIMPLE DC CIRCUITS OBJECTIVES To understand how a potential difference (voltage) can cause an electric current through a conductor To learn

More information

Start Arduino course 03 - Sensors

Start Arduino course 03 - Sensors Introduction: Now we have covered simple input and outputs with buttons and LEDs, let s start using the sensors! The sensors in the kit can be used to interact with your circuits through vibration, movement,

More information

Digital Multi-meter and Oscilloscope

Digital Multi-meter and Oscilloscope Digital Multi-meter and Oscilloscope Many of the components presented in the mechanics labs (Physics 151L and 180L) orientation are still pertinent for the Physics 152L & 181L laboratories. You may wish

More information

Exercise 1 Basic I/O: Traffic Light System Design (Delay Construction)

Exercise 1 Basic I/O: Traffic Light System Design (Delay Construction) Exercise 1 Basic I/O: Traffic Light System Design (Delay Construction) A. Objectives This exercise aims for the student to learn the use and necessity to pause programs in some applications. The exercise

More information

Application Note: Arduino Microcontroller By Baban Malhi

Application Note: Arduino Microcontroller By Baban Malhi Application Note: Arduino Microcontroller By Baban Malhi Since my major is in Computer Engineering and Electrical Engineering and also has embedded system job position, I decided to work on the Arduino

More information

OPTI 380B Intermediate Optics Laboratory

OPTI 380B Intermediate Optics Laboratory OPTI 380B Intermediate Optics Laboratory Lab 9 Microcontroller / Data Acquisition Project I Objectives: This lab is an introduction to the world of microcontrollers. In particular, we will explore the

More information

Laboratory Exercise 1: Build Your Own DC Voltmeter ENGR 221, Winter 2010

Laboratory Exercise 1: Build Your Own DC Voltmeter ENGR 221, Winter 2010 Laboratory Exercise 1: Build Your Own DC Voltmeter ENGR 221, Winter 2010 This exercise covers basic concepts such as potentiometers, voltage divider circuits, analog-to-digital converters, serial communication,

More information

Lab 1: Measurements In Resistive Networks And Circuit Laws OBJECTIVES MATERIALS INTRODUCTION

Lab 1: Measurements In Resistive Networks And Circuit Laws OBJECTIVES MATERIALS INTRODUCTION Page 1/6 Revision 0 20-May-11 OBJECTIVES To provide working knowledge of the voltmeter, ammeter, and ohmmeter as well as their limitations in making measurements in resistive networks. To understand how

More information

Arduino Workshop. Arduino Workshop. Geert Langereis HG Background on microcontrollers Writing a program Connecting hardware

Arduino Workshop. Arduino Workshop. Geert Langereis HG Background on microcontrollers Writing a program Connecting hardware HG2.52 Workshop Arduino Background on microcontrollers Writing a program Connecting hardware Action: Installing the software Making a LED blink Read a button Send text to computer Workshop Arduino 1 Microcontrollers

More information

EMBEDDED SYSTEM IMPLEMENTATION USING ARDUINO

EMBEDDED SYSTEM IMPLEMENTATION USING ARDUINO KAAV INTERNATIONAL JOURNAL OF SCIENCE, ENGINEERING & TECHNOLOGY EMBEDDED SYSTEM IMPLEMENTATION USING ARDUINO HIRAL VEGDA School of Computer Studies, Ahmedabad University, Ahmedabad, Gujarat, India ABSTRACT

More information

Arduino MicroController One-Credit Workshop Fall 2014

Arduino MicroController One-Credit Workshop Fall 2014 Arduino MicroController One-Credit Workshop Fall 2014 Course Checkpoints: Checkpoint 1: Download software from http://arduino.cc. Checkpoint 2: Make the light blink. Checkpoint 3: Read someone else s blinking

More information

PHYS245 Lab: Light bulb and resistor Ι: Use of Digital Multimeter (DMM)

PHYS245 Lab: Light bulb and resistor Ι: Use of Digital Multimeter (DMM) PHYS245 Lab: Light bulb and resistor Ι: Use of Digital Multimeter (DMM) Purpose Hands-on experiences on simple d.c. circuits Introduction to ELVIS ΙΙ experimental station Simple electric measurements (current,

More information

Measuring Electric Phenomena: the Ammeter and Voltmeter

Measuring Electric Phenomena: the Ammeter and Voltmeter Measuring Electric Phenomena: the Ammeter and Voltmeter 1 Objectives 1. To understand the use and operation of the Ammeter and Voltmeter in a simple direct current circuit, and 2. To verify Ohm s Law for

More information

Resistors in Series and Parallel

Resistors in Series and Parallel Resistors in Series and Parallel INTRODUCTION Direct current (DC) circuits are characterized by the quantities current, voltage and resistance. Current is the rate of flow of charge. The SI unit is the

More information

Arduino Programming Part 1

Arduino Programming Part 1 Arduino Programming Part 1 EAS 199A, Fall 2010, Lecture 5 Gerald Recktenwald Portland State University gerry@me.pdx.edu Overview Discuss details, now that you had a taste Arduino Environment Basic code

More information

Probots Freeduino USB 1.0. Starter Guide

Probots Freeduino USB 1.0. Starter Guide Probots Freeduino USB 1.0 Arduino Compatible Development Board Starter Guide 1. Overview Arduino is an open source embedded development platform consisting of a simple development board based on Atmel

More information

Introduction to Arduino

Introduction to Arduino Introduction to Arduino // Basic Arduino reference sheet: Installation: Arduino: http://www.arduino.cc/en/guide/homepage Fritzing: http://fritzing.org/download/ Support: Arduino: http://www.arduino.cc,

More information

CHAPTER 5. Voltage Regulator

CHAPTER 5. Voltage Regulator CHAPTER 5 Voltage Regulator In your robot, the energy is derived from batteries. Specifically, there are two sets of batteries wired up to act as voltage sources; a 9V battery, and two 1.5V batteries in

More information

Mercury Instruments, Inc.

Mercury Instruments, Inc. Mercury Instruments, Inc. Setup and Operating Instructions for the 4 to 20 Milliamp Output Board, 40-2500 Purpose The 4 to 20 board installs in a Mercury Instrument and provides two isolated 4 to 20 milliamp

More information

This lab creates a dusk-to-dawn light; the circuit turns a light on when the ambient light level goes below a certain level.

This lab creates a dusk-to-dawn light; the circuit turns a light on when the ambient light level goes below a certain level. Overview This lab creates a dusk-to-dawn light; the circuit turns a light on when the ambient light level goes below a certain level. In the circuit we will build a photocell a light-sensitive resistor

More information

ECE 2006 University of Minnesota Duluth Lab 1. Digital Multimeter

ECE 2006 University of Minnesota Duluth Lab 1. Digital Multimeter 1. Introduction Digital Multimeter The student will learn to use the digital multimeter to take resistance, voltage and current measurments. Resistor values and corresponding tolerances will be determined

More information

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Fall 2005

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Fall 2005 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.002 Electronic Circuits Fall 2005 Lab 1: Thevenin/Norton Equivalents & Logic s Handout F05018 Introduction

More information

Lab 4 - Ohm s Law and Kirchhoff s Circuit Rules

Lab 4 - Ohm s Law and Kirchhoff s Circuit Rules Lab 4 Ohm s Law and Kirchhoff s Circuit Rules L41 Name Date Partners Lab 4 Ohm s Law and Kirchhoff s Circuit Rules OBJECTIES To learn to apply the concept of potential difference (voltage) to explain the

More information