ExamBank Scot · AH Engineering Science question bank · All AH Engineering Science questions

AH Engineering Science 2017 Question 9 (CfE)

15 marks · Oscillators

The sine wave and triangular wave are combined by the comparator to produce a coil switching waveform. A Wien Bridge oscillator is used to generate a 50 Hz sine wave. R C R2 +Vcc −Vcc Vout C R R1 0V Calculate suitable values for , C, R1 and . The following circuit produces the waveforms shown below. VA C +15V +15V 10 kΩ VB 10 kΩ −15V −15V R 0V VA 13·4 V 10·2 V VB Voltage 0 (V) −10·2 V −13·4 V 1·67 3·33 5·00 6·67 8·33 Time (ms) Calculate the value of and by referring to the circuit and the waveform diagrams on Page 20. The prototype design for the drive of the wheelchair incorporated a single motor on a separate shaft from the wheel connected by a belt and pulley system as shown. The shaft is supported on two roller bearings at A and B. The motor has a self-weight of 75 N and the belt tensions are 2350 N and 572 N. The slack side of the belt lies at 30° to the horizontal. 75 N 100 mm 100 mm 2350 N A 572 N Motor 30° B Pulley 25 mm Calculate the magnitude and direction of the force acting on bearing B. The student develops the prototype using a DC motor and writes two sub-procedures to control the motor speed. The target speed is set by a potentiometer and the actual speed is sensed using an optical speed sensor which produces a DC output in the range 0-5V, as shown in the diagram below. 5 V Analogue Target Speed Input PWM 0–5 V (target speed) Output Driver Motor Pins 3 & 5 Analogue Input (actual speed) Optical Speed Sensor Microcontroller For an Arduino system, analogue pins 0 (target speed) and 1 (actual speed) are used for the analogue inputs. For a PBASIC system, analogue channels B.0 (target speed) and B.1 (actual speed) are used for the analogue inputs. Sub-procedure A, shown on Page 25, is called if the wheelchair is stationary or if the speed has dropped below a minimum value. The following information is provided for reference. ARDUINO PBASIC Command analogWrite() Description Writes a PWM signal to a pin until the next call to analogueWrite() or digitalWrite() on the same pin. Syntax analogWrite(pin, value) Parameters pin: a variable/constant which is the pin to write to value: the duty cycle: between 0 (off) and 255 (fully on) Command pwmout Description Writes a continuous PWM signal to a pin until another pwmout command is sent to the pin. Syntax pwmout pin, period, mark Parameters pin: a variable/constant which is the pin to write to period: set to 255 for this application mark: the duty cycle: between 0 (off) and 1023 (fully on) ARDUINO PBASIC void { : for to { duty for to x duty ; { pwmout , duty ; ; delay ; pwmout , OFF pause 1 next y } next x } } return Sketch the graph of the motor speed that results from running sub-procedure A. Motor Speed 0 Time The student writes sub-procedure B shown below, to control the wheelchair at speeds above the minimum value. The following information is provided for reference. ARDUINO PBASIC Command constrain Description Restricts a number within a range Syntax constrain () Parameters : a variable/constant which is to be restricted : lower end of the range : upper end of the range Returns : if : if : if Mathematical Functions max Description max: limit a value to a maximum value Example for max let x = y * 33 max 255 Returns x: if y * 33 < 255 255: if y * 33 > 255 ARDUINO PBASIC void { : readadc , target readadc , actual target ; actual ; if target > actual then { error = target – actual duty = error * gain error = target - actual; duty ( gain, ); } else else { duty duty ; } endif ; ; pwmout , duty pwmout , OFF } return Assume that the value of variable ‘gain’ has previously been set by the student in the main part of the program. Explain, with reference to sub-procedure B, why the wheelchair does not reach the target speed but instead, accelerates and settles at a lower speed with a steady-state error. A student project involves the design of an electric wheelchair, propelled by two brushless DC motors. Each motor has three coils which are energised in a sequence turning the central rotor. One method of producing the coil switching sequence is illustrated in the diagram below. Reference sine wave generator Comparator Triangular wave generator

Marking scheme

Set gain to 3, by choosing R1 = 10kΩ and R2=20kΩ Rearrange and substitute R = 10kΩ nF (other viable answer eg nF, ) 1 mark: choose values of R1 and R2 to give the ratio 1:2 and so a gain of 3. Resistor values in the kΩ range 1 mark: substitute for frequency to find the relationship between R & C values 1 mark: select a value of resistor R and calculate C correctly, or vice versa. Include units with answer Any other viable answer should be accepted eg nF, kΩ = 110nF (3 s.f.) 1 mark: identify the change in voltage over the first half-cycle, the duration of the half-cycle and the value of input voltage that is being integrated 1 mark: calculating C Take VA at the instant it changes from -13∙4 V to +13∙4V. VA = -13∙4 V VB = 10∙2 V At the instant of change, V+ = 0 V At the node between resistors, = 7∙61kΩ 1 mark - correct use of Kirchhoff’s Law at node between the two resistors Resolve belt tensions into component forces Fz = 572cos30° + 2350 = 2845·36… Fy = 572sin30° = 286 x – y plane 75 × 100 – 286 × 200 - × 225 = 0 1 mark: resolve belt tensions into components 1 mark: calculate component of bearing reaction in x-y plane 1 mark: calculate component of bearing reaction in x-z plane 1 mark: calculate magnitude of bearing reaction 1 mark: calculate angle of bearing reaction in relation to an identified datum x – z plane −2845∙4 ×200 − × 225 = 0 Magnitude of resultant in Bearing B. = 2∙54 k (3 s.f.) Acting at an angle of 1 mark: for logarithmic rise 1 mark: for rise to a continuous value As the speed increases and actual speed gets closer to target speed, the error will reduce. Since duty is proportional to the error, the wheelchair will never reach the target speed if the duty drops too low to continue accelerating the chair. The speed is being controlled, not the position, so there is always a need for a duty signal to drive the motor in this proportionally controlled system, hence the steady state error. 1 mark: explaining the link between the duty and the error 1 mark: explaining that the stead- state error is necessary to produce a duty signal and maintain the speed

Previous question: AH Engineering Science 2017 Question 8 (CfE)

Next question: AH Engineering Science 2018 Question 1 (CfE)