📘 CodingMarble Learn

Robotics: How Robots Sense, Think and Act

A robot is a machine that senses the world, decides what to do with a program, and acts with motors. It has a body (structure), sensors, a controller, actuators, a transmission such as gears, and a power supply. Robots help in factories, hospitals, farms, homes and space.

🎬 Step-by-step story

  1. A robot is a machine that does three things: sense, think and act. Look at the arm, the sensor and the brain box.
  2. Sense: a sensor measures the world. Here a distance sensor sends a beam and finds the box.
  3. Think: the controller is a small computer. It runs a program: if the box is near, pick it up.
  4. Act: motors at each joint turn. The arm bends at the shoulder and elbow and reaches the box.
  5. Gears pass motion from the motor to the arm. A big gear turns slowly but pushes harder.
  6. Try it: move the shoulder and elbow sliders and change the gear teeth. Can you reach the box?

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is a remote-control car a robot?

Not really. A person does the thinking. A robot has its own controller that decides from sensor data, like the yellow light in step 2.

What is the difference between a sensor and an actuator?

A sensor takes information in (the blue beam, step 1). An actuator puts movement out (the joint motors, step 3).

Why use gears? Why not connect the motor straight to the arm?

Small motors spin fast but weakly. A big gear slows the turn and raises the force, as step 4 shows.

How does the arm know how far to bend?

The program calculates joint angles for the target. Try the sliders in step 5 to feel it.

Does a robot need to look like a human?

No. Most robots are arms, carts or drones. Shape follows the job, like our one-armed robot in step 0.

What is a robot?

A robot is a machine that can sense its surroundings, decide using a program, and act on the world. It works by itself, fully or partly.

Robotics is the field that designs, builds and programs robots. It mixes mechanical engineering (body and movement), electrical and electronic engineering (motors, circuits, sensors) and computer science (programs).

A washing machine follows a fixed timer, so it is an automatic machine. A robot changes what it does based on what it senses.

Parts of a robot: hardware and software

Hardware is what you can touch. Software is the set of instructions.

Structure and transmission: joints, gears and degrees of freedom

A joint lets two parts move. A revolute joint turns (like your elbow). A prismatic joint slides (like a drawer).

Degrees of freedom (DOF) = the number of independent ways a robot can move. Our 3D arm has 2 DOF (shoulder, elbow). A human arm has about 7.

Transmission carries motion from motor to joint: gears, belts and pulleys, chains, screws.

Gear ratio = teeth on driven gear ÷ teeth on driver gear. If the ratio is 3, the output turns 3 times slower but with about 3 times more turning force (torque). Speed and force trade off.

Types and uses of robots across engineering

Good points: accuracy, work in danger, no tiredness. Limits: cost, need for power and repair, job changes, safety and ethics.

Key formulas and definitions

Worked examples

1. A line-following robot has two light sensors, a microcontroller and two wheel motors. Name the sense, think and act parts.

Sense: the two light sensors see the dark line. Think: the microcontroller compares the two readings. Act: it slows one wheel motor to turn back onto the line.

2. A motor gear has 12 teeth and drives a wheel gear with 36 teeth. The motor turns at 300 rpm. Find the gear ratio and wheel speed.

Ratio = 36 ÷ 12 = 3. Wheel speed = 300 ÷ 3 = 100 rpm. The wheel turns slower but with about 3 times more torque.

3. A robot arm has a rotating base, a shoulder, an elbow and a wrist that both bends and twists. How many degrees of freedom?

Base 1 + shoulder 1 + elbow 1 + wrist 2 = 5 DOF.

Common mistakes

Practice quiz

1. Which part of a robot measures the surroundings?
2. The "brain" of a robot is the:
3. A servo motor is an example of:
4. Driver 10 teeth, driven 30 teeth. The output turns:
5. An elbow-like joint that turns is called:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is robotics in simple words?

Robotics is the science of designing, building and programming machines that sense, decide and act on their own.

What are the main parts of a robot?

Structure, sensors, controller, actuators, end effector, power supply and software.

Which subjects do I need for robotics?

Maths, physics (motion, electricity), electronics and programming.

Where this is taught

Spain2º ESOComputational thinking, programming and robotics
Spain3º ESOComputational thinking, programming and robotics
Spain4º ESOTechnological operators
Spain4º ESOComputational thinking, automation and robotics
Spain1º BachilleratoAutomatic systems
Ukraine10 класBasics of automation and robotics
Ukraine11 класBasics of automation and robotics
Japan高校(専門学科)1〜3年Electromechanics (Mechatronics)
Japan高校(専門学科)1〜3年Production Technology
South Korea중학교 2학년Sustainable technology and convergence
South Korea고등학교 2학년Understanding robots
South Korea고등학교 2학년Engineering fields and robots
South Korea고등학교 2학년Robotics project
South Korea고등학교 2학년Engineering innovation for the future
Russia7 классRobotics
Russia8 классRobotics
Russia9 классAlgorithms and programming
Russia9 классRobotics
China高二Sel.2 Robot design and making (engineering)

Learn first

Learn next

Related lessons

All Computer Science lessons