EXERCISE 4: A Simple Hi-Fi

Size: px
Start display at page:

Download "EXERCISE 4: A Simple Hi-Fi"

Transcription

1 EXERCISE 4: A Simple Hi-Fi EXERCISE OBJECTIVE When you have completed this exercise, you will be able to summarize the features of types of sensors that can be used with electronic control systems. You will use Flowcode and the Microcontroller System Development FACET board to program a simple Hi-Fi. EXERCISE DISCUSSION Adding Inputs - Sensors An electronic control system knows nothing about the outside world unless we give it sensors - its eyes, ears etc. The language it understands is that of electrical signals, voltages and currents. A sensor has to turn changes in the outside world, such as light level, temperature, sound level, humidity, pressure etc., into changing electrical signals. A different type of sensor is needed for each of these tasks. Here are some of them. Light sensor: The light dependent resistor (LDR) - Its resistance drops when a brighter light shines on it. It is relatively slow to react to changes in light level, though. This is the only type of sensor included on the Microcontroller System Development FACET board. The photodiode - A component that passes an electric current only when sufficient light shines on it. It reacts much faster than the LDR to changes in light level. Temperature sensor: The thermistor - There are two versions of thermistor. One type, called NTC (negative temperature coefficient) has a resistance that gets less when its temperature goes up. The other type, PTC, (positive temperature coefficient) has a resistance which gets bigger when the temperature rises. Sound sensor: The microphone - The common form of microphone generates a voltage when it picks up a sound. The louder the sound, the bigger the voltage! FACET by Lab-Volt 213

2 Microcontroller System Development Adding Inputs - Sensing units We have just seen that some sensors, like the thermistor and the LDR, produce a change in resistance when the conditions in the outside world change. We need to convert that change in resistance into a change in voltage or current in order for the electronic control system to understand it. The voltage divider is one way of doing that. It consists of two resistors connected in series (one after the other), so that they share the power supply voltage between them. The diagram shows a voltage divider where one resistor is twice as big as the other. They share the 6V power supply voltage between them in such a way that the 8k resistor takes twice as much of the voltage as the 4k resistor. The sum of the voltages must equal the power supply's 6V, of course. Suppose that the lower resistor is actually a thermistor. Hence the different symbol, the rectangle with the hockey stick through it, in the diagram. As luck would have it, the resistance of the thermistor is 8k when its temperature is 10 C! This means that the voltage across it will be 4V, as before. 214 FACET by Lab-Volt

3 Let's suppose that it is a NTC thermistor, and that its resistance drops to 2kΩ when the temperature has risen to 50 C. The voltage across the thermistor has now dropped to 2V. The thermistor resistance is now only half as big as the 4k resistor, and so the voltage across the thermistor is only half that across the 4k resistor. In other words, here we have a circuit that outputs a voltage that changes with temperature. Just what the control system needs to tell it what the weather is like in the outside world! Here are some more sensing units: Sensing unit Behavior A Temperature Output voltage drops as temperature rises B Temperature Output voltage rises as temperature rises C Light Output voltage drops as light level rises D Light Output voltage rises as light level rises Notice: the symbol for a LDR the fixed resistor in the earlier circuits has been replaced with a variable resistor (the symbol with an arrow through.) FACET by Lab-Volt 215

4 Microcontroller System Development EXERCISE QUESTIONS An electronic component that monitors changes in the environment, such as light, temperature, sound, and converts those changes into electrical signals is a. thermostat b. sound meter c. sensor Most sensors can interpret a combination of different conditions. a. True b. False The electrical signals passed by a sensor to a system are in the form of a. voltage changes b. current changes c. Both of the above are correct. EXERCISE PROCEDURE Set up the equipment The following is the equipment you will need for this exercise: Multiprogrammer Hardware: Setting: PICmicro Device Toggle Switch (Fast/Slow) Toggle Switch (RC/XTAL) XTAL PORTA PORTB PORTC PORTD PORTE 16F877A N/A XTAL 19,660,800 Hz Sensor Block Switch Block LCD display N/A N/A 216 FACET by Lab-Volt

5 Port B interrupts There are two more common interrupts that you should understand: port B bit 0, and port B change. The port B bit 0 interrupt will trigger a given macro every time the bit 0 line on the PICmicro device goes to a logic 1 or 5V. The port B change interrupt triggers every time there is a change of state on the highest 4 bits of port B: bits 4, 5, 6, 7. The port B bit 0 interrupt is straight forward enough, but the port B change is a little more difficult to handle. Here we will set up part of a hi-fi system that has 4 preset radio channels - channels 1 to 4. Each one is selected by the use of one of 4 push-to-make switches connected to port B. The idea behind our system will be that every time a switch is pressed the port B change interrupt will trigger a macro that alters the channel number. Follow the instructions below to set up the program. 1. Start a new flowchart with a 16F877A device. 2. Add an interrupt icon to the program. 3. Add a loop to the program. Don't put anything in the loop yet. To start with the loop will just keep the program going. The real work will be done by the interrupt routine we will make. 4. Add 4 push to make switches connected to Port B: bits 4, 5, 6, 7, using the bit drop down menu. Label them 'Channel 1' to 'Channel 4'. 5. Add two new Byte variables: 'channels' and 'switchs' 6. Add a new macro called 'Chandet' FACET by Lab-Volt 217

6 Microcontroller System Development 7. Assemble this program in the 'Chandet" macro. 218 FACET by Lab-Volt

7 Here is an explanation of how the 'Chandet' macro works: The first icon assigns the value of the top 4 bits of port B to the variable switches. Use masking to get the state of only the top 4 bits. The difficulty (or advantage) of the port B change interrupt is that it triggers on a change of status in port B. That means that it triggers when the switch is pressed, and also when it is released. Because of this you need to filter out all switch releases. We want to detect only switch presses. The first decision box detects a value of 0 for the variable switches. If a 0 is detected the connection point diverts the program to the end of the interrupt macro. The next decision box detects a value of 0x10 (16 decimal). This corresponds to the switch on RB4 being pressed. If RB4 is pressed then we assign the variable 'channel' to have a value of 1. The next decision box detects a value of 0x20 (32 decimal). This corresponds to the switch on RB5 being pressed. If RB5 is pressed then we assign the variable 'channel' to have a value of 2. The third decision box detects a value of 0x30 (48 decimal). This corresponds to the switch on RB6 being pressed. If RB6 is pressed then we assign the variable 'channel' to have a value of 3. The next decision box detects a value of 0x40 (64 decimal). This corresponds to the switch on RB7 being pressed. If RB7 is pressed then we assign the variable 'channel' to have a value of Double click on the interrupt icon in the main program. In the 'Interrupt on:' text box select 'RB port change'. In the 'Will call macro:' text box enter 'Chandet' so that it will call the macro called 'Chandet'. 9. Select CHIP...CLOCKSPEED and select 1000 icons per second. The actual value is not important: a setting other than 'As fast as possible' will allow you to see the values of the variables in the system as your program simulates. 10. Run the program, and check that the variable 'channel' is assigned a channel number on the press of a switch. Setting Up the LCD The hi-fi system will make use of the LCD display. We want to make the display show the volume and also the radio channel. Later on we can make it display data on the CD player etc. To do this we will use the first line of the display to show the volume and the second line to show the radio channel. In this program we will separate all of the main routines into separate FACET by Lab-Volt 219

8 Microcontroller System Development macros to make the structure of the main program easier to read. The two macros we will set up here will initialize the display, and then refresh the display as the program runs. 1. Add an LCD display to your project. Connect it to port C. 2. Generate two new macros. One called 'updatedisplay' and the other called 'initializedisplay' 3. Develop the following program in the 'initializedisplay' macro: You should, by now, have a good grasp of what is happening here. The first icon starts the display, then the cursor is set to 0,0 or the top left. The third icon prints "Volume:" on the top line, and the next icon moves the cursor to the second line. The last icon prints "Channel:" on the bottom line. 4. Add a few new variables that you will need: 'volume' of type Byte, and 'ADCreading' of type Int. We will get to these later. 220 FACET by Lab-Volt

9 5. Develop the program shown here in the 'updatedisplay' macro: Here the first icon moves the cursor to a point after "Volume:". It prints three blank spaces to delete the old volume setting. The next two icons move the cursor back to the previous position and print the value of the volume variable. The next icon moves the cursor to the bottom line of the display after "Channel:", and the last icon prints the actual volume. 6. To the main program, add a macro icon which calls the 'initializedisplay' macro. 7. Next, add another Interrupt icon. To demonstrate that it is possible to use more than one type of interrupt in one program, we will use a timer interrupt to call the 'updatedisplay' macro. Change the properties of the 'Will call macro:' to 'updatedisplay'. Change the properties of the 'Interrupt on:' to 'TMR0 Overflow'. Click on the properties button and set the interrupt to go off as slowly as possible - prescale rate=1:256, 75 Hz with a 19MHz crystal. Your main program should look like the one shown next. FACET by Lab-Volt 221

10 Microcontroller System Development 8. Simulate your program. Note that both the port B change interrupt and the timer interrupt both simulate. You will have to wait some time during simulation before the timer interrupt is triggered. The interrupt rate is 75Hz and in this time the PICmicro can execute hundreds of instructions. Using the ADC So far you have set up two interrupts, and three macros which are called from the main routine. In this next part of the project you will set up a further macro that will measure the signal on an analogue input, by using an ADC (Analog-to-Digital Converter). 1. Add an ADC component onto your project workspace. Alter the connection so that it is connected to ADC 1 - this is the potentiometer on the Sensor board. 2. Add a new macro and call it 'ADCmeasure'. 3. Add two Component macros to the ADCmeasure macro. Set the first to sample the ADC, and the second to ReadAsInt the value of the ADC into the variable adcreading that you set up previously. 4. Drag a Calculation icon into the macro and enter 'volume = adcreading / 10' into the Calculation field. You should have something like the flowchart shown next. 222 FACET by Lab-Volt

11 The process of sampling the ADC is a two stage one: first sample the value and then read the value into a variable. The PICmicro we are using here actually has up to 8 ADC inputs - AN0 to AN8. Internally however the PICmicro only has one Analogue to Digital Converter. Each of the 8 inputs can be switched to the ADC using internal analogue switches. This gives you a clue as to why the process of getting an analogue input into your program is a two stage process: internally Flowcode sets up the analog switch to connect to the relevant input, then it takes a reading. The ADC inside the PICmicro has a resolution of 10 bits. This means that to make use of the full range of the ADC you need to use a variable of type Int: a 16 bit variable. The value you read will vary between 0 and However we are used to seeing Volume presented as 0 to 10, or 0 to 100. Because of this we can quickly divide the ADC reading by 10 to get a scale of 0 to 102 as our volume setting. You should by now be able to think of programming techniques to cap the value at 100. Your system is nearly complete. In the Main routine drag a Macro icon into the loop. In this icon call the ADCmeasure macro. Your project is now quite functional. If you simulate it then you should see that when you click on a channel button the LCD displays the channel number. When you move the Volume dial you should see the volume displayed. Of course there are some bits missing: you have not developed the hardware and software to connect to a radio system to actually alter the channel, and you have not made any use of the volume variable to alter the amplification of the output stage of your hi-fi. However you have completed a significant part of the overall design project. The following image shows the entire project. Hopefully in this section you have learned that it is really useful to break the stages of your development down into several individual programs - each in its own macro. This allows you to build and test one part of the program at a time. This also makes your main program very easy to read - although in this case readability is compromised slightly by the use of interrupts. It is not immediately obvious to someone who has FACET by Lab-Volt 223

12 Microcontroller System Development not written the program how the Chandet macro is called, although the two interrupt macro icons in the main program do give a clue. EXERCISE QUESTIONS 1. In this procedure, the PORTB Interrupt will trigger a when the RB0 line on the PICmicro device changed to a logic 1. a. macro b. string c. decision 2. The use of identifies the specific bits that are involved in any programming. a. masking b. macros c. decisions 3. In this procedure, the process of sampling the ADC includes the following: a. read the value into a variable. b. sample the value and then read the value into a variable. c. sample the value, read the value into a variable, compile the data. 224 FACET by Lab-Volt

13 EXERCISE CONCLUSION Sensors use the language of electrical signals, voltages, and currents to communicate information about the outside world to electronic control systems. Light sensors, temperature sensors, and sound sensors are some typical types of sensors. When there are changes in conditions, some sensors produce a change in resistance that is then converted to a change in voltage or current in order to be understood by the electronic control system. One way of making this conversion is by using a voltage divider. REVIEW QUESTIONS 1. An electronic control system requires to give it information about the outside world. a. capacitors b. electromagnets c. resistors d. sensors 2. An LDR and a photodiode are two types of a. humidity sensors. b. light sensors. c. sound sensors. d. temperature sensors. 3. In order for an electronic control system to understand the information from the sensor, the information must be turned into: a. electrical signals. b. voltages. c. currents. d. All of the above are correct. e. None of the above is correct. 4. A changes resistance into a change in voltage or current. a. voltage divider b. current divider c. voltage multiplier d. current multiplier 5. A thermister: a. is a temperature sensor. b. may be either NTC or PTC. c. is a type of LDR. d. Both a and b are correct. e. None of the above is correct. CMS AVAILABLE FAULTS AVAILABLE FACET by Lab-Volt 225

EE 109 Midterm Review

EE 109 Midterm Review EE 109 Midterm Review 1 2 Number Systems Computer use base 2 (binary) 0 and 1 Humans use base 10 (decimal) 0 to 9 Humans using computers: Base 16 (hexadecimal) 0 to 15 (0 to 9,A,B,C,D,E,F) Base 8 (octal)

More information

Hashemite University Faculty of Engineering Mechatronics Engineering Department. Microprocessors and Microcontrollers Laboratory

Hashemite University Faculty of Engineering Mechatronics Engineering Department. Microprocessors and Microcontrollers Laboratory Hashemite University Faculty of Engineering Mechatronics Engineering Department Microprocessors and Microcontrollers Laboratory The Hashemite University Faculty of Engineering Department of Mechatronics

More information

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources October 11, 2002 Stanford University - EE281 Lecture #4 #1 Announcements Project Proposal Lecture #4 Outline AVR Processor Resources A/D Converter (Analog to Digital) Analog Comparator Real-Time clock

More information

9 Feedback and Control

9 Feedback and Control 9 Feedback and Control Due date: Tuesday, October 20 (midnight) Reading: none An important application of analog electronics, particularly in physics research, is the servomechanical control system. Here

More information

Experiment P55: Light Intensity vs. Position (Light Sensor, Motion Sensor)

Experiment P55: Light Intensity vs. Position (Light Sensor, Motion Sensor) PASCO scientific Vol. 2 Physics Lab Manual: P55-1 Experiment P55: (Light Sensor, Motion Sensor) Concept Time SW Interface Macintosh file Windows file illuminance 30 m 500/700 P55 Light vs. Position P55_LTVM.SWS

More information

Learning Objectives:

Learning Objectives: Topic 5.4 Instrumentation Systems Learning Objectives: At the end of this topic you will be able to; describe the use of the following analogue sensors: thermistors and strain gauges; describe the use

More information

Interfacing to Analog World Sensor Interfacing

Interfacing to Analog World Sensor Interfacing Interfacing to Analog World Sensor Interfacing Introduction to Analog to digital Conversion Why Analog to Digital? Basics of A/D Conversion. A/D converter inside PIC16F887 Related Problems Prepared By-

More information

Programmable Control Introduction

Programmable Control Introduction Programmable Control Introduction By the end of this unit you should be able to: Give examples of where microcontrollers are used Recognise the symbols for different processes in a flowchart Construct

More information

Name: First-Order Response: RC Networks Objective: To gain experience with first-order response of RC circuits

Name: First-Order Response: RC Networks Objective: To gain experience with first-order response of RC circuits First-Order Response: RC Networks Objective: To gain experience with first-order response of RC circuits Table of Contents: Pre-Lab Assignment 2 Background 2 National Instruments MyDAQ 2 Resistors 3 Capacitors

More information

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 PIC Functionality General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 General I/O Logic Output light LEDs Trigger solenoids Transfer data Logic Input Monitor

More information

GSM BASED PATIENT MONITORING SYSTEM

GSM BASED PATIENT MONITORING SYSTEM GSM BASED PATIENT MONITORING SYSTEM ABSTRACT This project deals with the monitoring of the patient parameters such as humidity, temperature and heartbeat. Here we have designed a microcontroller based

More information

Measuring Distance Using Sound

Measuring Distance Using Sound Measuring Distance Using Sound Distance can be measured in various ways: directly, using a ruler or measuring tape, or indirectly, using radio or sound waves. The indirect method measures another variable

More information

Name: Resistors and Basic Resistive Circuits. Objective: To gain experience with data acquisition proto-boards physical resistors. Table of Contents:

Name: Resistors and Basic Resistive Circuits. Objective: To gain experience with data acquisition proto-boards physical resistors. Table of Contents: Objective: To gain experience with data acquisition proto-boards physical resistors Table of Contents: Name: Resistors and Basic Resistive Circuits Pre-Lab Assignment 1 Background 2 National Instruments

More information

Schmitt trigger. V I is converted from a sine wave into a square wave. V O switches between +V SAT SAT and is in phase with V I.

Schmitt trigger. V I is converted from a sine wave into a square wave. V O switches between +V SAT SAT and is in phase with V I. When you have completed this exercise, you will be able to operate a sine wave to square wave converter. You will verify your results with an oscilloscope. Schmitt trigger. V I is converted from a sine

More information

A - Debris on the Track

A - Debris on the Track A - Debris on the Track Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! 2017 https://www.hamiltonbuhl.com/teacher-resources

More information

A - Debris on the Track

A - Debris on the Track A - Debris on the Track Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! 2018 courses.techcamp.org.uk/ Page 1 of 7

More information

Laboratory 1: Motion in One Dimension

Laboratory 1: Motion in One Dimension Phys 131L Spring 2018 Laboratory 1: Motion in One Dimension Classical physics describes the motion of objects with the fundamental goal of tracking the position of an object as time passes. The simplest

More information

UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING. SENG 466 Software for Embedded and Mechatronic Systems. Project 1 Report. May 25, 2006.

UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING. SENG 466 Software for Embedded and Mechatronic Systems. Project 1 Report. May 25, 2006. UNIVERSITY OF VICTORIA FACULTY OF ENGINEERING SENG 466 Software for Embedded and Mechatronic Systems Project 1 Report May 25, 2006 Group 3 Carl Spani Abe Friesen Lianne Cheng 03-24523 01-27747 01-28963

More information

EC-3: Capacitors and RC-Decay

EC-3: Capacitors and RC-Decay Your TA will use this sheet to score your lab. It is to be turned in at the end of lab. You must use complete sentences and clearly explain your reasoning to receive full credit. EC-3, Part I: Do not do

More information

Physics 3 Lab 5 Normal Modes and Resonance

Physics 3 Lab 5 Normal Modes and Resonance Physics 3 Lab 5 Normal Modes and Resonance 1 Physics 3 Lab 5 Normal Modes and Resonance INTRODUCTION Earlier in the semester you did an experiment with the simplest possible vibrating object, the simple

More information

Lab 6 Instrument Familiarization

Lab 6 Instrument Familiarization Lab 6 Instrument Familiarization What You Need To Know: Voltages and currents in an electronic circuit as in a CD player, mobile phone or TV set vary in time. Throughout todays lab you will investigate

More information

LINE MAZE SOLVING ROBOT

LINE MAZE SOLVING ROBOT LINE MAZE SOLVING ROBOT EEE 456 REPORT OF INTRODUCTION TO ROBOTICS PORJECT PROJECT OWNER: HAKAN UÇAROĞLU 2000502055 INSTRUCTOR: AHMET ÖZKURT 1 CONTENTS I- Abstract II- Sensor Circuit III- Compare Circuit

More information

Resistive components in circuits

Resistive components in circuits Resistive components in circuits Learners should be able to: (a) describe the effect of adding resistors in series and (b) use equations for series and parallel resistor combinations resistors in series

More information

MicroLab 500-series Getting Started

MicroLab 500-series Getting Started MicroLab 500-series Getting Started 2 Contents CHAPTER 1: Getting Started Connecting the Hardware....6 Installing the USB driver......6 Installing the Software.....8 Starting a new Experiment...8 CHAPTER

More information

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp Op Amp Fundamentals When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp In general, the parameters are interactive. However, in this unit, circuit input

More information

GlassSpection User Guide

GlassSpection User Guide i GlassSpection User Guide GlassSpection User Guide v1.1a January2011 ii Support: Support for GlassSpection is available from Pyramid Imaging. Send any questions or test images you want us to evaluate

More information

Exercise 3: Voltage in a Series Resistive Circuit

Exercise 3: Voltage in a Series Resistive Circuit DC Fundamentals Series Resistive Circuits Exercise 3: Voltage in a Series Resistive Circuit EXERCISE OBJECTIVE When you have completed this exercise, you will be able to determine the voltage in a series

More information

More Fun with A/D Converters

More Fun with A/D Converters More Fun with A/D Converters The A/D input allows you to input numbers (0 to 1023) into the PIC processor with a potentiometer. This illustrates some of the things this allows you to do: Electronic Trombone:

More information

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name MPSD A/D Lab Exercise Analog-to-Digital Converter Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a

More information

Chapter 5: Signal conversion

Chapter 5: Signal conversion Chapter 5: Signal conversion Learning Objectives: At the end of this topic you will be able to: explain the need for signal conversion between analogue and digital form in communications and microprocessors

More information

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002 Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002 Basic Specs: - 30 pins capable of digital I/O - 8 that can be analog inputs - 2 capable of PWM - 8K of nonvolatile FLASH memory - 386 bytes

More information

Name EET 1131 Lab #2 Oscilloscope and Multisim

Name EET 1131 Lab #2 Oscilloscope and Multisim Name EET 1131 Lab #2 Oscilloscope and Multisim Section 1. Oscilloscope Introduction Equipment and Components Safety glasses Logic probe ETS-7000 Digital-Analog Training System Fluke 45 Digital Multimeter

More information

IME-100 ECE. Lab 1. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

IME-100 ECE. Lab 1. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE, IME-100 ECE Lab 1 Electrical and Computer Engineering Department Kettering University 1-1 IME-100, ECE Lab1 Circuit Design, Simulation, and Layout In this laboratory exercise, you will do the following:

More information

Portland State University MICROCONTROLLERS

Portland State University MICROCONTROLLERS PH-315 MICROCONTROLLERS INTERRUPTS and ACCURATE TIMING I Portland State University OBJECTIVE We aim at becoming familiar with the concept of interrupt, and, through a specific example, learn how to implement

More information

Devantech SRF04 Ultra-Sonic Ranger Finder Cornerstone Electronics Technology and Robotics II

Devantech SRF04 Ultra-Sonic Ranger Finder Cornerstone Electronics Technology and Robotics II Devantech SRF04 Ultra-Sonic Ranger Finder Cornerstone Electronics Technology and Robotics II Administration: o Prayer PicBasic Pro Programs Used in This Lesson: o General PicBasic Pro Program Listing:

More information

Activity P57: Transistor Lab 3 Common-Emitter Amplifier (Voltage Sensor)

Activity P57: Transistor Lab 3 Common-Emitter Amplifier (Voltage Sensor) Activity P57: Transistor Lab 3 Common-Emitter Amplifier (Voltage Sensor) Concept DataStudio ScienceWorkshop (Mac) ScienceWorkshop (Win) Semiconductors P57 Common Emitter.DS (See end of activity) (See end

More information

Chapter 6: Microcontrollers

Chapter 6: Microcontrollers Chapter 6: Microcontrollers 1. Introduction to Microcontrollers It s in the name. Microcontrollers: are tiny; control other electronic and mechanical systems. They are found in a huge range of products:

More information

2.0 Discussion: 2.1 Approach:

2.0 Discussion: 2.1 Approach: 2.0 Discussion: 2.1 Approach: The design for a Power Monitor and Data Logging System is comprised of two major components: the Power Meter and the Data Logger. The Power Meter is the package that plugs

More information

2 Thermistor + Op-Amp + Relay = Sensor + Actuator

2 Thermistor + Op-Amp + Relay = Sensor + Actuator Physics 221 - Electronics Temple University, Fall 2005-6 C. J. Martoff, Instructor On/Off Temperature Control; Controlling Wall Current with an Op-Amp 1 Objectives Introduce the method of closed loop control

More information

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ υιοπασδφγηϕκλζξχϖβνµθωερτψυιοπασδ φγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκλζ ξχϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµ EE 331 Design Project Final Report θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ

More information

Lesson 4 Examples of the Sensors. Chapter-7 L04: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Lesson 4 Examples of the Sensors. Chapter-7 L04: Internet of Things , Raj Kamal, Publs.: McGraw-Hill Education Lesson 4 Examples of the Sensors 1 Temperature Measuring and Control sensors Thermistor applications in home automation Sensing the cloud cover The output of thermistor connected to circuit of a signal

More information

Follow this and additional works at: Part of the Engineering Commons

Follow this and additional works at:  Part of the Engineering Commons Trinity University Digital Commons @ Trinity Mechatronics Final Projects Engineering Science Department 5-2016 Heart Beat Monitor Ivan Mireles Trinity University, imireles@trinity.edu Sneha Pottian Trinity

More information

understanding sensors

understanding sensors The LEGO MINDSTORMS EV3 set includes three types of sensors: Touch, Color, and Infrared. You can use these sensors to make your robot respond to its environment. For example, you can program your robot

More information

Goals. Introduction. To understand the use of root mean square (rms) voltages and currents.

Goals. Introduction. To understand the use of root mean square (rms) voltages and currents. Lab 10. AC Circuits Goals To show that AC voltages cannot generally be added without accounting for their phase relationships. That is, one must account for how they vary in time with respect to one another.

More information

3A: PROPERTIES OF WAVES

3A: PROPERTIES OF WAVES 3A: PROPERTIES OF WAVES Int roduct ion Your ear is complicated device that is designed to detect variations in the pressure of the air at your eardrum. The reason this is so useful is that disturbances

More information

Chapter 14. using data wires

Chapter 14. using data wires Chapter 14. using data wires In this fifth part of the book, you ll learn how to use data wires (this chapter), Data Operations blocks (Chapter 15), and variables (Chapter 16) to create more advanced programs

More information

Chapter 7: Instrumentation systems

Chapter 7: Instrumentation systems Chapter 7: Instrumentation systems Learning Objectives: At the end of this topic you will be able to: describe the use of the following analogue sensors: thermistors strain gauge describe the use of the

More information

EE 308 Lab Spring 2009

EE 308 Lab Spring 2009 9S12 Subsystems: Pulse Width Modulation, A/D Converter, and Synchronous Serial Interface In this sequence of three labs you will learn to use three of the MC9S12's hardware subsystems. WEEK 1 Pulse Width

More information

The light sensor, rotation sensor, and motors may all be monitored using the view function on the RCX.

The light sensor, rotation sensor, and motors may all be monitored using the view function on the RCX. Review the following material on sensors. Discuss how you might use each of these sensors. When you have completed reading through this material, build a robot of your choosing that has 2 motors (connected

More information

ELEXBO. Electrical - Experimentation Box

ELEXBO. Electrical - Experimentation Box ELEXBO Electrical - Experimentation Box 1 Table of contents 2 Introduction...3 Basics...3 The current......4 The voltage...6 The resistance....9 Measuring resistance...10 Summary of the electrical values...11

More information

Learning Objectives:

Learning Objectives: Learning Objectives: At the end of this topic you will be able to; Analyse and design a DAC based on an op-amp summing amplifier to meet a given specification. 1 Digital and Analogue Information Module

More information

LC-10 Chipless TagReader v 2.0 August 2006

LC-10 Chipless TagReader v 2.0 August 2006 LC-10 Chipless TagReader v 2.0 August 2006 The LC-10 is a portable instrument that connects to the USB port of any computer. The LC-10 operates in the frequency range of 1-50 MHz, and is designed to detect

More information

Single Board Computer System Undergraduate Education: Design and Fabrication of a mixed signal automated Guitar tuning system

Single Board Computer System Undergraduate Education: Design and Fabrication of a mixed signal automated Guitar tuning system Single Board Computer System Undergraduate Education: Design and Fabrication of a mixed signal automated Guitar tuning system Charles Duvall Asst. Professor SPSU, Ross Pettingill GTRI Abstract Undergraduate

More information

EE445L Fall 2012 Final Version B Page 1 of 7

EE445L Fall 2012 Final Version B Page 1 of 7 EE445L Fall 2012 Final Version B Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes on this answer page. When you are done, you turn in

More information

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab The purpose of this lab is to learn about sensors and use the ADC module to digitize the sensor signals. You will use the digitized signals

More information

A - Debris on the Track

A - Debris on the Track A - Debris on the Track Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! Step 1 2017 courses.techcamp.org.uk/ Page

More information

Exercise 2: Current in a Series Resistive Circuit

Exercise 2: Current in a Series Resistive Circuit DC Fundamentals Series Resistive Circuits Exercise 2: Current in a Series Resistive Circuit EXERCISE OBJECTIVE circuit by using a formula. You will verify your results with a multimeter. DISCUSSION Electric

More information

ELCT 912: Advanced Embedded Systems

ELCT 912: Advanced Embedded Systems ELCT 912: Advanced Embedded Systems Lecture 5: PIC Peripherals on Chip Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering The PIC Family: Peripherals Different PICs have different

More information

ACTIVITY 1: Measuring Speed

ACTIVITY 1: Measuring Speed CYCLE 1 Developing Ideas ACTIVITY 1: Measuring Speed Purpose In the first few cycles of the PET course you will be thinking about how the motion of an object is related to how it interacts with the rest

More information

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller. Catch the Dots Introduction In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller. Step 1: Creating a controller Let s start

More information

Data sheet. MATRIX

Data sheet.  MATRIX Data sheet www.matrixtsl.com MATRIX ECIO-60-2.indd 1 10/3/2014 3:2:32 PM Contents Introduction 3 ECIO28P and ECIO40P ECIO40P16 4 ECRM40P 6 Flowcode 7 ECIO in use 8 FlowKit In Circuit Test board 9 Product

More information

Activity P52: LRC Circuit (Voltage Sensor)

Activity P52: LRC Circuit (Voltage Sensor) Activity P52: LRC Circuit (Voltage Sensor) Concept DataStudio ScienceWorkshop (Mac) ScienceWorkshop (Win) AC circuits P52 LRC Circuit.DS (See end of activity) (See end of activity) Equipment Needed Qty

More information

Part (A) Using the Potentiometer and the ADC* Part (B) LEDs and Stepper Motors with Interrupts* Part (D) Breadboard PIC Running a Stepper Motor

Part (A) Using the Potentiometer and the ADC* Part (B) LEDs and Stepper Motors with Interrupts* Part (D) Breadboard PIC Running a Stepper Motor Name Name (Most parts are team so maintain only 1 sheet per team) ME430 Mechatronic Systems: Lab 5: ADC, Interrupts, Steppers, and Servos The lab team has demonstrated the following tasks: Part (A) Using

More information

Exercise 2: FM Detection With a PLL

Exercise 2: FM Detection With a PLL Phase-Locked Loop Analog Communications Exercise 2: FM Detection With a PLL EXERCISE OBJECTIVE When you have completed this exercise, you will be able to explain how the phase detector s input frequencies

More information

t w = Continue to the next page, where you will draw a diagram of your design.

t w = Continue to the next page, where you will draw a diagram of your design. Name EET 1131 Lab #13 Multivibrators OBJECTIVES: 1. To design and test a monostable multivibrator (one-shot) using a 555 IC. 2. To analyze and test an astable multivibrator (oscillator) using a 555 IC.

More information

Let There Be Light. Opening Files. Deleting National Technology and Science Press

Let There Be Light. Opening Files. Deleting National Technology and Science Press Let There Be Light 2 Better to light a candle than to curse the darkness. Chinese Proverb The Hello World program demonstrates only the output aspect of a computer program. Now let s write a program that

More information

Lesson 3: Arduino. Goals

Lesson 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 information

Workshops Elisava Introduction to programming and electronics (Scratch & Arduino)

Workshops 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 information

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE 9S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE In this sequence of three labs you will learn to use the 9S12 S hardware sybsystem. WEEK 1 PULSE WIDTH MODULATION

More information

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester

Embedded Systems. Oscillator and I/O Hardware. Eng. Anis Nazer First Semester Embedded Systems Oscillator and I/O Hardware Eng. Anis Nazer First Semester 2016-2017 Oscillator configurations Three possible configurations for Oscillator (a) using a crystal oscillator (b) using an

More information

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

CURIE 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 information

Momentum and Impulse

Momentum and Impulse General Physics Lab Department of PHYSICS YONSEI University Lab Manual (Lite) Momentum and Impulse Ver.20180328 NOTICE This LITE version of manual includes only experimental procedures for easier reading

More information

A Super trainer with advanced hardware and software features only found in very expensive equipment.

A Super trainer with advanced hardware and software features only found in very expensive equipment. PLC Trainer PTS T100 LAB EXPERIMENTS A Super trainer with advanced hardware and software features only found in very expensive equipment. You won t find any similar equipment among our competitors at such

More information

ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview

ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair Overview For this assignment, you will be controlling the light emitted from and received by an LED/phototransistor pair. There are many

More information

Report on Dynamic Temperature control of a Peltier device using bidirectional current source

Report on Dynamic Temperature control of a Peltier device using bidirectional current source 19 May 2017 Report on Dynamic Temperature control of a Peltier device using bidirectional current source Physics Lab, SSE LUMS M Shehroz Malik 17100068@lums.edu.pk A bidirectional current source is needed

More information

GCE A level 1145/01 ELECTRONICS ET5

GCE A level 1145/01 ELECTRONICS ET5 Surname Centre Number Candidate Number Other Names 2 GCE A level 1145/01 ELECTRONICS ET5 S16-1145-01 A.M. FRIDAY, 17 June 2016 1 hour 30 minutes For s use ADDITIONAL MATERIALS In addition to this examination

More information

The Oscilloscope. Vision is the art of seeing things invisible. J. Swift ( ) OBJECTIVE To learn to operate a digital oscilloscope.

The Oscilloscope. Vision is the art of seeing things invisible. J. Swift ( ) OBJECTIVE To learn to operate a digital oscilloscope. The Oscilloscope Vision is the art of seeing things invisible. J. Swift (1667-1745) OBJECTIVE To learn to operate a digital oscilloscope. THEORY The oscilloscope, or scope for short, is a device for drawing

More information

PICmicro microcontroller systems

PICmicro microcontroller systems Page 1 Page 2 Contents Worksheet 1 - Burglar alarm (3-input AND gate) 3 Worksheet 2 - The bank problem (Programmable logic gate) 5 Worksheet 3 - Fridge alarm (Thermistor control) 7 Worksheet 4 - Keep cool!

More information

A2 Electronics Project: DARPS: A Digital Audio Recorder and Playback System. Name: Andrew Cottrell Year: 2011

A2 Electronics Project: DARPS: A Digital Audio Recorder and Playback System. Name: Andrew Cottrell Year: 2011 A2 Electronics Project: DARPS: A Digital Audio Recorder and Playback System. Name: Year: 2011 System Overview: I will design and create a system that will record a variable amount of audio data and then

More information

GCSE Electronics. Scheme of Work

GCSE Electronics. Scheme of Work GCSE Electronics Scheme of Work Week Topic Detail Notes 1 Practical skills assemble a circuit using a diagram recognize a component from its physical appearance (This is a confidence building/motivating

More information

Practicing with Ableton: Click Tracks and Reference Tracks

Practicing with Ableton: Click Tracks and Reference Tracks Practicing with Ableton: Click Tracks and Reference Tracks Why practice our instruments with Ableton? Using Ableton in our practice can help us become better musicians. It offers Click tracks that change

More information

An Introduction to Programming using the NXT Robot:

An Introduction to Programming using the NXT Robot: An Introduction to Programming using the NXT Robot: exploring the LEGO MINDSTORMS Common palette. Student Workbook for independent learners and small groups The following tasks have been completed by:

More information

PHY152 Experiment 4: Oscillations in the RC-Circuits (Measurements with an oscilloscope)

PHY152 Experiment 4: Oscillations in the RC-Circuits (Measurements with an oscilloscope) PHY152 Experiment 4: Oscillations in the RC-Circuits (Measurements with an oscilloscope) If you have not used an oscilloscope before, the web site http://www.upscale.utoronto.ca/generalinterest/harrison/oscilloscope/oscilloscope.html

More information

Overview. The Game Idea

Overview. The Game Idea Page 1 of 19 Overview Even though GameMaker:Studio is easy to use, getting the hang of it can be a bit difficult at first, especially if you have had no prior experience of programming. This tutorial is

More information

Understanding the Arduino to LabVIEW Interface

Understanding the Arduino to LabVIEW Interface E-122 Design II Understanding the Arduino to LabVIEW Interface Overview The Arduino microcontroller introduced in Design I will be used as a LabVIEW data acquisition (DAQ) device/controller for Experiments

More information

Voltage Current and Resistance II

Voltage Current and Resistance II Voltage Current and Resistance II Equipment: Capstone with 850 interface, analog DC voltmeter, analog DC ammeter, voltage sensor, RLC circuit board, 8 male to male banana leads 1 Purpose This is a continuation

More information

EE445L Fall 2011 Quiz 2A Page 1 of 6

EE445L Fall 2011 Quiz 2A Page 1 of 6 EE445L Fall 2011 Quiz 2A Page 1 of 6 Jonathan W. Valvano First: Last: November 18, 2011, 2:00pm-2:50pm. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

More information

MICROPROCESSORS A (17.383) Fall Lecture Outline

MICROPROCESSORS A (17.383) Fall Lecture Outline MICROPROCESSORS A (17.383) Fall 2010 Lecture Outline Class # 07 October 26, 2010 Dohn Bowden 1 Today s Lecture Syllabus review Microcontroller Hardware and/or Interface Finish Analog to Digital Conversion

More information

Introduction to Oscilloscopes Instructor s Guide

Introduction to Oscilloscopes Instructor s Guide Introduction to Oscilloscopes A collection of lab exercises to introduce you to the basic controls of a digital oscilloscope in order to make common electronic measurements. Revision 1.0 Page 1 of 25 Copyright

More information

FRIDAY, 18 MAY 1.00 PM 4.00 PM. Where appropriate, you may use sketches to illustrate your answer.

FRIDAY, 18 MAY 1.00 PM 4.00 PM. Where appropriate, you may use sketches to illustrate your answer. X036/13/01 NATIONAL QUALIFICATIONS 2012 FRIDAY, 18 MAY 1.00 PM 4.00 PM TECHNOLOGICAL STUDIES ADVANCED HIGHER 200 marks are allocated to this paper. Answer all questions in Section A (120 marks). Answer

More information

Spectrum Analysis: The FFT Display

Spectrum Analysis: The FFT Display Spectrum Analysis: The FFT Display Equipment: Capstone, voltage sensor 1 Introduction It is often useful to represent a function by a series expansion, such as a Taylor series. There are other series representations

More information

GCE A level 1145/01 ELECTRONICS ET5. P.M. THURSDAY, 31 May hours. Centre Number. Candidate Number. Surname. Other Names

GCE A level 1145/01 ELECTRONICS ET5. P.M. THURSDAY, 31 May hours. Centre Number. Candidate Number. Surname. Other Names Surname Other Names Centre Number 0 Candidate Number GCE A level 1145/01 ELECTRONICS ET5 P.M. THURSDAY, 31 May 2012 1 1 2 hours For s use Question Maximum Mark Mark Awarded 1. 6 2. 9 3. 8 4. 6 1145 010001

More information

Time-Varying Signals

Time-Varying Signals Time-Varying Signals Objective This lab gives a practical introduction to signals that varies with time using the components such as: 1. Arbitrary Function Generator 2. Oscilloscopes The grounding issues

More information

BIO 365L Neurobiology Laboratory. Training Exercise 1: Introduction to the Computer Software: DataPro

BIO 365L Neurobiology Laboratory. Training Exercise 1: Introduction to the Computer Software: DataPro BIO 365L Neurobiology Laboratory Training Exercise 1: Introduction to the Computer Software: DataPro 1. Don t Panic. When you run DataPro, you will see a large number of windows, buttons, and boxes. In

More information

GrovePi Temp-Humidity Sensor Lesson Video Script. Slide 1

GrovePi Temp-Humidity Sensor Lesson Video Script. Slide 1 Slide 1 Grove Pi Temp-Humidity Lesson In this GrovePi lesson we will Kick it up with a Temperature-Humidity sensor. A temperature-humidity sensor is used to detect temperature and to detect humidity level

More information

Electrical Measurements

Electrical Measurements Electrical Measurements INTRODUCTION In this section, electrical measurements will be discussed. This will be done by using simple experiments that introduce a DC power supply, a multimeter, and a simplified

More information

PID MOTOR CONTROLLER. Version 1.0. October Cytron Technologies Sdn. Bhd.

PID MOTOR CONTROLLER. Version 1.0. October Cytron Technologies Sdn. Bhd. PID MOTOR CONTROLLER PR24 Version 1.0 October 2009 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended through suggestion only

More information

ANALOG TO DIGITAL CONVERTER ANALOG INPUT

ANALOG TO DIGITAL CONVERTER ANALOG INPUT ANALOG INPUT Analog input involves sensing an electrical signal from some source external to the computer. This signal is generated as a result of some changing physical phenomenon such as air pressure,

More information

Temperature Monitoring and Fan Control with Platform Manager 2

Temperature Monitoring and Fan Control with Platform Manager 2 August 2013 Introduction Technical Note TN1278 The Platform Manager 2 is a fast-reacting, programmable logic based hardware management controller. Platform Manager 2 is an integrated solution combining

More information

Technological Studies. - Applied Electronics (H) TECHNOLOGICAL STUDIES HIGHER APPLIED ELECTRONICS OP-AMPS. Craigmount High School 1

Technological Studies. - Applied Electronics (H) TECHNOLOGICAL STUDIES HIGHER APPLIED ELECTRONICS OP-AMPS. Craigmount High School 1 TECHNOLOGICAL STUDIES HIGHER APPLIED ELECTRONICS OP-AMPS Craigmount High School 1 APPLIED ELECTRONICS Outcome 2 - Design and construct electronic systems, based on operational amplifiers, to meet given

More information