Terms and Concepts Which words would be best to be in a description of what mechatronic is about? mechanics software batteries automatic electronics microcomputer integration power Book explanation of mechatronics – Combination discipline of computer, electrical and mechanical engineering. What are potential issues with mechatronic systems? *They can simplify the mechanical design by putting the complexity into the software and sensing. * They offer potentially more versatile performance. * Since they integrate mechanics, sensor, and software, unless they are designed with care * There are no downsides! Everything should be mechatronic! * They depend on having power available for sensors and software computation. No power -> no function! Shannon’s Sampling Theorem states that we need to sample a signal at a rate more than two times the maximum frequency component in the signal to retain all frequency components. The Nyquist frequency in a signal that has 10 Hz, 100 Hz, and 500 Hz frequency components is: 2 x fmax = 2 x 500 Hz = 1000 Hz. If the sampling rate is 2.5 kHz, the time interval between samples would be 0.4 ms. Aliasing can result when sample a signal V(t) = sin(t) + sin(2t) at less than 2 x fmax = 2 x (1/ ) = 0.6366 Hz. An A/D converter includes which four basic components? (refer to the lecture notes)? (1) D/A converter, (2) Clock, (3) comparator; (4) register. An analog multiplexer is used to simply switches among several analog inputs using transistors or relays and control signals. Stall Voltage is the maximum torque the motor can produce, at zero speed, associated with starting or overloading the motor. Stall Current is (P480-481) the maximum current through the motor for a given supply voltage. Stall Torque (P476) is the amount of load placed on a motor that will cause it to stop moving or the maximum torque the motor can procuce (at zero speed) associated with starting or overloading the motor. No-load Speed or Free Speed (P476) is the maximum sustained speed the motor can attain. Free Current (do your own internet research) is the current drawn when the motor is rotating freely at maximum speed, under no load other than friction and back-emf forces in the motor itself. Does term “rated” (e.g., rated current/voltage) and “nominal” (e.g., nominal current/voltage) in a DC motor means the same thing? If not, give your explanation (do your own research and include the sources). “rated” means it is the maximum value of current or voltage, while “nominal” means the normal operating condidtion (current/voltage) The best speed to run a permanent magnet motor to achieve maximum power output is (P446) half the no-load speed. All stepper motors are PM DC motors. T F A stepper motor will produce continuous motion from a continuous input voltage. T F Armature means (P467-470) coils of a motor. All stepper motors are PM DC motors. T F A stepper motor will produce continuous motion from a continuous input voltage. T F Armature means (P467-470) coils of a motor. Which of the following is the most known simple interface for connecting multiple peripherals? I2C Serial port Parallel port SPI The I2C is developed by Philips for use within the television sets. The I2C bus must have pullup resistors, one on the SDA line and one on the SCL line. The pullup resistance values are often in the range of 500 – 1000 Ω 1000 – 2000 Ω 2000-10,000 Ω > 10,000 Ω How many wires does UART use? One Two Three-if there’s ground Four In an asynchronous serial communication, besides a start and a stop bit, there is one more bit used for error detection, which is called: Even Odd Parity Data The number related to the speed of data transmission in a system sent every second is known as ________ rate Bit Byte Baud Data transfer rate (DTR) UART maximum data frame is _____ data bit with parity check. 8 5 9 8or9 One type of communication mentioned in lecture is both analog and digital communication for industrial automation I2C HART UART SPI A good solder joint will look like one of these: T F In the state machine approach for developing embedded software, an event represents something that the system is doing over a period of time. T F In the state machine approach for developing embedded software, a state represents something that occurs at an instant of time. T F Consider the waveforms shown in the plot below. The blue solid waveform is the voltage signal (V_in) that is input to the filter circuit represented by the inset circuit schematic. The orange dashed waveform is the waveform of the signal output by the filter. Which circuit elements must A and B represent to get the output waveform as shown? Element A is a resistor. Element B is a capacitor. Element A is a capacitor. Element B is a resistor. Review Lab 4 – When we resistor to Vs first, the Vout is slightly lower than Vin (Low Pass Filter Below). When the capacitor is connected to Vs, the Vout is reading became low (High Pass Filter Above). Increase the frequency from a low value and note where the output amplitude begins to drop significantly (for a low-pass filter) or rise (for a high-pass filter). A PMDC motor has a stall torque of 0.15 N-m and draws 3 A at 12 V at the stall condition. What is its no-load speed in RPM when 12 V is applied? Enter just the decimal numeric value. Do not use scientific notation. Do not include the unit. 1. Calculate Motor Torque Constant (Kt): Kt= Tstall/Istall = 0.15N-m/3A=0.05Nm/A 2. Calculate No-load speed or angular speed (W): W=V/Kt = 12V/0.05N-m/A = 240rad/s 3. Convert to RPM if need (Wrpm): Wrpm = W*60(sec)/2pi(rad) = 240rad/s*60(sec)/2pi(rad) =2291.83RPM A DC motor accelerates an inertial load. The system parameters are: motor torque constant: kt = 0.1 Nm/A back emf constant: ke = 0.15 Vs/rad armature resistance: Ra = 2 Ω load torque: TL = 0.2 Nm angular acceleration: = 6000 rad/s2 motor moment of inertia: Ja = 1.4×10-4 kgm2 load moment of inertia: JL = 10-4 kgm2 Calculate the required current (assume no friction, i.e., Tf = 0). Please show all the calculation steps in order to get credit. Directly circle one of the following answers will get a zero point on this problem. Solutions: From Eqn. (10.5): T = (Ja + JL)d/dt + Tf + TL = (1.4×10-4 kgm2 + 10-4 kgm2) 6000 rad/s2 + 0.2 Nm = 1.64 Nm. From Eqn (10.4): Iin = T/kt = 1.64 Nm/0.1 Nm/A = 16.4 A The stepper driver chip you used is shown below. What type of stepper motor is it designed to be used for? Unipolar Bipolar Given the code below for the Pico, what is the duty cycle of the PWM set to? 25% 32768 100% We can’t tell 50% 10% import time from machine import Pin, PWM DUTY_CYCLE_COUNT = const(int(2**16 / 2)) pwm = PWM(Pin(22, Pin.OUT)) pwm.duty_u16(DUTY_CYCLE_COUNT) Explanation - In the code, the duty cycle is calculated using the expression DUTY_CYCLE_COUNT = const(int(2**16 / 2)), which simplifies to half of 65536 (since 216216 equals 65536). This calculation results in 32768, which is half of the maximum possible value for a 16-bit PWM, thereby setting the duty cycle to 50%. The function pwm.duty_u16(DUTY_CYCLE_COUNT) is then used to apply this duty cycle to the PWM signal on pin 22. A mechatronic system needs a PMDC motor to move a drivetrain that has an equivalent rotary inertia (reflected at the motor shaft) of 0.25 kg·m². Assume that the motor rotor inertia is also 0.25 kg·m². The motor shaft will accelerate the drivetrain from rest to 10 rad/s in 1.5 seconds. The drivetrain has inherent friction, which amounts to 0.5 N·m of torque, and the motor must overcome 1.5 N·m of externally supplied torque. The power supply can supply 3.5 A starting current. What is the minimum 𝐾𝑡Kt needed in a motor for this application? 1. Calculate Angular Acceleration (𝛼): 𝛼=Δ𝜔/Δ𝑡=10 rad/s/1.5 s=6.67 rad/s^2 • If Δ𝜔 given is in RPM then convert to rad/s by Δ𝜔(rev/min)*(2pi/rev)*(1min/60sec) 2. Calculate Total Torque Required (𝑇): 𝑇=𝐽𝛼+𝑇friction+𝑇external=(0.25⋅6.67)+0.5+1.5 = 3.6675 3. Solve for Minimum Torque Constant (𝐾𝑡): Given the maximum current 𝐼max the power supply can provide is 3.5 A, 𝐾𝑡 is calculated using: 𝐾𝑡=𝑇/𝐼max= 3.6675/3.5 = 1.05N-m/A A mechatronic system needs a PMDC motor to move a drivetrain that has an equivalent rotary inertia (reflected at the motor shaft) of 0.5 kg·m². Assume that the motor rotor inertia is also 0.5 kg·m². The motor shaft will accelerate the drivetrain from rest to 10 rad/s in 1 second. The drivetrain has inherent friction, which amounts to 0.25 N·m of torque and the motor must overcome 1 N·m of externally supplied torque. The power supply can supply 3 A starting current. What is the minimum 𝐾𝑡Kt needed in a motor for this application? 1. Calculate Angular Acceleration (𝛼): 𝛼=Δ𝜔/Δ𝑡=10 rad/s/1s=10 rad/s^2 • If Δ𝜔 given is in RPM then convert to rad/s by Δ𝜔(rev/min)*(2pi/rev)*(1min/60sec) 2. Calculate Total Torque Required (𝑇): 𝑇=𝐽𝛼+𝑇friction+𝑇external=(0.5⋅10)+0.25+1 = 6.25 3. Solve for Minimum Torque Constant (𝐾𝑡): Given the maximum current 𝐼max the power supply can provide is 3.5 A, 𝐾𝑡 is calculated using: 𝐾𝑡=𝑇/𝐼max= 6.25/3= 2.08 N-m/A The stepper driver chip you used is shown below. Pin I1 and I2 are used to control microstepping. T F Explanation-Without specific numbering on the pins in the diagram and common configurations known for stepper drivers like the MP6500, the statement about pins 11 and 12 controlling microstepping is not standard. Generally, microstepping is controlled by MS1 and MS2, not by pins labeled I1 and I2. Therefore, the statement is likely false unless further specific documentation of this particular board version specifies otherwise. The schematic below shows the L298N driver board connected to two PMDC motors. How would you have to drive some of the unconnected pins to get motor B to rotate with current flowing out of OUT2 and into OUT1 as shown in the diagram? 1. 2. 3. 4. 5. 6. 7. IN2 don’t care, IN1 low, IN3 don’t care, IN4 low, ENA don’t care, ENB high IN2 low, IN1 high, IN3 don’t care, IN4 don’t care, ENA high, ENB don’t care IN2 high, IN1 low, IN3 don’t care, IN4 don’t care, ENA high, ENB don’t care IN2 low, IN1 low, IN3 high, IN4 high, ENA high, ENB high IN2 high, IN1 low, IN3 don’t care, IN4 don’t care, ENA high, ENB high IN2 high, IN1 high, IN3 high, IN4 high, ENA high, ENB high IN2 low, IN1 low, IN3 low, IN4 low, ENA low, ENB high Transfer Function - H(x) Impedance ZR=R ZC=1/SC or 1/jwC ZI=SL or jwL Resistor Capacitor Inductor Voltage VR=R*I VC=I*(1/SC) or I*(1/jwC) I*SL or I*(jwL) RLC Vout=I*Zx(X can be whatever it’s going across) I(s)= Vs/Ztotal = Vs/(ZR+ZC+ZI) ZR+ZC+ZI = R+sL+1/sC or (sCR+s2LC+1) / sC Across Resistor Zx ZR Transfer Function HR(jw) = ZR / ZR+ZL+ZC Across Capacitor ZC HC(jw) = ZC / ZR+ZL+ZC Across Inductor ZI HL(jw) = ZL / ZR+ZL+ZC Across Resistor and Capacitor ZRC HRC(jw) = ZR+ZC / ZR+ZL+ZC Across Resistor and Inductor ZRI HRL(jw) = ZR+ZL / ZR+ZL+ZC Vout = Vs(ZL/(ZR+ZL+ZC)= jωL/R+jωL+jωCeq Across Capacitor and Inductor ZLC HLC(jw) = ZL+ZC / (ZR+ZL+ZC) Derive the transfer function for the RLC circuits shown in the figures below: because Ceq = C1+C2 since C1 and C2 are parallel, the diagram can be seen as below Bode Plot Approach Look at the Bode plot of the filter's magnitude response. Identify the frequency at which the magnitude decreases by 3 dB from its baseline level in the passband. This is the point where the output power is half of the input power, or the power is reduced by approximately 50%. Theory Note that this problem has been partially solved. You only need to fill the blanks. (1) Design an RC filter that removes (i.e., attenuates by 90%) the high frequency component (noise) from the signal. Assume that your filter will drive a load of 20 kΩ. (2) What is the corner (i.e., cut-off frequency of the filter you designed? The frequency of each signal can be found as follows (attention: the unit of the given period is 1 ms = 0.001s in the graph. P in the equations below means period): Vo/Vs = ZL / ZR+ZC+ZI Circuit RC Transfer Function H(x) = Vo/Vs = Z2/(Z1+Z2) 𝑍𝐶 / 𝑍𝑅+𝑍𝐶 RL 𝑍𝐿 / 𝑍𝑅+𝑍𝐿 CR 𝑍𝑅 / 𝑍𝑅+𝑍𝐶 CL 𝑍𝐿 / 𝑍𝐿+𝑍𝐶 LR 𝑍𝑅 / 𝑍𝑅+𝑍𝐿 LC 𝑍𝐶 / 𝑍𝐿+𝑍𝐶 Filter Type Lowpass Highpass Highpass Highpass Lowpass Bandpass Characteristics Attenuates high frequencies, passes low frequencies Passes high frequencies, attenuates low frequencies Passes high frequencies, attenuates low frequencies Passes high frequencies, attenuates low frequencies Attenuates high frequencies, passes low frequencies Resonates at 𝜔0=1𝐿𝐶ω0=LC1, attenuates others Vo/Vs = ZC / ZR+ZC+ZI Vo/Vs = ZR / ZR+ZC+ZI Which of the following is correct for a transfer function of the RC filter? Vo/Vi=ZR / ZR+ZC= R / (R+1/SC) = R(SC) / (R(SC)+1) Bode Diagram – Find the corner frequency. RLC circuit examples – Derive the transfer function of the RLC circuit below (please use j, not s). What is the order of the system? Across RC Given an RLC circuit with a resistor 𝑅, an inductor 𝐿, and two capacitors 𝐶1 and 𝐶2 in parallel, derive the transfer function of the circuit using the voltage divider rule. What is the order of the system? Assume that the input voltage 𝑣𝑠(𝑡) is applied across the series combination of 𝑅, 𝐿, and the parallel capacitors, and the output voltage 𝑣0(𝑡) is taken across 𝐿. 10^2 = 100Hz #1 1. 2. Count # of cycles = 20 Solve for Pmain = 0.001S and Pnoise = time(sec)/# of cycles = 0.001/20 3. Solve ωmain=2πfmain= 2π/ Pmain = 6.283*10^3 (rad/s) 4. Solve ωnoise=2πfnoise= 2π/Pnoise = 125.664*10^3(rad/s) 5. |Vin, noise / Vout, noise|=1/(1+ωnoise^2*R^2*C^2)^0.5=0.1 ➔10=(1+ωnoise^2*R^2*C^2)^0.5 ➔ 100=1+ ωnoise^2* R^2*C^2 ➔RC=sqrt(99)/ ωnoise =7.92*10^-5 6. Given RL=20kOhms and Solve for R by R/RL =5% ➔R=1k oHm 7. Solve for C. Given RC=7.92*10^-5➔C=7.92*10^-5/1x10^3 =7.92*10^-2 Farad Equation for corner frequency = BJT Calculation Examples and Formula For circuit below, find Vb, Ve and Vc for Rb=50kΩ and 100kΩ with β=90. Constant Vbe=0.7, Given Vs = 5V, Rc = 1kΩ and Re=1kΩ Use function Vs=IbRb+Vbe+IeRe ➔IbRb+Vbe+(β+1)IbRe because subst. Ie=(β+1)Ib Find Ib, Ic, Ie, Vc, and Vce in the following circuit. β=100 Constant Vbe=0.7V Given Vsc=10.7V, Vsb=5.7V Rc = 1K, Rb= 10K, Re=2K Ic Ib Look at graph of Vin of each interval. Base Vin eq on that graph. Ex for 1<t<2 t=1 Vin=0 how to do you get 1-1 = 0 and make sure equation works with 2nd number t=2 Vin=-1 1-2=-1. Solve the integral and get the Vout value on the graph by plugging in the t intervals Ex 1st integral. t=0 Vout = 0, t=1 Vout = -0.5, 2nd integral. t=1 Vout = -0.5, t=2 Vout=0 and so on. Vbe Vbe Vbe Ie 1. 2. Case 1 - 50kΩ 1. Solve for Ib = Vs-Vbe/(Rb+( β+1)Re) = (5V-0.7V)/(50kΩ+(90+1)1kΩ = 4.3V/141kΩ =0.0000305A or 0.0305mA or 30.5µA 2. Solve for Ic, Ie, Ve, Vb, and Vc a. Ic=βIb = 90(0.0305) = 2.745 mA b. 𝐼e=(β+1)Ib = (90+1)*0.305 = 2.776mA c. 𝑉e=IeRe = 2.776(1) =2.776V d. 𝑉b=𝑉e+𝑉be = 2.776+0.7 = 3.476V e. 𝑉c=Vs−IcRc = 5-(2.745*1) = 5-2.745 =2.255V Case 2 - 100kΩ 1. Solve for Ib = Vs-Vbe/(Rb+( β+1)Re) = (5V-0.7V)/(100kΩ+(90+1)1kΩ = 4.3V/191kΩ =0.0000225A or 0.0225mA or 22.5µA 2. Solve for Ic, Ie, Ve, Vb, and Vc a. Ic=βIb = 90(0.0225) = 2.025mA b. 𝐼e=(β+1)Ib = (90+1)*0.0225 = 2.048mA c. 𝑉e=IeRe = 2.776(1) =2.048V d. 𝑉b=𝑉e+𝑉be = 2.776+0.7 = 2.748V e. 𝑉c=Vs−IcRc = 5-(2.745*1) = 5-2.745 =2.975V Search online for the datasheet for a 2N2222 (or P2N2222) transistor. Could this transistor be used to drive a QED233 LED at 80 mA? Justify your answer. Current gain: 10, Vce range from 0.2 to 0.4 V, Vbe range from 0.6 to 1.3 V. Solve for Ib = Vs-Vbe/(Rb+( β+1)Re) = (5.7-0.7V)/(10kΩ+(100+1)2kΩ = 5.0V/212kΩ =0.0000236A or 0.0236mA or 23.6µA Solve for Ic, Ie, Vc, Vce and Ve(to get Vce) a. Ic=βIb = 100(0.0236) = 2.36mA b. 𝐼e=(β+1)Ib = (100+1)*0.0236 = 2.38mA c. 𝑉e=IeRe = 2.38(2) = 4.77V d. 𝑉c=Vsc−IcRc = 10.7-(2.36*1) = 8.34V e. Vce=Vc-Ve=8.34-4.77=3.57V Other BJT Formula Ie=Ic+Ib Ib = (Vs-Vb)/Rb Ic = (Vs-Vc)/Rc Ie = Ic + Ib Vbe = Vb + Ve Vce = Vc - Ve Vb= Ve +0.7 Vc = Ve + 0.2 Operation Amplifier If Vin goes to V- of the Op Amp, then it’s a inverting amplifier. If Vin goes sot the V+ of the Op Amp, then it’s a inverting amplifier. Using the following input waveform, sketch the corresponding output waveform for The given op amp circuit (b). Assume ideal op amp behavior. What logic function does the combinational logic circuit execute? Select the number corresponding to the correct Boolean algebraic expression. A+B 𝐴+𝐵‾ 𝐴⊕𝐵 A‾⊕𝐵‾ AB(B+A)
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )