Designing Information Devices and Systems II Spring 2018 J. Roychowdhury and M. Maharbiz Homework 5

Similar documents
Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 7

Designing Information Devices and Systems II Spring 2017 Murat Arcak and Michel Maharbiz Homework 9

EE 16B Midterm 2, March 21, Name: SID #: Discussion Section and TA: Lab Section and TA: Name of left neighbor: Name of right neighbor:

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Midterm 2

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 9

Designing Information Devices and Systems II Spring 2018 J. Roychowdhury and M. Maharbiz Homework 7

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 12

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 16

EE 16B Final, December 13, Name: SID #:

Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Midterm 2. Exam Location: 100 Genetics & Plant Bio

EE 40: Introduction to Microelectronic Circuits Spring 2008: Midterm 2

Source-Free RC Circuit

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Homework 5. This homework is due February 29, 2016, at Noon.

Electric Circuits I FINAL EXAMINATION

Designing Information Devices and Systems II Fall 2017 Miki Lustig and Michel Maharbiz Homework 1. This homework is due September 5, 2017, at 11:59AM.

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 224 Spring Test II. Michael R. Gustafson II

Designing Information Devices and Systems I Spring 2019 Homework 11

Refinements to Incremental Transistor Model

Introduction to Controls

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. ECE 110 Fall Test II. Michael R. Gustafson II

EECE 2150 Circuits and Signals, Biomedical Applications Final Exam Section 3

To find the step response of an RC circuit

Capacitors. Chapter How capacitors work Inside a capacitor

ECE Spring 2017 Final Exam

Problem Weight Score Total 100

EE-201 Review Exam I. 1. The voltage Vx in the circuit below is: (1) 3V (2) 2V (3) -2V (4) 1V (5) -1V (6) None of above

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 224 Spring Test II. Michael R. Gustafson II

ECE Spring 2015 Final Exam

Review of 1 st Order Circuit Analysis

Lecture 37: Frequency response. Context

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 9

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL & COMPUTER ENGINEERING FINAL EXAM. COURSE: ECE 3084A (Prof. Michaels)

Today. 1/25/11 Physics 262 Lecture 2 Filters. Active Components and Filters. Homework. Lab 2 this week

Physics 405/505 Digital Electronics Techniques. University of Arizona Spring 2006 Prof. Erich W. Varnes

EE 3120 Electric Energy Systems Study Guide for Prerequisite Test Wednesday, Jan 18, pm, Room TBA

Physics 42 Exam 2 PRACTICE Name: Lab

Designing Information Devices and Systems I Spring 2017 Babak Ayazifar, Vladimir Stojanovic Midterm 2. Exam location: 145 Dwinelle, last SID# 2

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences

PHYSICS 110A : CLASSICAL MECHANICS HW 2 SOLUTIONS. Here is a sketch of the potential with A = 1, R = 1, and S = 1. From the plot we can see

Designing Information Devices and Systems I Spring 2019 Midterm 2. Exam Location: Cory 521 (DSP)

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Homework 8. This homework is due October 26, 2015, at Noon.

ELEC 2501 AB. Come to the PASS workshop with your mock exam complete. During the workshop you can work with other students to review your work.

EE221 - Practice for the Midterm Exam

ECE2210 Final given: Spring 08

Electricity and Light Pre Lab Questions

4/27 Friday. I have all the old homework if you need to collect them.

Dynamic Modeling. For the mechanical translational system shown in Figure 1, determine a set of first order

ECE Circuit Theory. Final Examination. December 5, 2008

ELEC273 Lecture Notes Set 11 AC Circuit Theorems

EE-202 Exam III April 6, 2017

ENGR-4300 Spring 2009 Test 2. Name: SOLUTION. Section: 1(MR 8:00) 2(TF 2:00) 3(MR 6:00) (circle one) Question I (20 points): Question II (20 points):

Introduction to AC Circuits (Capacitors and Inductors)

Dynamic circuits: Frequency domain analysis

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Midterm 2. Exam location: 145 Dwinelle, last SID# 2

Physics 7A, Section 1 (Prof. Speliotopoulos) First Midterm, Fall 2008 Berkeley, CA

Sinusoidal Steady-State Analysis

First-order transient

Lecture 1. EE70 Fall 2007

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 8

Electric Circuits I Final Examination

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

EECS 16A Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Final. Exam location: RSF Back Left, last SID# 1, 4, + 5

EE221 Circuits II. Chapter 14 Frequency Response

Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Homework 5

NAME SID EE42/100 Spring 2013 Final Exam 1

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

San Jose State University Department of Electrical Engineering. Exam 2 Solution. EE 098-MIT 6.002x Fall 2012

Lecture 12 CMOS Delay & Transient Response

Pre-Lab Quiz / PHYS 224. R-C Circuits. Your Name Lab Section

EE221 Circuits II. Chapter 14 Frequency Response

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end.

Physics 2112 Unit 19

Basics of Network Theory (Part-I)

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Final Exam

ECE137B Final Exam. Wednesday 6/8/2016, 7:30-10:30PM.

EE115C Digital Electronic Circuits Homework #4

(1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

Physics 116A Notes Fall 2004

RLC Circuits. 1 Introduction. 1.1 Undriven Systems. 1.2 Driven Systems

Design Engineering MEng EXAMINATIONS 2016

Possible

EECE 2510 Circuits and Signals, Biomedical Applications Final Exam Section 3. Name:

Schedule. ECEN 301 Discussion #20 Exam 2 Review 1. Lab Due date. Title Chapters HW Due date. Date Day Class No. 10 Nov Mon 20 Exam Review.

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Discussion 5A

Problem Solving 8: Circuits

ECE2210 Final given: Fall 13

Electric Circuit Theory

Lab Experiment 2: Performance of First order and second order systems

Chapter 8: Converter Transfer Functions

Lab 08 Capacitors 2. Figure 2 Series RC circuit with SPDT switch to charge and discharge capacitor.

ENGG Fundamentals of Electrical Circuits and Machines Final Examination

Lectures 16 & 17 Sinusoidal Signals, Complex Numbers, Phasors, Impedance & AC Circuits. Nov. 7 & 9, 2011

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

SCHOOL OF MATHEMATICS MATHEMATICS FOR PART I ENGINEERING. Self-paced Course

Lab #15: Introduction to Computer Aided Design

Electromagnetic Oscillations and Alternating Current. 1. Electromagnetic oscillations and LC circuit 2. Alternating Current 3.

EE100Su08 Lecture #11 (July 21 st 2008)

! Crosstalk. ! Repeaters in Wiring. ! Transmission Lines. " Where transmission lines arise? " Lossless Transmission Line.

Date: _15 April (1) The only reference material you may use is one 8½x11 crib sheet and a calculator.

EE40 Lecture 11 Josh Hug 7/19/2010

Transcription:

EECS 16B Designing Information Devices and Systems II Spring 2018 J. Roychowdhury and M. Maharbiz Homework 5 This homework is due on Thursday, March 8, 2018, at 11:59AM (NOON). Self-grades are due on Monday, March 12, 2018, at 11:59AM (NOON). 1. Otto the Pilot Otto has devised a control algorithm, so that his plane climbs to the desired altitude by itself. However, he is having oscillatory transients as shown in the figure. Prof. Roychowdchury told him that if his system has complex eigenvalues λ 1,2 = v ± jω, then his altitude would indeed oscillate with frequency ω about the steady state value, 1 km, and that the time trace of his altitude would be tangent to the curves 1 + e vt and 1 e vt near its maxima and minima respectively. Altitude (km) 1.4843 1 + e vt 1 0.7654 1 e vt 5 10 15 20 Time (min) (a) Find the real part v and the imaginary part ω from the altitude plot. (b) Let the dynamical model for the altitude be [ ] [ ][ ] d y(t) 0 1 y(t) = dt ẏ(t) a 1 a 2 ẏ(t), where y(t) is the deviation of the altitude from the steady state value, ẏ(t) is the time derivative of y(t), and a 1 and a 2 are constants. Using your answer to part (a), find what a 1 and a 2 are. (c) Otto can change a 2 by turning a knob. Tell him what value he should pick so that he has a critically damped ascent with two real negative eigenvalues at the same location. 2. LED Strip I have an LED strip with 5 red LEDs whose brightnesses I want to set. These LEDs are addressed as a queue: at each time step, I can push a new brightness command between 0 and 255 to the left-most LED. Each of the following LEDs will then take on the brightness previously displayed by the LED immediately to its left. EECS 16B, Spring 2018, Homework 5 1

(a) What should we use for our state vector? What does it mean that this is a state vector? What is our input? (b) Is our system linear? If it is linear, write out the state equations in matrix form. Please choose a reasonable order for the state variables in the state vector. (c) Is this system controllable? Explain intuitively what this system s controllability means in terms of the LED brightnesses. (d) Is this system stable? [ ] (e) Starting from the pattern of brightnesses (from left to right) 0 127 0 255 0, can we maintain this pattern for all future time steps? Can we display any fixed pattern of brightnesses for all time? 3. Understanding the SIXT33N Car Control Model As we continue along the process of making the SIXT33N cars be awesome, we d like to better understand the car model that we will be using to develop a control scheme. As a wheel on the car turns, there is an encoder disc (see below) that also turns as the wheel turns. The encoder shines a light though the encoder disc, and as the wheel turns, the light is continually blocked and unblocked, allowing the encoder to detect rotations of the wheel per tick of the encoder disc. The following model applies separately to each motor of the car: Meet the variables at play in this model: v[t] = d[t + 1] d[t] = θu[t] β t - The current timestep of the model. Since we model the car as a discrete system, this will advance by 1 on every new sample in the system. d[t] - The current number of ticks advanced by this wheel. v[t] - The discrete-time velocity (in units of ticks/timestep) of the wheel, measured by finding the difference between two adjacent tick counts (d[t + 1] d[t]). u[t] - The input to the system, in terms of PWMs. As we will observe in lab, the circuit driving the model controls the amount of power delivered to the wheel in units of PWM intensity. This is a number between 0 and 255, where 0 means that no power is delivered to the motor and 255 means that maximum capable power is delivered to the motor. θ - In units of ticks/pwm, this models how much more the motor turns for every increase in PWM. This is empirically measured from the car. EECS 16B, Spring 2018, Homework 5 2

β - In units of ticks/timestep, this models the effect of friction on the car (if no power is applied to the motors, we d expect the velocities of the motors to decrease). This is empirically measured from the car. In this problem, we will assume that the motor conforms perfectly to this model to get an intuition of how the model works. (a) If we wanted to make the motor drive at a certain target velocity v, with what PWM u[t] should we feed the motor? (b) What signs should θ and β have? Should they be positive or negative? Note that applying PWM to the motor driver circuit can only ever deliver power in a way so as to cause the motor to move forwards and never backwards and that there are no braking mechanisms on the motor. (c) Even if the motor conforms perfectly to the model, our inputs still limit the range of velocities of the motor. Given that 0 u[t] 255 1, determine the maximum and minimum velocities possible with the motor. What does this tell us about the braking of the car? (d) Our intuition tells us that a motor on a car should eventually stop turning if we stop applying any power to it. Find v[t] as t, assuming that v(0) = v 0 (say v 0 > 0) and u[t] = 0. Does our model obey our intutition? What does that tell us about our model? (e) In order to characterize the car, we need to find the θ and β values that model your left and right motors: θ l, β l, θ r, and β r. We start by running our car on the ground to collect data. From the data collection, we get the distance covered by each motor, from which we can calculate the velocity of each motor over time (already done for you in the attached IPython notebook). We also know our inputs to each motor at each time step. Using the attached IPython notebook, find the best estimate for θ l, β l, θ r, and β r using least squares linear regression. (f) Now, using the θ and β values you found above, plot the predicted velocities of the left and right motor over the inputs u from 0 to 255. 4. Redo problem 1 of the midterm. (a) (b) (c) 5. Redo problem 2 of the midterm. (a) (b) (c) (d) 6. Redo problem 3 of the midterm. (a) 1 See https://www.arduino.cc/en/uploads/tutorial/pwm1.gif for an example of how PWM works and why this is the case. EECS 16B, Spring 2018, Homework 5 3

(b) 7. Redo problem 4 of the midterm. (a) (b) (c) 8. Redo problem 5 of the midterm. (a) (b) (c) (d) EECS 16B, Spring 2018, Homework 5 4

EE 16B Midterm 1 Spring 2018 SID# Name: SID #: (after the exam begins add your SID# in the top right corner of each page) Discussion Section and TA: Discussion Section and TA: Lab Section and TA: Name of left neighbor: Name of right neighbor: Instructions: Show your work. An answer without explanation is not acceptable and does not guarantee any credit. Only the front pages will be scanned and graded. Back pages won't be scanned; you can use them as scratch paper. Do not remove pages, as this disrupts the scanning. If needed, cross out any parts that you don't want us to grade. PROBLEM MAX 1 15 2 25 3 15 4 20 5 25 1

Problem 1 Warm up (15 points) a) Consider the following circuit. SID# a) For t 0, the following equation applies to vout(t). In addition, vout(0) = V0 and ddvv OOOOOO dddd dd 2 vv oooooo dddd 2 + AA ddvv oooooo dddd If AA < 2 BB, provide an expression for vout(t) 0. (5 points) + BBvv oooooo = 0 = 0 at t=0. v out (t) = 2

b) Consider the circuit below. SID# What is HH out (ω) = VV out (ω) VV in (ω) for ω? (5 points) HH out (ω ) = 3

c) Consider the Bode plot below. (5 points) SID# This is a Bode magnitude plot of the transfer function HH (ω). The expression for HH (ω) is shown below. HH (ω) = HH xx (ω) 1 + jj ωω ωω cc What is HH xx (ω)? HH xx (ω) = 4

Problem 2 H s and Bodes (25 points) SID# Consider the circuit below. There is nothing connected to the Vout terminal. (5 points) a) Provide an expression for HH out (ω) = VV out (ω) VV in (ω) HH out (ω) = 5

SID# b) For this part of the problem, assume you have ONE capacitor, ONE inductor and ONE resistor. If Z2 = 0 for all ω, which components would you choose for Z1 and Z3 such that the filter response is a passive low pass filter with a slope of -20 db/decade for frequencies beyond a single cutoff frequency? (5 points) Circle ONE component to go into the Z1 box: Capacitor Inductor Resistor Circle ONE component to go into the Z3 box: Capacitor Inductor Resistor 6

c) Consider the following circuit: SID# We define a transfer function HH out (ω) = II out (ω) VV in (ω). LOOK AT THE DEFINITION OF THE TRANSFER FUNCTION CAREFULLY. Provide an expression in canonical form for HH out (ω). (10 points) HH out (ω) = 7

SID# d) If L = 1 H and R1 = R2 = 1 Ω, provide below magnitude and phase Bode plots for HH out (ω). (5 points) Magnitude Phase 8

Problem 3 Transistors and RC s (15 points) Consider the circuit below. SID# a) Fill in the truth table below for the circuit above. VA, VB and Vout are digital voltages that can only assume values of 0 or VDD. (5 points) V A V B V out 0 0 0 VDD VDD 0 VDD VDD 9

SID# For this part, assume that VA = VB = VDD for - < t < 0. At t=0, VA and VB switch instantly from VDD to 0. Assume all transistors behave as resistors with the same value, R, if in the ON state and that all capacitances are already accounted for in the circuit above. b) Provide an expression for Vout(t 0). (10 points) 10

Problem 4 Phasors! (20 points) Consider the circuit below. SID# We are going to solve this circuit, which contains both a sinusoidal and a DC source using superposition and phasors. a) Solve for vout(t) if iin(t) = 0 and VDD = a non-zero constant. (5 points) 11

b) Solve for vout(t) if iin(t) = I0cos(ωt) and VDD = 0 V. (10 points) SID# 12

SID# c) Solve for vout(t) if iin(t) = I0cos(ωt) and VDD = a non-zero constant. (5 points) 13

SID# Problem 5 (25 points) a) Consider the following circuit. The switch is closed for t<0, then opens at t=0. Both of the independent sources have a DC value (i.e. they do not change with time). a) What is ix(t<0)? (5 points) b) What is vy(t<0)? (5 points) 14

SID# c) Provide an equation in the variable ix(t) that, when solved, would provide an expression for ix(t) for t 0. DO NOT SOLVE THE EQUATION. (10 points) d) If Cx = Cy = C = 1 F and Rx = R = 1 Ω and Ly = L = 1 H, provide an expression for ix(t) for t 0. (5 points) i x (t) = 15

Extra Space SID# 16

SID# 17

Contributors: Murat Arcak. Justin Yim. Kyoungtae Lee. Nikhil Shinde. EECS 16B, Spring 2018, Homework 5 22