CfE Physics – SCN 4-09 b & c Electronics Input, Process and Output Digital Logic Gates SCN 4-09b: By contributing to investigations into the properties of a range of electronic components, I can select and use them as input and output devices in practical electronic circuits. SCN 4-09c:Using my knowledge of electronic components and switching devices, I can help to engineer an electronic system to provide a practical solution to a real-life situation. John Ogilvie High School - CfE Physics 1 CfE Physics SCN 4-09b Electronics Input, Process and Output John Ogilvie High School - CfE Physics 2 Learning Intentions: State that an electronic system consists of three parts: input, process and output. Identify from a block diagram the input, process and output subsystems of an electronic system. Draw a block diagram showing the input, process and output subsystems of an electronic system. John Ogilvie High School - CfE Physics 3 Input, Process and Output Electronic Systems When something is made up of lots of parts which are put together to do a job, it is called a ssystem. _____. When the parts are electronic components the system is called an e _ _electronic _ _ _ _ _ _ _ system. John Ogilvie High School - CfE Physics 4 Electronic Systems Electronic systems can do lots of jobs. The type of job will depend on the components used to make the ssystem. _____. A calculator is an example of an electronic system. Every electronic system has tthree _ _ _ _ main sections called sub-systems. These are called the i _input, _ _ _ , the p _process _ _ _ _ _ and the o_ _ _ _ _. output. John Ogilvie High School - CfE Physics 5 Subsystem - Input What It Does Detects some type of eenergy. _____. (for example: light, heat, sound) and changes it to e _ _electrical _ _ _ _ _ _ _ energy. This is then passed to the pprocess ______ subsystem John Ogilvie High School - CfE Physics 6 Subsystem - Process What It Does Changes the electrical energy from the iinput ____ so that the system can do its job. This is then passed on to the o _output _ _ _ _ subsystem. John Ogilvie High School - CfE Physics 7 Subsystem - Output What It Does Converts the electrical e _energy _ _ _ _ from the process subsystem into another type of energy which can be used. For example: hheat, _ _ _ , light, l____, m _______ movement. John Ogilvie High School - CfE Physics 8 Block Diagrams A block diagram is an easy way to draw a system. Instead of drawing a complicated diagram showing all the components, we draw a box or b _block _ _ _ to take the place of the iinput, _ _ _ _ , process p _ _ _ _ _ _ and ooutput _____ subsystems. Each block is labelled so that we kknow ___ what it is. John Ogilvie High School - CfE Physics 9 Block Diagrams Input Process Output Keypad Calculating Circuits Display The block diagram for a calculator is shown above. Any subsystem can be further broken down to smaller and smaller subsystems - down to the actual components if required. John Ogilvie High School - CfE Physics 10 Block Diagram Examples Public Address System Input mmicrophone Process aamplifier John Ogilvie High School - CfE Physics Output lloudspeaker 11 Block Diagram Examples Smoke Alarm IInput Smoke Sensor P Process O Output Logic Circuits b John Ogilvie High School - CfE Physics buzzer 12 Block Diagram Examples Intruder Lamp Input H Heat Sensor Sensor Process Output Logic Circuits l John Ogilvie High School - CfE Physics lamp 13 Learning Intentions State that an input device changes some form of energy into electrical energy. State that the microphone, thermistor, LDR and switch are all examples of input device. State that the resistance of a thermistor changes with temperature. State that the resistance of an LDR decreases when the light on it gets brighter. John Ogilvie High School - CfE Physics 14 Input and Output Devices Input subsystems contain a device which changes some form of e _energy _ _ _ _ into electrical energy. Output subsystems contain a device which changes e _ _electrical _ _ _ _ _ _ _ energy e _ _ _ _ _ into some other form. John Ogilvie High School - CfE Physics 15 Input Devices Device: microphone What it looks like: Circuit Symbol: How it Works: The inside of the microphone v_ _vibrates _ _ _ _ _ exactly the same way as the sound waves. This makes identical electrical waves. John Ogilvie High School - CfE Physics 16 Input Devices Device: thermistor What it looks like: Circuit Symbol: How it Works: The resistance of the thermistor changes as the t_ _ _ _ _ _ _ _ _ _ _ changes. temperature John Ogilvie High School - CfE Physics 17 Input Devices Device: Light Dependent Resistor What it looks like: Circuit Symbol: How it Works: The resistance of the LDR decreases as the light level gets b_ ______. brighter. John Ogilvie High School - CfE Physics 18 Input Devices Device: switch What it looks like: Circuit Symbol: How it Works: Moving the switch from one setting to the other makes or b_breaks _ _ _ _ the circuit. John Ogilvie High School - CfE Physics 19 Learning Intentions State that an output device changes electrical energy into another form of energy. State that a loudspeaker, buzzer, lamp, LED and electric motors are all forms of output devices. State the energy conversions involved for a given output device. John Ogilvie High School - CfE Physics 20 Output Devices Device: loudspeaker What it looks like: Circuit Symbol: How it Works: Electrical energy -> Sound energy Electrical waves make vibrations inside the loudspeaker producing sound waves John Ogilvie High School - CfE Physics 21 Output Devices Device: buzzer What it looks like: Circuit Symbol: + How it Works: Electrical energy -> Sound energy A voltage across the buzzer makes it sound. The buzzer just switches sound on or off. John Ogilvie High School - CfE Physics 22 Output Devices Device: lamp What it looks like: Circuit Symbol: How it Works: Electrical energy -> Light energy A voltage across the lamp makes it light. The greater the voltage, the brighter it gets. John Ogilvie High School - CfE Physics 23 Output Devices Device: Light emitting diode What it looks like: Circuit Symbol: How it Works: Electrical energy -> Light energy A voltage across the LED makes it light. LEDs are used to indicate when something is on or off. John Ogilvie High School - CfE Physics 24 Output Devices Device: electric motor What it looks like: Circuit Symbol: M How it Works: Electrical energy -> Kinetic energy A voltage across the motor makes it turn. The greater the voltage, the faster it turns. John Ogilvie High School - CfE Physics 25 Learning Intentions Identify from a list an appropriate input device for a given job. Identify from a list an appropriate output device for a given job. John Ogilvie High School - CfE Physics 26 Examples of input and output applications Application Reason Device Output of radio Loudspeaker The output should be s _sound _ _ _ _ waves Input of an automatic lamp LLDR _ _ Input of a heating Thermistor controller Output of fan M ____ Motor The LDR will change resistance when the brightness changes The thermistor will c_ _ _ _ _ resistance change when the temperature changes turn The motor will t_ __ the blades of the fan. John Ogilvie High School - CfE Physics 27 CfE Physics Electronics Digital Logic Gates Scn 4-09c:Using my knowledge of electronic components and switching devices, I can help to engineer an electronic system to provide a practical solution to a real-life situation. John Ogilvie High School - CfE Physics 28 Learning Intentions: State that high voltage = logic 1. State that low voltage = logic 0. Draw and identify symbols for 2 input AND and OR gates and a NOT gate. State that for a NOT gate the output is the opposite of the input. State that for an AND gate both inputs must be high for the output to be high. State that for an OR gate either of the inputs must be high for the output to be high. John Ogilvie High School - CfE Physics 29 Digital Signals Digital signals are either on or off o__. An ‘off’ signal has a zero voltage (called ‘l‘low’ _ _’ ). An ‘on’ signal has a non-zero voltage(called ‘h‘high’ _ _ _’ ). The ‘o‘off’ _ _’ signal; low state is given the name ‘logic 0’ (most often just ‘0’). The ‘o‘on’ _’ signal; high state is given the name ‘logic 1’ (most often just ‘ 1’). John Ogilvie High School - CfE Physics 30 Digital Signals An oscilloscope can show logic states since it measures the high and low voltages. High voltage: Logic _1 Oscilloscope trace showing a digital logic signal which is changing from 1 to 0 several times. Low voltage: Logic _ 0 John Ogilvie High School - CfE Physics 31 Logic Gates Digital logic gates are used to combine or change digital electronic signals. There are three basic types of logic gate called the N _ _ gate NOT (sometimes called an i _ inverter _ _ _ _ _ _ ), the A _ _ AND gate and the O _ gate. OR John Ogilvie High School - CfE Physics 32 The NOT gate This is the simplest gate. It has oone _ _ input and oone _ _ output. The output is always the opposite of the i _ input. ___. John Ogilvie High School - CfE Physics 33 Logic Gate Symbol NOT gate (Inverter) i nput How it behaves The NOT gate changes the input signal to the opposite state. output NOT Truth table Input Output High Low (1) (0) Low (0) High John Ogilvie High School - CfE Physics (1) 34 The AND gate The AND gate has two inputs and one output. The output of the AND gate is always at logic 0 unless both the inputs are at logic 1 when the output becomes logic 1 as well. John Ogilvie High School - CfE Physics 35 Logic Gate AND gate Input B Output Low (0) Low (0) Low (0) High Low (0) High Low Input A Symbol i nput A AND Truth table output i nput B How it behaves The AND gate combines the input signals so that the output is only 1 when both inputs are 1. Low (0) (1) (1) (0) High High (1) (1) John Ogilvie High School - CfE Physics Low (0) High (1) 36 The OR gate The OR gate has two inputs and one output. The output of the OR gate is always at logic 1 unless both the inputs are at logic 0 when the output becomes logic 0 as well. John Ogilvie High School - CfE Physics 37 Logic Gate OR gate Input B Output Low (0) Low (0) Low (0) Low (0) High High (1) High Low Input A Symbol i nput A OR Truth table output i nput B How it behaves The OR gate combines the input signals so that the output is 1 when either input is 1. (1) (1) (0) High High (1) (1) John Ogilvie High School - CfE Physics High (1) High (1) 38 Learning Intentions Explain how to use logic gates for control in simple situations. John Ogilvie High School - CfE Physics 39 Logical solutions 1. Donnie's dad wants to be wakened if he gets up at night. Design a system to sound a buzzer if Donnie switches on his light or if he stands on a mat. (A switch is under the mat.) John Ogilvie High School - CfE Physics 40 Solution System Diagram Light sensor Buzzer switch John Ogilvie High School - CfE Physics 41 How it Works Light Sensor Dark Light low high Switch Open Closed low high When the light is turned on, the light sensor output is hhigh. ___. This causes the OR gate output to go high which sounds the bbuzzer. _____. When the switch under the mat is pressed, it c _ _ _ _ _ _ . This makes closes. its output hhigh. ___. This causes the OR gate output to go hhigh _ _ _ which sounds the buzzer. John Ogilvie High School - CfE Physics 42 2. A tomato grower wants to protect his delicate plants which are in his greenhouse. Design a warning system to sound a buzzer if it gets too cold during the night (dark). John Ogilvie High School - CfE Physics 43 Solution System Diagram Light sensor Buzzer Temperature sensor John Ogilvie High School - CfE Physics 44 How it Works Light Sensor Dark Light low high Temperature Sensor Cold Warm low high The buzzer can only switch on when the output from the NOT gate is hhigh. ___. Therefore the output from the OR gate must be llow. __. The OR gate output can only be low if b _ _ _ the inputs are low. both This means it must be both ddark ___ and c cold _ _ _ as well. . John Ogilvie High School - CfE Physics 45 Grandad can't use the stair light switch easily since he got his walking stick. Design a system which will switch on the stair light automatically when it gets dark. There must be a manual switch as well. John Ogilvie High School - CfE Physics 46 Solution System Diagram Light sensor Lamp switch John Ogilvie High School - CfE Physics 47 How it Works Light Sensor Dark Light low high Switch Open Closed low high When it is dark, the light sensor output is low which is changed to h high _ _ _ by the NOT gate. This causes the OR gate output to go high which l _lights _ _ _ _ the lamp. When the switch is closed, its output is high. This causes the OR gate output to go h high _ _ _ which lights the lamp. . John Ogilvie High School - CfE Physics 48 4. Design a system for a bathroom to switch on a fan motor when the bathroom gets so steamy, the light from the window is blocked. The fan must only come on when it is hot as well as steamy. John Ogilvie High School - CfE Physics 49 Solution System Diagram Light sensor Motor Temperature sensor John Ogilvie High School - CfE Physics 50 How it Works Light Sensor Dark Light low high Temperature sensor Cold Warm low high When it is steamy, it gets darker, the light sensor output is l low _ _ which is changed to high by the N _ _ gate. NOT When it gets too hhot _ _ the output from the temperature sensor is hhigh. ___. Only when it is hot and steamy at the ssame _ _ _ time will both inputs of the AND gate be high to make the output high to t turn _ _ _ the motor. John Ogilvie High School - CfE Physics 51 CfE Physics Electronics End of Unit John Ogilvie High School - CfE Physics 52