{"base":{"id":"cs10-13","subject":"Computer systems","title":"Input devices, output devices and sensors","scene":"mix","steps":[{"use":"sys10","mode":"devices","eyebrow":"How devices work","title":"In, out, or both","body":"Input devices send data into a computer; output devices present results. Some, like touchscreens, do both. Tap each device to see how it works.","actions":[{"id":"k0","label":"Barcode scanner"},{"id":"k1","label":"Touchscreen"},{"id":"k2","label":"Temperature sensor"},{"id":"k3","label":"Speaker"}]},{"use":"ai","mode":"sensor","eyebrow":"Sensors","title":"How close is too close?","body":"A sensor measures a physical quantity. A robot vacuum uses a distance sensor and stops when it gets too close. Change the limit and start it.","controls":[{"id":"limit","label":"Stop distance","min":4,"max":60,"step":2,"value":30,"unit":"cm"}],"actions":[{"id":"start","label":"Start"}]},{"use":"code9","mode":"tempalarm","eyebrow":"Control systems","title":"Sense, decide, act","body":"A control system reads a sensor, compares the reading with a set value, and switches an output. Here a greenhouse fan turns on when it is too hot. Change the temperature.","controls":[{"id":"temp","label":"Temperature","min":10,"max":40,"step":1,"value":22,"unit":"°C"}]},{"use":"code9","mode":"light","eyebrow":"Automatic lights","title":"Light level decides","body":"A light sensor gives a number for brightness. Below a threshold, street lights switch on. Try different light levels.","controls":[{"id":"light","label":"Light level","min":0,"max":100,"step":5,"value":30}]},{"use":"sys10","mode":"quiz","look":"devices","eyebrow":"Check yourself","title":"Choose a sensor","body":"A burglar alarm must detect someone moving in a dark room.","question":"Which sensor is most suitable?","options":["Temperature sensor","Infrared (motion) sensor","Light sensor"],"answer":1,"right":"Correct. Infrared sensors detect the heat given off by a moving person, even in the dark.","wrong":"Not quite. The room is dark, so think about what a person gives off."}],"more":[{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Scenario","title":"Self-service checkout","body":"inputs: barcode scanner, touchscreen, weighing scale, card reader\noutputs: touchscreen, receipt printer, speaker","code":true},{"tag":"Control loop","title":"Automatic watering","body":"moisture sensor → microprocessor compares with set value\nif too dry → open valve (actuator)\nrepeat continuously","code":true}]},{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"The ideas in detail","items":[{"tag":"Input","title":"Keyboard, mouse, microphone, scanner, camera","body":"Each turns a physical action (a key press, sound, light) into binary data."},{"tag":"Output","title":"Monitor, printer, speaker, actuator","body":"Each turns data into something people can see or hear, or into movement (actuators like motors)."},{"tag":"Sensors","title":"Temperature, light, pressure, moisture, infrared, gas, pH, acoustic","body":"Sensors continuously measure the environment. Analogue readings go through an ADC to become digital."},{"tag":"Actuators","title":"Motors, valves, heaters","body":"Output devices that make something physically happen in a control system."}]},{"type":"cards","id":"mistakes","eyebrow":"Common mistakes","title":"Watch out for these","items":[{"tag":"Mistake","title":"\"A sensor makes decisions\"","body":"Sensors only measure. A microprocessor compares readings and decides."},{"tag":"Mistake","title":"\"A touchscreen is only an output\"","body":"It's both: it displays (output) and senses touch (input)."},{"tag":"Mistake","title":"Choosing a camera for everything","body":"Pick the simplest sensor that measures exactly what's needed."},{"tag":"Mistake","title":"Forgetting the ADC","body":"Most sensors produce analogue signals that must be converted to digital."}]},{"type":"cards","id":"deeper","eyebrow":"Go deeper","title":"More than the lesson","items":[{"tag":"How it works","title":"Laser printers","body":"A laser draws the page as an electric charge on a drum; toner powder sticks to the charged areas and is fused onto paper with heat."},{"tag":"Real world","title":"Sensors in phones","body":"A smartphone has a microphone, cameras, accelerometer, gyroscope, compass, light sensor, proximity sensor, GPS and fingerprint sensor."},{"tag":"Careers","title":"Who works with sensors?","body":"Robotics engineers, smart-home installers, medical device designers and environmental scientists."},{"tag":"Coming next","title":"Where this leads","body":"Next: memory and storage, where the data from all these devices is kept."}]},{"type":"cards","id":"challenge","eyebrow":"Challenge yourself","title":"Stretch your brain","intro":"Try each one on paper before opening the card.","items":[{"tag":"Challenge","title":"Design a system to stop a greenhouse getting too cold at night.","body":"Sensor: temperature sensor.\nProcess: microprocessor compares reading with 10 °C every minute.\nOutput: heater (actuator) on if below 10 °C, off when above 12 °C.\nUsing two values stops it switching on and off too often."},{"tag":"Challenge","title":"Why does a self-driving car use several kinds of sensor?","body":"Each has weaknesses: cameras struggle in the dark, lidar in heavy rain, radar has low detail. Combining them makes the system more reliable and safer."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Try it yourself","items":[{"title":"Device audit","time":"15 minutes","need":["A notebook"],"steps":["Pick a room at home.","List every input and output device.","Mark which are sensors and which are actuators.","Draw one control loop you find."],"why":"Homes are full of input, output and control systems, from thermostats to doorbells.","safety":"No safety risks."},{"title":"Phone sensors","time":"15 minutes","need":["A smartphone with a free sensor app"],"steps":["Install a sensor viewer app (with permission).","Watch the light sensor as you cover it.","Tilt the phone and watch the accelerometer.","Which sensor does auto-brightness use?"],"why":"Phones constantly read sensors to adjust brightness, rotate the screen and count steps.","safety":"Ask before installing apps."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Eight more questions","questions":[{"question":"Which is an output device?","options":["Microphone","Scanner","Printer"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Which is both input and output?","options":["Touchscreen","Keyboard","Speaker"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"What does an actuator do?","options":["Measures light","Makes something move or happen","Stores data"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Which sensor checks if soil needs water?","options":["Light sensor","Infrared sensor","Moisture sensor"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"What converts an analogue signal to digital?","options":["An ADC","A DAC","A monitor"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"In a control system, who decides what to do?","options":["The sensor","The microprocessor","The actuator"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"A car park barrier that lifts for a car needs…","options":["only a printer","only a screen","a sensor and an actuator"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Which sensor helps a phone rotate its screen?","options":["Accelerometer","Microphone","Thermometer"],"answer":0,"right":"Correct.","wrong":"Not quite."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can…","items":["give examples of input and output devices","explain how a barcode scanner and touchscreen work","name common sensors and what they measure","explain the job of an ADC","describe a control system loop","explain the difference between a sensor and an actuator","choose suitable devices for a scenario","justify my choices"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"input device","meaning":"Sends data into a computer."},{"word":"output device","meaning":"Presents data from a computer."},{"word":"sensor","meaning":"An input device that measures a physical quantity."},{"word":"actuator","meaning":"An output device that causes movement."},{"word":"ADC","meaning":"Analogue-to-digital converter."},{"word":"DAC","meaning":"Digital-to-analogue converter."},{"word":"control system","meaning":"A system that reads sensors and controls outputs automatically."},{"word":"microprocessor","meaning":"The chip that processes readings and decides."},{"word":"threshold","meaning":"The value at which a system switches."},{"word":"feedback","meaning":"Output affecting the next input in a loop."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize, GCSE Computer Science: Input and output devices","Isaac Computer Science: Sensors and actuators","Raspberry Pi Foundation: Physical computing projects","HowStuffWorks: How laser printers work"]}]},"overlay":null}