ENGG 1203 Tutorial. Quick Checking. Solution. A FSM design for a Vending machine (Revisited) Vending Machine. Vending machine may get three inputs

Similar documents
ENGG 1203 Tutorial. Solution (b) Solution (a) Simplification using K-map. Combinational Logic (II) and Sequential Logic (I) 8 Feb Learning Objectives

Physics 1402: Lecture 10 Today s Agenda

Series & Parallel Resistors 3/17/2015 1

R R V I R. Conventional Current. Ohms Law V = IR

Consider the following generalized simple circuit

ECE 1311: Electric Circuits. Chapter 2: Basic laws

EE40. Lec 3. Basic Circuit Analysis. Prof. Nathan Cheung. Reading: Hambley Chapter 2

Chapter 3: Electric Current and Direct-Current Circuit

ENGG 1203 Tutorial. Op Amps 10 Oct Learning Objectives. News. Ack.: MIT OCW Analyze circuits with ideal operational amplifiers

Kirchhoff's Laws and Circuit Analysis (EC 2)

DC Circuits. Electromotive Force Resistor Circuits. Kirchoff s Rules. RC Circuits. Connections in parallel and series. Complex circuits made easy

Circuit Theory I Basic Laws

Syllabus and Course Overview!

ENGG 1203 Tutorial. Solution. Op Amps 7 Mar Learning Objectives. Determine V o in the following circuit. Assume that the op-amp is ideal.

Delta & Y Configurations, Principles of Superposition, Resistor Voltage Divider Designs

Chapter 10 AC Analysis Using Phasors

Brian Blais Quick Homemade Guide to Circuits

A tricky node-voltage situation

Course Updates.

Direct-Current Circuits. Physics 231 Lecture 6-1

Module 2. DC Circuit. Version 2 EE IIT, Kharagpur

A tricky node-voltage situation

Solution: Based on the slope of q(t): 20 A for 0 t 1 s dt = 0 for 3 t 4 s. 20 A for 4 t 5 s 0 for t 5 s 20 C. t (s) 20 C. i (A) Fig. P1.

Physics 212. Lecture 9. Electric Current

ENGG 1203 Tutorial_05. Use of Multimeter. Lab 5 : SYSTEM. Office hours : Chow Yei Ching, CB-LG205 Thu, Fri; 15:30-17:30

EXPERIMENT THREE DC CIRCUITS

SPS Presents: A Cosmic Lunch!

Lecture #3. Review: Power

In this lecture, we will consider how to analyse an electrical circuit by applying KVL and KCL. As a result, we can predict the voltages and currents

ENGG 1203 Tutorial_9 - Review. Boolean Algebra. Simplifying Logic Circuits. Combinational Logic. 1. Combinational & Sequential Logic

Your Comments. I have three midterms this week; specifically, two tomorrow. I am studying for chemistry and calculus tonight.

I depicted in Figure 1. When a current of I amps (A) flows through the resistor, a voltage drop V AB volts (V) appears across the terminals A and B.

UNIT 4 DC EQUIVALENT CIRCUIT AND NETWORK THEOREMS

10/05/2018. Electric Circuits. Review of Previous Lesson

Designing Information Devices and Systems I Spring 2018 Lecture Notes Note 11

Physics Circuits: Series

UNIVERSITY OF ALABAMA Department of Physics and Astronomy. PH / LeClair Fall Circuits Exercises

Electric Circuits I. Nodal Analysis. Dr. Firas Obeidat

Review of Circuit Analysis

Symbol Offers Units. R Resistance, ohms. C Capacitance F, Farads. L Inductance H, Henry. E, I Voltage, Current V, Volts, A, Amps. D Signal shaping -

MEP 382: Design of Applied Measurement Systems Lecture 3: DC & AC Circuit Analysis

Intermediate Math Circles March 7, 2012 Problem Set: Linear Diophantine Equations II Solutions

MasteringPhysics: Assignment Print View. Problem 30.50

Capacitance. A different kind of capacitor: Work must be done to charge a capacitor. Capacitors in circuits. Capacitor connected to a battery

Direct Current Circuits. February 18, 2014 Physics for Scientists & Engineers 2, Chapter 26 1

Circuits. Electric Current & DC Circuits Circuits. Unit 6. April Electric Current. Electric Current. Electric Current. ΔQ Δt

Physics 142 Steady Currents Page 1. Steady Currents

4 Electric circuits. Serial and parallel resistors V 3 V 2 V Serial connection of resistors:

Chapter 20 Electric Circuits

EGR224 F 18 Assignment #4

Chapter 2. Engr228 Circuit Analysis. Dr Curtis Nelson

DC STEADY STATE CIRCUIT ANALYSIS

Agenda for Today. Elements of Physics II. Resistance Resistors Series Parallel Ohm s law Electric Circuits. Current Kirchoff s laws

Physics 2135 Exam 2 October 18, 2016

EE292: Fundamentals of ECE

2 A bank account for electricity II: flows and taxes

ENGR 2405 Class No Electric Circuits I

Chapter 16. Current and Drift Speed. Electric Current, cont. Current and Drift Speed, cont. Current and Drift Speed, final

The General Resistor Circuit Problem

Electrical Technology (EE-101-F)

Synchronous Sequential Circuit Design. Dr. Ehab A. H. AL-Hialy Page 1

Notes on Electricity (Circuits)

Physics 212. Lecture 11. RC Circuits. Change in schedule Exam 2 will be on Thursday, July 12 from 8 9:30 AM. Physics 212 Lecture 11, Slide 1

LABORATORY 4 ELECTRIC CIRCUITS I. Objectives

Circuits. 1. The Schematic

Discussion Question 6A

Preamble. Circuit Analysis II. Mesh Analysis. When circuits get really complex methods learned so far will still work,

ECE 2100 Circuit Analysis

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

CprE 281: Digital Logic

Power lines. Why do birds sitting on a high-voltage power line survive?

CprE 281: Digital Logic

Resistor. l A. Factors affecting the resistance are 1. Cross-sectional area, A 2. Length, l 3. Resistivity, ρ

POWER B. Terms: EMF, terminal voltage, internal resistance, load resistance. How to add up resistors in series and parallel: light bulb problems.

Notes on Electricity (Circuits)

Tutorial #4: Bias Point Analysis in Multisim

CprE 281: Digital Logic

Introductory Circuit Analysis

Electric Power * OpenStax HS Physics. : By the end of this section, you will be able to:

Synchronous Sequential Circuit Design

mywbut.com Mesh Analysis

ES250: Electrical Science. HW1: Electric Circuit Variables, Elements and Kirchhoff s Laws

ANNOUNCEMENT ANNOUNCEMENT

Chapter 5. Department of Mechanical Engineering

Physics 2020 Lab 5 Intro to Circuits

E40M Charge, Current, Voltage and Electrical Circuits KCL, KVL, Power & Energy Flow. M. Horowitz, J. Plummer, R. Howe 1

Chapter 2 Resistive Circuits

Kirchhoff s Rules. Kirchhoff s rules are statements used to solve for currents and voltages in complicated circuits. The rules are

Circuits. Circuits. Electric Current & DC Circuits. current and circuits presentation March 22, How to Use this File.

POLYTECHNIC UNIVERSITY Electrical Engineering Department. EE SOPHOMORE LABORATORY Experiment 2 DC circuits and network theorems

Series and Parallel. How we wire the world

in series Devices connected in series will have the same amount of charge deposited on each capacitor. But different potential difference. That means

Direct Current (DC): In a DC circuit the current and voltage are constant as a function of time. Power (P): Rate of doing work P = dw/dt units = Watts

Physics 2112 Unit 11

PICK UP: Papers & Calc. TURN IN: - (orange sheet if you did not yesterday) DO NOW: On a half-sheet, draw the schematic for the following circuit.

The equivalent model of a certain op amp is shown in the figure given below, where R 1 = 2.8 MΩ, R 2 = 39 Ω, and A =

Chapter 21 Electric Current and Direct- Current Circuits

PHYS 1444 Section 003 Lecture #12

Designing Information Devices and Systems II Fall 2016 Murat Arcak and Michel Maharbiz Homework 0. This homework is due August 29th, 2016, at Noon.

Chapter 4: Methods of Analysis

Transcription:

ENGG 1 Tutorial Quick Checking Sequential Logic (II) and Electrical Circuit (I) Feb Learning Objectives Design a finite state machine Analysis circuits through circuit laws (Ohm s Law, KCL and KL) News HW1 (Feb, 1, 11:55pm) Ack.: ISU CprE 81x, HKU ELEC18, MIT.111, MIT.1 If =, then 5 i = i + i = i + i5 i + i = i e = 1 ( + ) If i =, then = ( + ) ( + ) 5 NOT always true Always True 1 A FSM design for a ending machine (evisited) ending Machine Collect money, deliver product and change ending machine may get three inputs Inputs are nickel (5c), dime (1c), and quarter (5c) Only one coin input at a time Product cost is c Does not accept more than 5c eturns 5c or 1c back Exact change appreciated We are designing a state machine which output depends on both current state and inputs. Suppose we ask the machine to directly return the coin if it cannot accept an input coin. Input specification: I 1 I epresent the coin inserted - no coin ( cent), 1 nickel (5 cents), 1 dime (1 cents), 11 quarter (5 cents) Output specification: C 1 C P C 1 C represent the coin returned, 1, 1, 11 P indicates whether to deliver product, 1

States: S 1 S S epresent the money inside the machine now bits are enough to encode the states S ( cents) S5 (5 cents) 1 S1 1 S15 11 S 1 S5 11 S 11 S5 111 5 11/11 11/ 1/ 1/ S5 Input S5: Currently the machine has 5 cents Output Next state 11/11 S5 1/11 S 1/1 S / S5 e.g. 11/11 : If we insert a quarter (11), then the machine should return one quarter and zero product (11) 5c (5 cents inside the machine now) + 5c (insert 5 cents) = 5c (5 cents inside the machine in the next state) + 5c (return 5 cents) + c (return no product) 11/11 11/ 1/ 1/ S5 11/11 S5 1/11 S 1/1 S / S5 e.g. 1/11: If we insert a dime (1), then the machine should return one nickel and one product (11) 5c (5 cents inside the machine now) + 1c (insert 1 cents) = c (zero cent inside the machine in the next state) + 5c (return 5 cents) + c (return one product) e.g. 1/1: If we insert a nickel (1), then the machine should return zero coin and one product (1) 5c (5 cents inside the machine now) + 5c (insert 5 cents) = c (zero cent inside the machine in the next state) + c (return zero cent) + c (return one product) 7 8

A Parking Ticket FSM At Back Bay garage, Don and Larry are thinking of using an automated parking ticket machine to control the number of guest cars that a member can bring. The card reader tells the controller whether the car is a member or a guest car. Only one guest car is allowed per member at a discount rate only when s/he follows out the member at the exit (within the allotted time). The second guest must pay the regular parking fees. You have been hired to implement the control system for the machine which is located at the exit. Using your expertise on FSMs, design a FSM for the control system. Specifications Signals from the card reader: MEMBE and GUEST Signals from the toll booth: TOKEN (meaning one toke received), EXP (time for discounted guest payment has expired). Signal to the gate: OPEN. Fee: Members are free, Guest with a Member is 1 Token, egular Guest is Tokens. 9 1 The truth table that corresponds to the FSM The state labels can be mapped to a three bit state variable. All entries not entered below are illegal. 11 1

ules Governing Currents and oltages ule 1: Currents flow in loops The same amount of current flows into the bulb (top path) and out of the bulb (bottom path) ule : Like the flow of water, the flow of electrical current (charged particles) is incompressible Kirchoff s Current Law (KCL): the sum of the currents into a node is zero ule : oltages accumulate in loops Kirchoff s oltage Law (KL): the sum of the voltages around a closed loop is zero 1 1 Parallel/Series Combinations of esistance To simplify the circuit for analysis v = i + i v = i s 1 s = + p 1 1 1 1 = = 1 + 1 + = // 1 Series 1 Parallel oltage/current Divider I = + 1 = = 1 1 1I 1 + = = I 1 + oltage Divider Current Divider ( // ) = I 1 1 I1 I I 1 1 1 + I // = = = 1 = I + 1 15 1

Question: Potential Difference Assume all resistors have the same resistance,. Determine the voltage v AB. Determine AB We assign G = A B = = + 5.5 1 = = + 1.5 ( ) = =.5 1.5 = AB A B 17 18 Question: Current Calculation using Parallel/Series Combinations For the circuit in the figure, determine i 1 to i 5. (i) Ω Ω 1Ω Ω We apply: = I Series / Parallel Combinations Current Divider (ii) 1 Ω // Ω = Ω (iii) Ω Ω // Ω = Ω 7 /7Ω (iv) 5 Ω // Ω = Ω 7 7 19

(v) = I 5 = i1 i1 = 11.A 7 (vi) (vii) Ω Ω 1Ω Ω i = i + i 1 1 i = i1 = ( 11.) 1. = A + 7 i = i + i5 i = 11. 1. = 9.A i = ( )( 9.) =.A ( )( ) i 1 5 = 9. =.A Analyzing Circuits Assign node voltage variables to every node except ground (whose voltage is arbitrarily taken as zero) Assign component current variables to every component in the circuit Write one constructive relation for each component in terms of the component current variable and the component voltage Express KCL at each node except ground in terms of the component currents Solve the resulting equations Power = I = I = / 1 Question: Circuit Analysis a 1 = 8Ω, = 1Ω, = Ω, = 9Ω, 5 = 1Ω Battery: 1 = 1, =, = Step 1, Step esistor: I 1, I,, I 5 =? P 1, P,, P 5 =? N = I 1 : M 5 1 1 B I : M B I : M B Step 1, Step

a a M B = 5 I 1 + 1 + 1 I 1 I 1 = ( M B 1 )/( 5 + 1 ) = ( B )/18 Step N B = I + I I = ( N B )/( + ) = B / Step 5 a a M B = + I I = ( M B )/ = (1 B )/9 We get three relationships now (I 1, I, I ) Step KCL of Node B: I 1 + I + I = ( B )/18 + (1 B )/9 B / = B = 1/ Step, Step 5 7 8

a a I 1 = ( B )/18 = 1/15 A =.1A I = (1 B )/9 = /7 A =.7A I = B / = 8/5 A =.178A Step 5 P = I = P 1 = (.1) 8 =.858W P = (.7) 9 =.98W = / (., 9Ω) 9 Quick Checking Quick Checking If =, then 5 i = i + i = i + i5 i + i = i e = 1 ( + ) If i =, then = ( + ) ( + ) 5 NOT always true Always True If =, then 5 i = i + i = i + i5 i + i = i e = 1 ( + ) If i =, then = ( + ) ( + ) 5 NOT always true Always True 1

(Appendix) Boolean Algebra (Appendix) Boolean Algebra (Appendix) Question: oltage Calculation Find using single loop analysis Without simplifying the circuit Simplifying the circuit = v, = v, = v, = 1 Ω, = Ω, = Ω s1 s s 1 s1 s s 1 - + Choose loop current Apply KL eplace by I + + I + I + I + = Find s1 s 1 s s1 I = A 7 = I = v 7 s s 1 - + 5

Simplify the circuit with one voltage source and one resistor eq. = 1 + + = 7 ohm eq. = s1 + s + s = - + + = I = eq. / eq. = /7 A = /7 v eq. eq. 7