When we hear the phrase "smart robot", we often picture a machine that understands speech and makes decisions like a person. Reality is simpler, and just as interesting. Intelligence in a robot is not one thing. It is a chain of small abilities: sensing what is around it, understanding what it senses, deciding, and moving. In this article we explain that chain in plain language, and we show what artificial intelligence can do in robots today and what it cannot, with a real example from the Perseverance rover on Mars.
If you are at the start of the road, begin with What Is a Robot? A Beginner's Guide and then come back here.
A robot without AI: it obeys but does not understand
The simplest robots run a fixed program. An arm in a factory moves to a set point, grabs a part and puts it at another set point. If the part is a few centimeters away from where it should be, the task may fail, because the arm does not "see" the part. It only repeats the programmed motion.
This kind of robot is very useful where the environment is fixed. It is not necessarily less valuable than a smart robot, because many industrial jobs succeed precisely because everything in them is organized and repeated.
The robot loop: sense, think, act
Any robot that interacts with the world can be described in three steps that repeat all the time:
- Sense: Sensors collect data. A camera takes a picture, a distance sensor measures the gap, a rotation sensor knows the angle of a wheel.
- Think: A program turns the raw data into meaning and then into a decision. This is often where artificial intelligence comes in.
- Act: Motors carry out the decision, so the robot moves, grips or stops.
After the action the world changes a little, and the loop starts again. The faster and more accurate the loop, the smarter the robot looks. If you want to see the first step in practice in the simplest form, the obstacle-avoiding robot with the HC-SR04 sensor shows a small complete loop: sensor, decision, motor.
Where does AI come in?
Artificial intelligence in robots usually shows up in three places:
1. Perception: understanding what the camera sees
A camera produces millions of numbers that represent the colors of the dots in the image. The job of perception is to turn those numbers into useful information: this is a wall, this is a rock, this is an open path. Machine learning models are used here, models that were "trained" on many examples until they recognize patterns. You do not write a rule that says "a rock is this color". You give the model examples and it learns the difference.
2. Planning: choosing the path
When the robot knows what is around it, it needs a decision: which way should it go? How can it avoid the obstacle without wasting time? Planning algorithms compute possible paths and choose the best one by criteria such as safety and speed.
3. Learning: improving through experience
Some systems learn from experience. They try a movement, measure the result and adjust. This helps with tasks whose rules are hard to write by hand, such as gripping objects of different shapes. But it needs data, time and many trials, and training is often done in simulation before it moves to the real world.
A real example: Perseverance on Mars
NASA says the Perseverance rover has two navigation cameras among nine engineering cameras, and that they support the rover's autonomous driving. At each stop the rover uses the two cameras to build a picture of the surroundings. NASA also describes a function called AutoNav that lets the rover drive itself across terrain after the team on Earth sends it a general destination.
Why does this matter? Because a signal from Earth to Mars takes a long time to arrive, so a person cannot drive the rover moment by moment with a joystick. The rover has to act partly on its own. NASA reported that the rover once drove about 109 meters autonomously, its longest autonomous drive at the date given in the NASA news item. Its speed stays very low: the maximum wheel speed is about 4.2 cm per second, according to the Jet Propulsion Laboratory website.
The lesson for us: the "intelligence" here is not a conscious being. It is software that uses cameras to avoid rocks and slopes and to decide where to put the wheels. That is exactly what we mean by intelligence in robots.
What can't AI do?
It is useful to know the limits too, so you are not fooled by advertising:
- It does not understand the way a person does: A model that recognizes images learns statistical patterns. It can fail in a case it has not seen, such as strange lighting or an object with an unfamiliar shape.
- It needs good data: If the training examples are weak or not varied, the result will be weak.
- It needs hardware: Large vision models need a strong processor. That is why a simple board cannot run them, and this is where choosing the board matters, as we explained in Arduino vs ESP32 vs Raspberry Pi.
- Safety is a human responsibility: Any robot working near people needs clear limits on speed and force, and it is not left to the model alone.
A simple example you can do at home
The easiest way to see the difference between "a fixed program" and "a decision from a sensor" is to build two small projects. In the first, the robot drives forward for three seconds and then stops, whatever happens. In the second, you add a distance sensor, so it drives until it sees an obstacle and then stops. The second project is not artificial intelligence in the modern sense, but it teaches you the idea of a decision based on a reading, which is the base of everything that follows.
Words you will hear often
- Machine learning: An approach in which programs learn patterns from examples instead of hand-written rules.
- Computer vision: A field that processes images to extract useful information.
- Simulation: A virtual environment where a robot can be tested without risk to real parts.
- Inference: Running a previously trained model to get a result on new data.
Frequently asked questions
Do all robots use AI? No. Many run fixed programs and do their job well.
Will AI make the robot think for itself? It makes the robot better at handling changing situations inside a specific task, but it does not give it awareness or wants.
Do I need advanced math? Not to begin. Understanding the ideas and experimenting is enough, and the need for math grows as you go deeper.
How to start as a beginner
You do not need a huge computer to learn these ideas. Try this order:
- Start with a simple sense-and-act loop on Arduino: a sensor decides and a motor moves.
- Learn the basics of programming in Python, the most used language in machine learning.
- Try a stronger board such as a Raspberry Pi with a camera, and learn to read and process images.
- Try ready-made object detection models on your own computer and watch how they get things right and wrong.
- Tie what you learned to a small project, such as a robot that follows a color or avoids objects.
If you want a time plan for these steps, follow the 90-day robotics learning plan.
Summary
Intelligence in a robot is a loop of sensing, thinking and acting. Artificial intelligence improves the thinking part, especially understanding images, choosing a path and learning from experience. The best way to understand it is to build your own small loop with your hands and then grow it step by step.
Sources
- NASA / JPL, news item on the Perseverance rover and navigation cameras: https://www.jpl.nasa.gov/news/nasas-perseverance-rover-cameras-capture-mars-like-never-before/
- NASA / JPL, news item on the first AutoNav drive: https://www.jpl.nasa.gov/news/nasas-self-driving-perseverance-mars-rover-takes-the-wheel/
- Jet Propulsion Laboratory, Mars 2020 mobility page (wheel speed): https://robotics.jpl.nasa.gov/what-we-do/flight-projects/mars-2020-rover/m2020mobility/
The explanation was written originally for this site. The cover image is a NASA self-portrait of the rover.