ExamBank Scot · Higher Engineering Science question bank · All Higher Engineering Science questions
22 marks · Operational amplifiers
Describe, with reference to this circuit, the operation of the LED connected to op-amp 1 as the outside light level decreases from a high level to a low level. During testing, it was found that the system did not work as well as expected, so it was redesigned. A diagram of the redesigned circuit is shown below. In this instance, the light sensor was placed inside the polytunnel. 5·0 V 270 kΩ +VCC − + −VCC 220 kΩ +VCC − + −VCC 180 kΩ +VCC − 5·0 V + 120 kΩ −VCC 150 kΩ 2·0 kΩ +VCC 75 Ω 60·0 kΩ +VCC − − + + −VCC −VCC 60·0 kΩ op-amp A Rldr 120 kΩ 750 Ω 120 kΩ 0 V 0 V cell resistance (kΩ) 10² LDR type ORP12 10 7 5 3 1·0 7 5 3 10^−1 7 5 3 10^−2 3 5 7 3 5 7 3 5 7 3 5 7 1·0 10 10² 10³ 10⁴ illumination (lux) Calculate the output voltage of the difference amplifier when the light level is 700 lux. Calculate the minimum output voltage required from the difference amplifier to cause three LEDs to come on. Describe the effect that adjusting the variable resistor will have on the light level required to make the LEDs light. The LEDs are at their most efficient when a current of 5·2 mA flows through each one. They are also found to have a 2·3 V drop across them when they are on. Calculate the required resistance for the protective resistors to ensure maximum efficiency. +Vcc for the comparators is set to 8·0 V. The comparator saturates at 85%. A further solution involving the use of a microcontroller is also tested, and is shown below. One output pin on the microcontroller activates a bank of LEDs. +VCC input pin 7 from sensor micro- controller 0 V By using pulse width modulation, the LEDs can be made to appear bright or dim. Code for the test is shown below, in PBASIC and Arduino. main: int Sensor = A0; int LEDBank = 7; readadc pin0, b0 if b0 <50 then level1 if b0 <100 then level2 if b0 <150 then level3 void setup() { pinMode(LEDBank, OUTPUT); } let mark = 0 let space = 10 goto pulser void loop() { int reading=analogRead(Sensor); int value=map(reading,0,1023,0,255); if(value<50) { level1: digitalWrite(LEDBank, HIGH); delay(10); digitalWrite(LEDBank, LOW); delay(0); let mark = 10 let space = 0 goto pulser } if(value>49&&value<100) { level2: let mark = 6 let space = 4 goto pulser digitalWrite(LEDBank, HIGH); delay (6); digitalWrite(LEDBank, LOW); delay (4); level3: } if(value>99&&value<150) { let mark = 3 let space = 7 digitalWrite(LEDBank, HIGH); delay(3); digitalWrite(LEDBank, LOW); delay(7); pulser: high 7 pause mark low 7 pause space } else { digitalWrite (LEDBank, HIGH); delay (0); digitalWrite (LEDBank, LOW); delay (10); goto main } } Explain, with reference to the code and the circuit, the effect on the LEDs when the reading from the analogue sensor rises from 5 to 200. The logic circuit shown below controls a valve that provides water for the plants. A B Z C D Complete a Boolean equation to describe the operation of this circuit. Z = Plants need to be kept in a polytunnel with a constant light level to ensure they grow correctly. This is done by using banks of powerful LEDs to provide additional light when the outside light level drops. The initial design for the electronic control system is shown below. The light sensor monitors the light level outside the polytunnel. 5·0 V +VCC − op-amp 4 + −VCC +VCC − op-amp 3 + −VCC +VCC − op-amp 2 + 5·0 V −VCC +VCC − op-amp 1 + −VCC 0 V
When the light level is high the LDR will have a low resistance so the voltage across it will be small. As light level drops the resistance of the LDR will increase and so will the voltage across it. Op-amp 1 will switch positive when the voltage at the non-inverting input rises above the voltage at the inverting input and the LED will switch on. 1 mark for each relevant point up to a maximum of 3. Rldr = 180 Ω Vinv = 5x (180/255) = 3.53 V Vnon-inv = 5x (750/2750) = 1.36 V Vdiff = 120/60 x (3.53-1.36) Vdiff = 4.3315 Vdiff = 4.3 V (2s.f.) 1 mark for resistance in the range 180-200Ω. 1 mark for each calculation. Voltage reference at 3rd op–amp = 5x(450/940) = 2.393617021 = 2.3936 = 2.4 V (2s.f). 1 mark for identifying the three op- amps that need to be switched +ve. 1 mark for the calculation of voltage. If the resistance is decreased the LEDs will come on at a higher light level. If the resistance is increased it will need to be darker before the LEDs come on. It will adjust the level of light required to switch the LEDs on. Vcomp = 8 x 0.85 = 6.8 V R = (6.8-2.3)/0.0052 = 865.3846 Ω = 870 Ω (2s.f.) 1 mark for output voltage from op-amp. 1 mark for voltage over resistor. 1 mark for the resistance. When the reading is less than 50 the program will jump to the label ‘level1’ and the m/s ratio will be set so that the LEDs are on all the time (are at full brightness). When the reading is between 50 and 99 the m/s ratio is changed so that the LEDs flash with slightly longer on time. This will keep them bright but not as bright as they were. When the reading is between 100 and 149 the m/s ratio will keep the LEDs off for proportionately longer so they will appear even dimmer. If the reading is 150 or over then the LEDs are off all the time. 1 mark for each suitable response. Z = (A⊕B) + (·D) 1 mark for XOR with A and B. 1 mark for NAND with A and D. 1 mark for AND with NOT C and D. 1 mark for OR between the three expressions. Brackets around NAND and AND functions not required.
Previous question: Higher Engineering Science 2021 Question 7