Robots, Society and Your First Robot
Think through robot safety, jobs and ethics, then plan a first robot project with a kit, clear goals and a test-driven build process.
Welcome back!
Step 1 of 10Learn
Who is responsible when a robot makes a mistake?
A delivery robot rolling down a sidewalk swerves to avoid a dog and blocks a wheelchair user. A factory robot arm moves unexpectedly and injures a worker who entered its area. A self-driving test vehicle misjudges a situation. In each case, people ask: who is responsible? The designer, the company, the operator, the person who wrote the code?
Robots raise real questions that engineers have to think about from the start, not after something goes wrong:
- Safety: Industrial robots traditionally work behind fences, with doors that cut power when opened. Collaborative robots limit their speed and force and stop when they touch something unexpected. Every robot should have a clearly marked emergency stop.
- Jobs: Robots have taken over many repetitive factory and warehouse tasks. They also create jobs in design, maintenance, programming and supervision. How these changes affect workers depends heavily on training and on decisions made by companies and governments.
- Privacy: Robots with cameras and microphones collect data in homes and public places. Who sees it, and how long is it stored?
- Fairness: A vision system trained mostly on one kind of image may work worse for some people than others, so testing must cover everyone who will use the robot.
Step 2 of 10Practice · Select all that apply
Which features help make a robot safer to work near people? Select all that apply.
Select all that apply.
Step 3 of 10Diagram
Layers of safety around an industrial robot
Tap a shape with to see more.
- Safe design
Limit speed and force; round edges; collaborative arms that stop on contact.
- Guards and sensors
Fences, light curtains and floor mats that stop the robot when someone enters.
- Emergency stop
A big, clearly marked button anyone can reach.
- Training and procedures
Lock-out rules before maintenance; only trained staff inside the cell.
Step 4 of 10Learn
Science fiction vs. real robot ethics
In 1942, the science fiction writer Isaac Asimov introduced his famous "Three Laws of Robotics" in a short story: a robot may not harm a human, must obey humans unless that would cause harm, and must protect itself unless that conflicts with the first two laws. They're a brilliant storytelling device, and many of Asimov's stories are about how the laws go wrong in tricky situations.
Real robots can't follow laws like these, because "harm" isn't something a robot can reliably recognize. Real robot ethics is more practical and sits mostly with the people who design, sell and use robots:
- Test honestly in the conditions where the robot will really work, including rare and difficult cases.
- Design for failure: what happens when a sensor breaks, the battery dies or the code crashes? The robot should fail safely, usually by stopping.
- Be transparent about what the robot can and can't do, so people don't over-trust it.
- Keep humans in control of decisions with serious consequences.
- Follow standards: there are international safety standards for industrial and service robots, and engineers use them as design constraints.
These are the same responsibilities you met in the engineering design process: safety first, honesty about results, and thinking about everyone the design affects.
Step 5 of 10Practice · True or false
Real robots keep people safe mainly by following Asimov's Three Laws of Robotics programmed into them.
Step 6 of 10Compare
Asimov's laws vs real robot safety
| Aspect | Asimov's Three Laws (fiction) | Real-world robot safety |
|---|---|---|
| What it relies on | A robot that understands "harm" | Sensors, limits and fail-safe hardware |
| Who is responsible | The robot itself | Designers, makers, operators and owners |
| How it is checked | Not at all: it is a story device | Testing, standards and inspections |
| When something goes wrong | Plot twist | Investigation, fixes and sometimes legal liability |
Step 7 of 10Learn
Planning your first robot
You don't need a lab to start building robots. A good first project uses a kit or starter set with a microcontroller board, a two-wheel chassis, a motor driver, a battery holder and a couple of sensors (usually ultrasonic and line sensors). Many schools and libraries have them, and simulators let you program virtual robots for free in a browser.
Use the engineering design process:
- Define the goal clearly. "Drive around the room without hitting anything for two minutes" is a better goal than "make a cool robot."
- Build in small steps and test each one. Make one motor spin. Then both. Then drive straight for one second. Then read the distance sensor and print the values. Only then combine sensing and driving.
- Expect problems and debug methodically. Use the five building blocks: is it the body, sensors, controller, actuators or power? Print sensor values to see what the robot "sees."
- Iterate. Add one feature at a time: obstacle avoidance, then line following, then a state machine that combines them.
Robotics competitions for students, from local challenges to international leagues, are a great next step. You'll work in a team, meet deadlines, explain your design to judges and learn more in a season than from any single book.
Step 8 of 10Tap to reveal
Debugging checklist when your robot won't move
Power
Is the battery charged and the switch on? Measure the voltage. Low batteries cause strange behavior, like motors twitching or the board resetting when motors start.
Wiring
Are motor and sensor wires connected to the pins your code uses? Loose jumper wires are the most common fault in beginner robots.
Code
Did the upload succeed? Add print statements to confirm the program reaches the motor commands and to show the sensor readings.
Motor driver
Is the driver powered separately from the logic, if required, and are the enable pins set? Test one motor at full power with the simplest possible program.
Mechanics
Do the wheels spin freely by hand? A rubbing wheel or a too-tight gear can stall a small motor.
Step 9 of 10Practice · What would you do?
What would you do?
You've just assembled a robot kit. You've written a 200-line program that should make it follow a line, avoid obstacles and play a sound at the finish. You upload it and the robot does nothing. What's the best next step?
Step 10 of 10Practice · Choose one
Which is the best first goal for a beginner robot project?
Lesson complete!