{"base":{"id":"cs11-10","subject":"Computer systems","title":"Robotics","scene":"mix","steps":[{"use":"cs11","mode":"robot","eyebrow":"Sense, decide, act","title":"A line-following robot","body":"A robot uses sensors to detect a line and motors to steer. Run it.","actions":[{"id":"run","label":"Run"},{"id":"reset","label":"Reset"}]},{"use":"ai","mode":"sensor","eyebrow":"Distance sensors","title":"How close is too close?","body":"Robots avoid obstacles using ultrasonic or infrared distance sensors.","controls":[{"id":"limit","label":"Stop distance","min":4,"max":60,"step":2,"value":30,"unit":"cm"}],"actions":[{"id":"start","label":"Start"}]},{"use":"ai","mode":"loop","eyebrow":"The robot loop","title":"Sense, decide, act","body":"Every robot repeats a cycle of sensing, deciding and acting.","actions":[{"id":"start","label":"Start"}]},{"use":"cs11","mode":"quiz","look":"robot","eyebrow":"Check yourself","title":"Characteristics","body":"Which is NOT a characteristic of a robot?","question":"Choose one.","options":["It has sensors","It must look like a human","It is programmable"],"answer":1,"right":"Correct.","wrong":"Not quite."}],"more":[{"type":"cards","id":"worked","eyebrow":"Worked examples","title":"Step by step","items":[{"tag":"Pseudocode","title":"Obstacle avoidance","body":"REPEAT\n  d ← ReadDistance()\n  IF d < 20 THEN TurnRight()\n  ELSE MoveForward()\nUNTIL FALSE","code":true},{"tag":"Line follow","title":"Two sensors","body":"IF left sees line THEN steer left\nELSE IF right sees line THEN steer right\nELSE forward","code":true},{"tag":"Evaluate","title":"Robot vacuum","body":"pro: saves time; con: may miss corners, costs money","code":true},{"tag":"Autonomy","title":"Levels","body":"remote-controlled → partly autonomous → fully autonomous","code":true}]},{"type":"cards","id":"detail","eyebrow":"The ideas in detail","title":"Robots in the world","items":[{"tag":"Characteristics","title":"What makes a robot","body":"A mechanical structure, electrical components (sensors, actuators) and a program."},{"tag":"Industrial","title":"Factories","body":"Welding, painting and packing: fast, precise, never tired."},{"tag":"Domestic","title":"Homes","body":"Vacuum cleaners and lawn mowers."},{"tag":"Medical","title":"Surgery","body":"Surgeon-controlled robots make precise, small incisions."},{"tag":"Exploration","title":"Dangerous places","body":"Mars rovers, deep-sea and bomb-disposal robots."},{"tag":"Pros and cons","title":"Impact","body":"Higher productivity and safety, but job changes, high cost and need for maintenance."}]},{"type":"cards","id":"mistakes","eyebrow":"Common mistakes","title":"Watch out for these","items":[{"tag":"Mistake","title":"Thinking all robots are humanoid","body":"Most robots look nothing like people."},{"tag":"Mistake","title":"Ignoring the program","body":"A machine without a program is not a robot."},{"tag":"Mistake","title":"One-sided evaluations","body":"Give advantages and disadvantages."}]},{"type":"cards","id":"deeper","eyebrow":"Go deeper","title":"More than the lesson","items":[{"tag":"Space","title":"Perseverance","body":"NASA's Perseverance rover drives itself across Mars because signals take minutes to arrive; it plans its own safe routes."},{"tag":"Future","title":"Cobots","body":"Collaborative robots work safely beside people, stopping if they touch someone."}]},{"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","body":"Write pseudocode for a robot that stops at a red light (colour sensor).\n\nAnswer: REPEAT c ← ReadColour(); IF c = \"red\" THEN Stop() ELSE MoveForward() UNTIL FALSE.","code":true},{"tag":"Challenge","title":"Evaluate","body":"Should hospitals use robots for deliveries? Give one argument each way.\n\nAnswer: frees staff time; but cost and handling unexpected obstacles."}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Try it yourself","items":[{"title":"Be the robot","time":"15 minutes","need":["A partner","Tape on the floor"],"steps":["One person is the robot (eyes closed), the other gives only \"forward\", \"left\", \"right\".","Follow the tape line."],"why":"You experience how limited sensors and simple instructions are.","safety":"Clear the floor of obstacles."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Eight more questions","questions":[{"question":"A robot needs…","options":["a human face","wheels","sensors, actuators and a program"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Robots are used in factories because they…","options":["are fast and precise","need no electricity","never break"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"A Mars rover is an example of…","options":["a domestic robot","an exploration robot","a toy"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"An ultrasonic sensor measures…","options":["colour","temperature","distance"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"An autonomous robot…","options":["makes decisions without human control","is always remote-controlled","cannot move"],"answer":0,"right":"Correct.","wrong":"Not quite."},{"question":"A disadvantage of robots:","options":["they get tired","high initial cost","they need sleep"],"answer":1,"right":"Correct.","wrong":"Not quite."},{"question":"Motors in robots are…","options":["sensors","processors","actuators"],"answer":2,"right":"Correct.","wrong":"Not quite."},{"question":"Robotic surgery offers…","options":["greater precision","no surgeon","free operations"],"answer":0,"right":"Correct.","wrong":"Not quite."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can…","items":["describe the characteristics of a robot","give examples of robots in different areas","write pseudocode for simple robot behaviour","evaluate advantages and disadvantages of robots"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"Robot","meaning":"A programmable machine with sensors and actuators."},{"word":"Autonomous","meaning":"Able to act without human control."},{"word":"Actuator","meaning":"Device that produces movement."},{"word":"Cobot","meaning":"A robot designed to work alongside people."}]},{"type":"sources","id":"sources","title":"Sources","items":["NASA: Mars Perseverance rover","International Federation of Robotics: World Robotics report","Raspberry Pi Foundation: robot buggy projects","BBC Bitesize, GCSE Computer Science: robotics"]}]},"overlay":null}