Data Acquisition Device (DAQ) A DAQ is a cool little device that allows you to interface hardware to a computer. Here is what we will do:  Create a square.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Interfacing Lab Part Guide. The Solderless Breadboard Rows along the top and bottom are connected horizontally along the length of the board Holes in.
MOTION CONTROL ECE 105 Industrial Electronics Engr. Jeffrey T. Dellosa College of Engineering and Information Technology Caraga State University Ampayon,
EE188L EE I Laboratory Lab #2 Resistive Circuits.
Resistor Circuit Symbol
What have we learned so far?  When we apply a voltage, the capacitor will charge up to the applied voltage.  The capacitor charges up exponentially.
Group B01 Tarek Yakub – Fahad Aljenaei – Danish Qureshi
Mains Supply Noadswood Science, 2012.
Pulse Detector Ramiro Duarte, Clayton Greenbaum Prof. Betty Lise Anderson.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
L.
Solar Car Data Collection System Matt Boyden Rene Dupuis Ryan Lavallee 4/23/08.
Part A: Controlling Oscillation Frequency with Capacitors and Resistors Part B: Diodes and Light Experiment Timer.
MEASUREMENT DEVICES OUTLINE Multimeters Analog Multimeters
Electronic Instrumentation Experiment 6: Diodes * Part A: Diode I-V Characteristics * Part B: Rectifiers Part C: PN Junction Voltage Limitation Part D:
Introduction.
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
George Washington University DC Circuits Lab Professor Ahmadi ECE 002.
M.S.P.V.L. Polytechnic College, Pavoorchatram
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Pulse Width Modulation (PWM) LED Dimmer Circuit
Purpose Learn how to use basic electronic equipment:
Power Electronics DC to AC Converters
You will need the following parts from your kit: 1.Breadboard ohm resistor (brown, black, brown, gold) 3.1 LED (light emitting diode) 4.1 Potentiometer.
Pulse Width Modulation (PWM) LED Dimmer Circuit
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Institute Of Applied Technology ATE 1012 Grade 10 Eng. Rose Hasan.
EGD ELECTRICAL ELECTRICAL SYMBOLS.
Electronics Chapter 53 What is Electronics? Electronics is the careful and exact control of very small electric currents. It is used in many small devices.
RM2C Understanding Connections on the Robot Control Board (RCB).
Write a program that will automatically control the brightness of a light based on the surrounding light level. Automatic Night Light.
© 2011 Pearson Education, Inc. All Rights Reserved Automotive Technology, Fifth Edition James Halderman COMPUTER FUNDAMENTALS 71.
Objectives How Microcontroller works
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
ENGR 6806 – Motor Control Prepared By: Rob Collett September 15, Office: EN2074.
Voltage in Electrical Systems. Unit 4 Voltage Pages  Voltage source  Conductors  Control element  Electrical appliance  Electrical loads 
Direct Current (DC) and Alternating Current (AC). Series Circuits and Parallel Circuits.
PWM Circuit Based on the 555 Timer. Introduction In applications LED Brightness Control we may want to vary voltage given to it. Most often we use a variable.
ELECTRICAL CIRCUITS All you need to be an inventor is a good imagination and a pile of junk. -Thomas Edison.
Rate in the Electrical System. 1. What is the prime mover in the electric system? - voltage 2. What is electric rate? - amount of charge that flows through.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Name: ________________ Class: _________________ Index: ________________ D.C. Circuit.
Physics 2225: Working With Electronic Equipment Purpose  Learn how to use basic electronic equipment: Digital multi meter Oscilloscope Function generator.
Which of the signals below is a digital signal?
Two basic types Ceramic disk Electrolytic Has positive and negative sides Farads – unit of measure (F) Microfarads(uF) and picofarads (pF) Cans have value.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
NATCAR SUMMER CLASS II 6 July 2004 Chung Hsieh. Topic of Discussion Power Supply Motor Drive Circuits Braking.
SMV Electric Tutorials
Computer Fundamentals 14 © 2013 Pearson Higher Education, Inc. Pearson Prentice Hall - Upper Saddle River, NJ Advanced Automotive Electricity and.
CHAPTER Computer Fundamentals 13 Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Automotive Electrical and Engine Performance, 7e James.
Voltage in Electrical Systems. Unit 4 Voltage Pages (leave a space in between)  Voltage source  Conductors  Control element  Electrical appliance.
PHYSICS – Electric circuits
Transistor Basics – Part I. The Diode The semi-conductor phenomena Diode performance with AC and DC currents Diode types –General purpose –LED –Zenier.
Chapter 3 – Diode Circuits – Part 3
ARM CORTEX (STM32) BASED MOTOR SPEED CONTROL SUBMITTED BY EDGEFX TEAM.
Diode Foundations of Technology Diode © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™ Foundations.
MODULE 2: Circuits, Signals and the Analog Discovery Board SUMMER CHALLENGE Electrical Engineering: Smart Lighting Michael Rahaim, PhD Candidate Multimedia.
Introduction to Motors, servos and steppers
Introduction to Handshaking Communication with SSC-32U
Electric Motors.
Potentiometer or Potential divider
Basic Laws of Electric Cicuits II
Series And Circuits.
Sensors and actuators Sensors Resistive sensors
Lecture No# 8 Prepared by: Engr. Qurban Ali Memon
Equalizing Average Source Power with Pattern Swapping
Computer Fundamentals
2019 Investing Now Summer Program
Presentation transcript:

Data Acquisition Device (DAQ) A DAQ is a cool little device that allows you to interface hardware to a computer. Here is what we will do:  Create a square wave in MATLAB  Send the signal out through the DAQ as a voltage signal applied across a series circuit (OUTPUT a Signal)  Use the DAQ as a voltmeter to measure the voltage across a resistor (INPUT the measurements)  The DAQ will send these measurements back into MATLAB so we can easily plot the voltage vs. time

National Instrument myDAQ For this experiment, we will be using one of the Analog OUTPUT channels: Analog Output 0 channel AO0 is the output AGND is the ground This channel will OUTPUT a square wave to the circuit

National Instrument myDAQ For this experiment, we will be using one of the Analog INPUT channels: Analog Input 0 channel AI0+ is the positive side AI0- is the negative side This channel is a voltmeter and will be used to measure the voltage across the resistor

Square Waves A square wave is a periodic signal that oscillates between two values. The period, T, is the time for one complete cycle (T = 1/f) The frequency, f, is the number of cycles in 1 second (f = 1/T) The duty cycle, tau, is the percentage of time the wave is at the higher value. Period: T = Frequency: f = Duty cycle: tau = Average Value = Period: T = Frequency: f = Duty cycle: tau = Average Value = 0.5 sec 2 Hz (cycles/sec) 50% 0.5 sec 2 Hz 80% 5 V 8 V

How to Create Square Waves in MATLAB 1.Create a vector of times, t, typically based on the period of the square wave. 2.Use the square function in MATLAB: square(2*pi*frequency*t, tau) Note: square wave will oscillate between -1 and +1 Example: Here is how the 2 Hz square wave on the previous page with the 80% duty cycle was created. t = 0:0.001:1; y = 5*square(2*pi*2*t,80)+5; % f = 2 Hz and tau = 80% * Multiplying by 5 then adding 5 makes the square wave go from 0 to 10.

Pulse Width Modulation Square Waves with varying duty cycles are used in many control and communication applications. One very common application is to control the speed of a DC motor. The duty cycle is increased to increase the speed of the motor and decreased to reduce the motor speed. This type of control is referred to as Pulse Width Modulation (PWM). Our DAQs don’t source enough current to drive a motor so we will use PWM to control the light level of a Light Emitting Diode (LED).

Diodes are “one-way” devices that only allow current to flow in one direction. An LED is a diode that emits light when sufficient current is flowing through it. Diodes are used in many, many applications such as: LED flashlights and light bulbs provide very bright light and use significantly less power than incandescent bulbs, last much longer than incandescent bulbs, and stay cool Diodes are used in circuits to convert AC power to DC power (laptop chargers, phone chargers, appliances that run on dc …) LEDs are used in displays, signs, and traffic signals DIODES

When the positive side of a voltage source is applied to the anode (+) side of an LED, current will flow through the circuit and the LED will light up. Light Emitting Diode (LED) Anode (+) Cathode (-) When the positive side of a voltage source is applied to the cathode (-) side of an LED, current will not flow through the circuit and the LED will not light up. Current Flows No Current Flows

Building the Circuit How to build your circuit using the breadboard: 1.Insert the leads of the resistor, LED, and cables into the holes in the breadboard, but don’t force them! 2.The openings A-E and F-J in each numbered row in the breadboard are electrically connected together, so placing the leads of two components in the same row will connect them 3.The openings in different numbered rows are not electrically connected, so each lead of a component should be in a different row 4.Rows on opposite sides of the middle break are not electrically connected Connected Not Connected

Attaching Cables How to attach a cable: 1.Insert the metal part of the cable into the port on the side of the myDAQ – make sure the metal part of the cable is above the metal bar in the port 2.Use the screwdriver to rotate the screw on top of the port clockwise to tighten the connection to the cable 3.Pull GENTLY on the cable to ensure that it is properly connected to the DAQ screwdriver Metal bar Cable end screwdriver Metal bar Cable end Correct Incorrect

Circuit