Lecture 1.

Slides:



Advertisements
Similar presentations
In this presentation you will:
Advertisements

Fair Use Building and Research Labs Presents
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
Arrange the following in the order of current, starting with the lowest. (A) 7 coulombs in 3 seconds. (B) 10 Volts across 5 Ohms (C) 15 Volts across 7.
Basic Stamp II is kinda cool Bytes of EEPROM(non-volatile) - Clock speed of 20 MHz. - Holds 600 lines of code in EEPROM - executes an average of.
EET Electronics Survey Chapter 10 - Resistors.
SUMMER RESEARCH 2002 Polytechnic University Mechanical Engineering.
Electric Curcuits and Measurements Basic Electrical components and their functions Measurements of electrical circuits characteristics - Multimeter - Oscilloscope.
TIJ1O1 ELECTRONIC COMPONENTS AND CIRCUITS 1. Recap: What is an electric current? An electric current is a flow of microscopic particles called electrons.
Digital I/O Connecting to the Outside World
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
DC Measurements. 1. define voltage and give its unit of measurement; 2.identify the two different types of voltmeters; 3.connect a voltmeter in a circuit.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Basic Stamp Quick Start. Basic Stamp II Self contained computer –“Micro-controller” Specialized for “embedded” computing (sensing and controlling things)
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Current Electricity.
Electricity and Electrical Circuits. Chapter Sections O 1 - Electrical Circuits O 2 - Current and Voltage O 3 - Resistance and Ohm’s Law.
Electricity Unit 1 Physics.
ETEC 4824 Analogue Electronics Resistors and Ohms Law.
© The McGraw-Hill Companies, Inc McGraw-Hill 1 PRINCIPLES AND APPLICATIONS OF ELECTRICAL ENGINEERING THIRD EDITION G I O R G I O R I Z Z O N I C.
Agenda Introduction to circuits Building a simple circuit
Instrumental Analysis Electrical Components and Circuits.
MICRO CONTROLLER MODULE 1. Learning Objectives Name some gadgets that use microcontrollers. Define a microcontroller. Differentiate between a computer.
Measurements in Electric Circuits Gr. 9 Electricity Unit.
Review & BS2 Safety By Ilya Zarankin. What is Current? A flow of electrically charged particles Carried by small negatively-charged particles, called.
Electric Current and Circuits Lesson 3. Electric Current Electrons in a static state have energy, but are far more useful when they are made to transfer.
ME456: Mechatronics Prof. Clark J. Radcliffe Mechanical Engineering
ECS642U Embedded Systems Simple Electronics William Marsh.
ME456: Mechatronics Systems Design Lecture 3 Chapter 2: Lights On –Lights Off Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University.
Analog to Digital Converter David Wallace English 314.
Concepts of Engineering and Technology Basic Electricity and Electronics: DC Circuits Copyright © Texas Education Agency, All rights reserved. 1.
1 AGBell – EECT by Andrew G. Bell (260) Lecture 2.
Unit 13 Electric Circuits
1 ELEKTRONIKA DASAR Jurusan Teknik Elektro Fakultas Teknik UGM 2007 Bahan Kuliah Minggu I.
19 Current, Resistance, and Directed-Current Circuits Lectures by James L. Pazun Copyright © 2012 Pearson Education, Inc. publishing as Addison-Wesley.
Embedded Systems Introduction. Microprocessor building blocks 1. ALU (Arithmetic Logic Unit): The ALU is a sequential logic circuitry that is intended.
Introduction to Mechatronics Elements of Mechatronics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud.
How to Build a Digital Physical System - Lab Lecture 2.
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Class Parts List Breadboard 1 Wire kit 1 Red LEDs 3 Green LEDs 3 Yellow LEDs 1 Photoresistor 1 xPiezo sensor 1 Button 3 Slide button, switch 1 Reed switch.
IAT 267 Introduction to Technological Systems 1 Week 2 Workshop Basics of Electronic Circuits.
Resistance. Resistor A resistor is part of an electric circuit that resists the flow of electric current. As current flows through a resistor, some of.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Residential Cabling Technologies Copyright © 2005 Heathkit Company, Inc. All Rights Reserved Electrical Measurements.
Using a Multimeter.
Bruce E. Amrein, MES, MBA, CTS
L 25 Electricity and Magnetism [3]
Chapter 19: Current, Resistance, and Directed-Current Circuits
Electronics Ohm’s law & Resistance..
Resistance A resistor is a component in a circuit that transforms electrical energy into other types of energy. Some resistors like the heating element.
Learning to Work Efficiently and Accurately
MECHATRONICS Technologies and developed products will be incorporating electronics more and more into mechanisms, intimately and organically, and making.
Arduino Development for Beginners
Introduction Molecules: made up of atoms of individual elements.
Fair Use Building and Research Labs Presents
Unit 3 – Fundamentals of Electronics Examination Specifications
Unit 3 – Fundamentals of Electronics Examination Specifications
Programming Boe-Bots (Part 1)
Introduction to Electricity
Basic Electrical System Theory and Repairs
RESISTANCE.
Fundamentals of Electrical Circuits
Fair Use Building and Research Labs Presents
Introductory Electronics
Multimeter Purpose Used to measure Voltage and Current around a circuit. Multimeter is the generic name given to the universal, Volt, Amp, and Ohmmeter.
Prepared by: Engr. Qurban Ali Memon Incharge of Final project Lab.
Electronics Resistance R LabRat Scientific © 2018.
Amps, Volts and Resistance (Ohm’s Law)
Electrical Circuits.
Presentation transcript:

Lecture 1

SMART Funded by The National Science Foundation What is Current? A flow of electrically charged particles Carried by small negatively-charged particles, called electrons Represented by the symbol I, and is measured in amperes, or 'amps', A Most often measured in milliamps, mA Like water flow SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Water Analogy More current Less current More current Less current Less current SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation What is Voltage? Potential difference Represented by the symbol V, and is measured in volts, V Like potential energy at water fall SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Water Analogy SMART Funded by The National Science Foundation

Series Connection of Cells Each cell provides 1.5 V Two cells connected one after another, in series, provide 3 V, while three cells would provide 4.5 V Polarities matter SMART Funded by The National Science Foundation

Parallel Connection of Cells If the cells are connected in parallel, the voltage stays at 1.5 V, but now you can draw a larger current SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation DC and AC A cell provides a steady voltage, so that current flow is always in the same direction This is called direct current, or d.c The domestic mains provides a constantly changing voltage which reverses in polarity 60 times every second This gives rise to alternating current, or a.c SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Power Supply                                               Digital Analog SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Water Analogy of Wires SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Resistors Dissipative elements that convert electrical energy into heat Resistors limit current Unit is ohms, W Resistor Symbols SMART Funded by The National Science Foundation

Water Analogy of Resistor SMART Funded by The National Science Foundation

Resistor Applications Resistors are used for Limiting current Lowering voltage (voltage divider) As current divider As a sensor (potentiometers, photoresistors, strain gauge) As pull-up or pull down elements SMART Funded by The National Science Foundation

Resistors of Different Sizes SMART Funded by The National Science Foundation

How to Read Resistor Values 1 By color code By digital multi meter (DMM) SMART Funded by The National Science Foundation

How to Read Resistor Values 2 By color code SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Resistance Color Code Number Color black 1 brown 2 red 3 orange 4 yellow 5 green 6 blue 7 violet 8 grey 9 white Tolerance Color ±1% brown ±2% red ±5% gold ±10% silver SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Example The first band is yellow, so the first digit is 4 The second band is violet, so the second digit is 7 The third band is red, so the multiplier is Resistor value is SMART Funded by The National Science Foundation

Metric Units and Conversions Abbreviation Means Multiply unit by Or p pico .000000000001 10 -12 n nano .000000001 10 -9 µ micro .000001 10 -6 m milli .001 10 -3 . Unit 1 10 0 k kilo 1,000 10 3 M mega 1,000,000 10 6 G giga 1,000,000,000 10 9 SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Examples 0.01 http://www.electrician.com/resist_calc/resist_calc.htm SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Digital Multimeter 1 DMM is a measuring instrument An ammeter measures current A voltmeter measures the potential difference (voltage) between two points An ohmmeter measures resistance A multimeter combines these functions, and possibly some additional ones as well, into a single instrument SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Digital Multimeter 2 Voltmeter Parallel connection Ammeter Series connection Ohmmeter Without any power supplied Adjust range (start from highest limit if you don’t know) SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Digital Multimeter 3 Switched Ranging DMM Auto Ranging DMM SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Ammeter Connection Break the circuit so that the ammeter can be connected in series All the current flowing in the circuit must pass through the ammeter An ammeter must have a very LOW input impedance SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Voltmeter Connection The voltmeter is connected in parallel between two points of circuit A voltmeter should have a very HIGH input impedance SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Ohmmeter Connection An ohmmeter does not function with a circuit connected to a power supply Must take it out of the circuit altogether and test it separately SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Resistors in Series Rtotal=R1+R2 Rtotal=1+1=2kΩ SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Resistors in Parallel SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Exercise 1 SMART Funded by The National Science Foundation

Exercise 2 10Ω Pot Do experiment with a light bulb SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Potentiometer 1 Has an adjustable resistance Rotary potentiometer Linear potentiometer Use as a position sensor SMART Funded by The National Science Foundation

Terminal B Wiper Terminal A Potentiometer 2 Terminal B Wiper Terminal A SMART Funded by The National Science Foundation

Rotary Potentiometers SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Linear Potentiometer SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Breadboard 1 SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Breadboard 2 SMART Funded by The National Science Foundation

How to Insert a Component into a Breadboard SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Resistor Experiments Experiments Chapters What’s micro controller Basic A and D Earth measurements Robotics StampWorks Others On coming slides SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 1 Read resistors’ nominal values using color code Determine resistors’ values using an Ohmmeter Determine resistors’ values using DMM (Voltmeter and Ammeter) and compare with results from 1 and 2 Make serial connection with two resistors Repeat 1, 2, and 3 Make parallel connection with two resistors Make combination of serial and parallel connection with three resistors SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 2 Adjust and Determine the potentiometer value such that Vin Vout Pot. SMART Funded by The National Science Foundation

Lecture 2

SMART Funded by The National Science Foundation Mechatronics 1 Synergistic integration of Mechanical engineering Control theory Computer science Electronics To manage complexity, uncertainty, and communication in engineered systems SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Mechatronics 2 Typical knowledgebase for optimal design and operation of mechatronic systems comprises of Dynamic system modeling and analysis Decision and control theory Sensors and signal conditioning Actuators and power electronics Hardware interfacing Rapid control prototyping Embedded computing SMART Funded by The National Science Foundation

Mechatronic Applications Smart consumer products: home security, camera, microwave oven, toaster, dish washer, laundry washer-dryer, climate control units, etc. Medical: implant-devices, assisted surgery, haptic, etc. Defense: unmanned air, ground, and underwater vehicles, smart munitions, jet engines, etc. Manufacturing: robotics, machines, processes, etc. Automotive: climate control, antilock brake, active suspension, cruise control, air bags, engine management, safety, etc. Network-centric, distributed systems: distributed robotics, tele-robotics, intelligent highways, etc. SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Roborat 1 SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Roborat 2 SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Roborat 3 SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Robocockroach SMART Funded by The National Science Foundation

Key Elements of Mechatronics SMART Funded by The National Science Foundation

Elements of Mechatronics 1 Mechanical elements SMART Funded by The National Science Foundation

Elements of Mechatronics 2 Electromechanical elements SMART Funded by The National Science Foundation

Elements of Mechatronics 3 Electrical/Electronic elements                                               SMART Funded by The National Science Foundation

Elements of Mechatronics 4 Control interface/computing hardware elements SMART Funded by The National Science Foundation

Elements of Mechatronics 4 Computer elements SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Microprocessors Perform arithmetic, logic, communication, an control function Arithmetic/logic unit(ALU) Instruction registers and decoders Data registers Control unit Intel 4004 (4bit microprocessor), Intel 8080 (8bit microprocessor) SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Microcontrollers Special purpose miniaturized computers Single integrated circuit containing many specialized and sophisticated circuits and functions Two primary components RAM CPU with instruction set SMART Funded by The National Science Foundation

Microcontroller Architecture CPU RAM ROM, EPROM, or EEPROM Digital I/O Serial communication timers A/D D/A Analog actuators Amplifiers Analog diplays Switches On-off sensors External A/D or D/A Digital displays On-off actuators External EEPROM Other microcontrollers Host computer Analog sensors Potentiometers Monitored voltage SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation PIC Microcontrollers PIC 16C57 (unit price: $7.50 in single quantities, $3.50 in quantities of 1000 or more) SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Basic Stamp 2 Simple and easy to use PIC-based PBASIC interpreter on ROM 16 digital I/O PIC 16C57 2kbyte EEPROM http://www.parallax.com/Downloads/Documentation/bs/mod/BASIC_Stamp_2_Schematic_Rev_F.pdf SMART Funded by The National Science Foundation

Stamp Development Board 5V Voltage regulator Servomotor connector Caution!!                                                                   Capacitors Breadboard DB9 connector BS2 socket Reset button Board of education SMART Funded by The National Science Foundation

Hardware Considerations Power requirements BS2 requires regulated 5DCV and draws about 8mA Each I/O pin of BS2 can Source up to 20mA Sink up to 25 mA When the voltage regulator on BOE is being used, all I/O pin as a group can Source up to 40mA Sink up to 50mA SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation BS2 Pin Descriptions Pin Name Description 1 SOUT Serial out 2 SIN Serial in 3 ATN Attention 4 VSS System ground 5-20 P0-P15 Input/Output pins 21 VDD 5DC V 22 RES Reset 23 24 VIN Unregulated power in SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation BS2 Variable Types Var type Size Range of value bit 1 bit 0, 1 nib 4 bits 0-15 byte 8 bits 0-255 word 16 bits 0-65535 OnOff var bit InOutPins var nib ADCin var byte Count var word SMART Funded by The National Science Foundation

Binary, Decimal, and Hexadecimal Numbers 0000 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 Binary Decimal Hexadecimal 1000 8 1001 9 1010 10 A 1011 11 B 1100 12 C 1101 13 D 1110 14 E 1111 15 F SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Variable Command b0=10 b0= %00001010 b0=$0A (375)2 is 00000001 01110111 b3 var byte b3=375 Debug DEC b3 01110111 = 27(0)+26(1)+25(1)+24(1) +23(0)+22(1)+21(1)+20(1) = 119 Result is 119 SMART Funded by The National Science Foundation

Assigning Pins for I/O DIRS: 1 for output, 0 for input OUTS 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 DIR D DIR C DIR B DIR A DIR H DIR L OUTS 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 OUT D OUT C OUT B OUT A OUT H OUT L Same as for INS SMART Funded by The National Science Foundation

How to Protect the I/O Pins Vdd BS2 Vss 270Ω P0 P1 SMART Funded by The National Science Foundation

Variables Experiments Chapters What’s micro controller Basic A and D Earth measurements Robotics StampWorks Others On coming slides SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 1 myCon CON 10 myVar1 VAR Byte myVar2 VAR Byte myVar3 VAR word myVar4 VAR word myVar1=5 myVar2=25 myVar3=375 myVar4=400  SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 2 debug "myCon= ", DEC myCon, cr debug "myVar1= ", DEC myVar1, cr debug "myVar2= ", DEC myVar2, cr debug "myVar3= ", DEC myVar3, cr debug "myVar4= ", DEC myVar4, cr debug "myVar3 in BIN= ", BIN myVar3, cr debug "Low byte of 375=", BIN myVar3.byte0, cr debug "High byte of 375=", BIN myVar3.byte1, cr SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 3 b0=10 debug "b0 input in DEC.", cr debug "b0 in DEC= ", DEC b0, cr debug "b0 in BIN= ", BIN b0, cr debug "b0 in HEX= ", HEX b0, cr SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 4 b0=%00001010 debug "b0 input in BIN.", cr debug "b0 in DEC= ", DEC b0, cr debug "b0 in BIN= ", BIN b0, cr debug "b0 in HEX= ", HEX b0, cr SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 5 b0=$0A debug "b0 input in HEX.", cr debug "b0 in DEC= ", DEC b0, cr debug "b0 in BIN= ", BIN b0, cr debug "b0 in HEX= ", HEX b0, cr SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 6 b0=10 b1=20 b2=b0+b1 b3=375   debug "b0 in DEC= ", DEC b0, cr debug "b1 in DEC= ", DEC b1, cr debug "b2 in DEC= ", DEC b2, cr debug "b3 in DEC= ", DEC b3, cr SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 7 debug "b0 in BIN= ", BIN b0, cr debug "b1 in BIN= ", BIN b1, cr debug "b2 in BIN= ", BIN b2, cr debug "b3 in BIN= ", BIN b3, cr SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 8 w2=375   debug "w2 in DEC= ", DEC w2, cr debug "w2 in BIN= ", BIN w2, cr debug "b4 in BIN= ", BIN b4, cr debug "b5 in BIN= ", BIN b5, cr SMART Funded by The National Science Foundation

SMART Funded by The National Science Foundation Experiment Details 9 Please read “BASIC Stamp Frequently Asked Questions ” Please read and run all programs on “BASIC Stamp User's Manual ” from page 1 to page 75 And DEBUG on page 97 SMART Funded by The National Science Foundation