Beginners learn robotics fundamentals via free browser simulators like Tinkercad and Wokwi without buying hardware first
The author recommends starting with software simulation to avoid costly component mistakes, noting that code written in tools like Tinkercad Circuits or Wokwi for ESP32 boards transfers almost unchanged to physical hardware once purchased.
Article text · Original source
When I was in college, all I wanted to do was build robots. I built line followers, wall followers and small robots with ultrasonic sensors, and I would happily spend whole weekends on each one. What I did not have was money. Every sensor and every motor driver meant saving up for weeks, so I could only build a small part of what I wanted to try.
After I got my first job, that problem flipped. For the first time I could order components whenever I wanted, and I did. I bought a lot of them, and many turned out to be the wrong ones. One example still stays with me. For a small robot, I bought micro metal gear motors with a high RPM because I wanted it to be fast. Once everything was mounted, the robot weighed more than those motors had the torque to carry, and it barely moved. I had to strip out parts and make the circuit smaller just to get it running. I had picked the motor for speed and never checked torque against weight. Looking back, I was buying parts before I understood what my robot actually needed.
That is why I now tell anyone starting to learn robotics without hardware first. Today you can wire circuits, program boards, drive complete robots and even move robot arms on a normal laptop, for free. By the time you buy your first parts, you will know exactly which ones you need and why. Here is how I would start if I were doing it again.
Why Start in Software?
A simulator gives you instant feedback. If a wire goes to the wrong pin, nothing burns; you fix it and press run again. You can test an idea in five minutes instead of waiting five days for a courier. Most importantly, the code you write in a simulator, whether it is Arduino C++, Python or ROS 2, carries over to real hardware almost unchanged.
Image Source: Autodesk Tinkercad, circuit by codingwitht2 (Instructables)
Simulation does have limits. It will not teach you soldering, loose jumper wires, a battery that drops voltage under load, or a sensor that gives noisy readings in sunlight. You will learn those later, on real parts. But by then you will be debugging the hardware, not the basics.
Tinkercad Circuits: Arduino in your Browser
Image source: Autodesk Tinkercad circuit by codingwitht2, Instructables
Tinkercad Circuits from Autodesk is where I would send any complete beginner. It runs in the browser; it is free, and you only need an account. You drag an Arduino Uno, a breadboard and components onto the screen, wire them up, and write the code either in blocks or in normal Arduino text.
A good first project is a small obstacle-avoiding robot, because it shows the cycle every robot follows: sense, think and act. We will keep building on this same robot for the rest of the article.
| Step | What does it | In this project |
| Sense | Input sensor | An ultrasonic distance sensor measures how far away the obstacle is |
| Think | Microcontroller | Arduino Uno compares the distance with a limit and decides what to do |
| Act | Output actuators | Two DC motors drive the robot forward, or turn it left or right |
In Tinkercad, place an Arduino Uno, an ultrasonic distance sensor, two hobby gear motors and an L293D motor driver, because the Arduino's pins cannot supply enough current to run motors directly. The code reads the distance continuously. If the path is clear, both motors run forward. If something is closer than about 20 cm, one motor reverses, and the robot turns away.
While the simulation runs, click the ultrasonic sensor and drag the object closer, then watch the motors change direction.
Along the way, you learn breadboard wiring, digital and PWM pins, how a motor driver works, and how to read sensor values on the serial monitor.
Tinkercad is limited to Arduino Uno-class boards and a fixed parts library, so you will outgrow it. That is exactly the point of a first tool.
Example project: How to Create a Virtual Simulation of Obstacle Avoidance Robot in Tinkercad (Instructables) - A three-step project with a video that builds and runs a virtual obstacle-avoiding robot in Tinkercad Circuits.
Wokwi: ESP32 and Raspberry Pi Pico without the board
Image Source: Wokwi simulator (wokwi.com), project by sief-ali
In Tinkercad, everything stays on one board. A real robot usually needs to talk to the outside world: send an alert to your phone, log its readings, or take commands. That is why the next step is the ESP32, which has built-in Wi-Fi and Bluetooth Low Energy. It is also a good point to try a second language: as well as Arduino C++, the ESP32 runs MicroPython.
Wokwi simulates ESP32, Raspberry Pi Pico, Arduino and STM32 boards in the browser, and you can program the ESP32 in either Arduino C++ or MicroPython. Its Wi-Fi simulation lets the virtual ESP32 connect to the internet using HTTP or MQTT. Bluetooth is not simulated yet, so BLE projects still need the real board.
Now rebuild the same robot on an ESP32 in Wokwi. The HC-SR04 still does the sensing, and the ESP32 now thinks. The first change is the motors. Wokwi cannot simulate DC motors; its motor parts are servos and stepper motors. So the two wheels become stepper motors, each with an A4988 driver.
This turns out to be a useful lesson. A stepper motor moves a fixed angle for every step, typically 1.8 degrees, or 200 steps per turn. Count the steps, and you know exactly how far each wheel has travelled:
d = (N_steps / 200) × π × D_wheel
Working out where a robot is from how much its wheels have turned is called odometry, and you will meet it again with TurtleBot3 later in this article.
Next, add an MPU6050, which combines a 3-axis accelerometer and a 3-axis gyroscope. From it you can read the robot's orientation (how much it is tilted) and its angular velocity (how fast it is turning). Adding up the turn rate over time tells you which way the robot is facing, so you can check whether it really turned as much as you commanded. Show the distance to the nearest obstacle, what the robot is doing (driving or turning) and its heading on an SSD1306 OLED display.
Finally, put it online. Wokwi's virtual ESP32 connects through a built-in guest Wi-Fi network, so when the HC-SR04 detects an obstacle, the ESP32 can send an alert to the Blynk app on your phone, along with the latest orientation readings. Write it first in Arduino C++, then try rewriting it in MicroPython to compare the two.
By the end, your robot senses, decides, moves, knows how far it has gone and reports to your phone, and you still have not spent a rupee.
Example project: How to Simulate ESP32 Projects Online for Free (Hackster). A step-by-step guide from the Wokwi team that starts a new ESP32 project in Wokwi and walks through the editor, the parts and the simulation controls.
Webots: your first complete robot simulator
Image source: Cyberbotics, Webots
Tinkercad and Wokwi simulate circuits. Webots simulates whole robots: wheels, motors, sensors, physics and the room they drive in. It is free and open source, runs on Windows, Linux and macOS, and comes with a large library of ready robot models, from the small e-puck to TurtleBot3 and industrial arms. You write the robot's controller in C, C++, Python, Java, MATLAB or ROS.
Webots also runs comfortably on a normal laptop, which is why I suggest it before Gazebo. Open one of the sample worlds, pick the e-puck, and open its controller file. Within ten minutes you are changing real robot code and watching the result.
Example project: Create and Play Your First Robot Program using Webots (Medium) -A short project that writes your first controller for the e-puck and makes it move, and the next part of the series adds simple obstacle avoidance.
ROS 2 and Gazebo: how real robots are programmed
-Building-a-Map-with-SLAM%252C-Shown-in-RViz-(right).jpg&mode=full&exp=1796515200&sig=6bd2b675be772735)
Image source: ROBOTIS, TurtleBot3 SLAM simulation in Gazebo
Once you are comfortable moving a simulated robot, it is time to learn ROS 2, the Robot Operating System. Despite the name, it is not an operating system. It is a framework that lets the different parts of a robot, such as the LiDAR driver, the mapping code and the motor controller, run as separate programs called nodes and talk to each other through topics. Most robotics companies and research labs build on it, and it is what I teach in my ROS 2 course on Circuit Digest.
Start with turtlesim, a tiny 2D turtle that you move from the keyboard. It looks simple, but it teaches you nodes, topics, publishers and subscribers, which are the core of every ROS 2 robot.
Then move to Gazebo with a TurtleBot3. ROBOTIS, the company behind TurtleBot3, provides ready simulation packages for ROS 2 Jazzy with Gazebo Harmonic. You launch a house world, drive the robot from the keyboard, and watch its simulated LiDAR scan in RViz. TurtleBot3 also publishes its odometry on a topic called /odom, the same idea you worked out by counting stepper steps in Wokwi. A few commands later, you can build a map of the house using SLAM, which is the same workflow I am using for my real Bumper-Bot.
ROS 2 Jazzy runs best on Ubuntu 24.04. If you use Windows, you can run it inside WSL or set up a dual boot.
Example project: ROS 2 Jazzy obstacle avoidance for TurtleBot3 in Gazebo (GitHub) -A Python ROS 2 node that splits the LiDAR scan into front, left and right zones and steers the TurtleBot3 away from obstacles, with setup steps for Ubuntu 24.04 on WSL.
Two first projects: obstacle avoidance and line following
Image source: Felipe N. Martins, Robotics Simulation Labs (Webots)
These are the two projects every robotics beginner builds on real hardware, so build them in simulation first.
For obstacle avoidance, the e-puck in Webots is ideal. It has eight infrared distance sensors around its body, named ps0 to ps7. The two front sensors are ps0 and ps7. It is the same sense, think, act loop as your Tinkercad robot, now with real physics. The logic is simple: if something is close on the right, turn left, and if it is close on the left, turn right.
from controller import Robot
robot = Robot()
timestep = int(robot.getBasicTimeStep())
MAX_SPEED = 6.28
sensors = [robot.getDevice(f"ps{i}") for i in range(8)]
for s in sensors:
s.enable(timestep)
left = robot.getDevice("left wheel motor")
right = robot.getDevice("right wheel motor")
for m in (left, right):
m.setPosition(float("inf"))
while robot.step(timestep) != -1:
values = [s.getValue() for s in sensors]
right_obstacle = values[0] > 80 or values[1] > 80
left_obstacle = values[6] > 80 or values[7] > 80
left_speed = right_speed = 0.5 * MAX_SPEED
if left_obstacle:
left_speed, right_speed = 0.5 * MAX_SPEED, -0.5 * MAX_SPEED
elif right_obstacle:
left_speed, right_speed = -0.5 * MAX_SPEED, 0.5 * MAX_SPEED
left.setVelocity(left_speed)
right.setVelocity(right_speed)The threshold of 80 is a raw sensor value, so try changing it and see how early the robot reacts. In Gazebo, you can do the same thing with the TurtleBot3's LiDAR by splitting the scan into left, front and right zones.
For line following, add ground sensors to the e-puck and draw a black line on the floor of your world. When the left sensor sees the line, steer left; when the right one sees it, steer right. It is exactly the logic you would use with IR sensors on a real line follower, one of the robots I built in college.
Example project: Line-follower with State Machine (Robotics Simulation Labs) -This lab uses the e-puck's ground sensors in a Webots sample world to follow a line, after first working through obstacle avoidance with its distance sensors.
Moving a robot arm in simulation
Image source: MoveIt documentation, PickNik Robotics
Robot arms are expensive, which makes them the best reason to use a simulator. Webots includes several industrial arm models, such as the Universal Robots UR series and the Franka Emika Panda, and each joint is just a motor you can command from code.
Start with forward kinematics: set each joint to an angle and see where the end of the arm ends up. For a simple two-link arm with link lengths L1 and L2 and joint angles θ1 and θ2, the end point is:
x = L1 cos θ1 + L2 cos(θ1 + θ2)
y = L1 sin θ1 + L2 sin(θ1 + θ2)
Then try it the other way round, which is inverse kinematics: pick a point and work out the joint angles that reach it. This is the maths behind every pick-and-place robot, and it is far easier to learn when a wrong answer only means a virtual arm swinging the wrong way.
If you are already using ROS 2, the next step is MoveIt 2, which plans arm movements and shows them in RViz. It works the same way with a simulated arm as with a real one.
Example project: How to Create Your First C++ MoveIt 2 Project - A small "Hello World" project that moves the gripper of a simulated myCobot arm to a position you choose, shown in Gazebo and RViz.
NVIDIA Isaac Sim: where it fits
Image source: NVIDIA Technical Blog
You will see Isaac Sim everywhere in robotics news, especially around humanoids and robot learning. It produces very realistic scenes and is used to train robots with AI, for example by generating synthetic camera data or running thousands of training attempts in parallel.
The catch is hardware. NVIDIA's current requirements list a GeForce RTX 4080 with 16 GB of VRAM and 32 GB of RAM as the minimum, so most student laptops cannot run it. My advice is to learn the ideas behind it now, and come back to it once you are comfortable with Webots or Gazebo and have access to a suitable GPU, whether at college, at work or in the cloud.
Example project (for later): MoveIt 2 in Isaac Sim (NVIDIA docs) - NVIDIA's tutorial runs a robot arm scene in Isaac Sim with MoveIt 2, so it connects to what you learned in the arm section.
Which simulator should you start with?
Image Source: Autodesk Tinkercad (codingwitht2), Wokwi, Cyberbotics, ROBOTIS, NVIDIA (same sources as the images above)
If you are completely new, go in this order: Tinkercad, then Wokwi, then Webots, then ROS 2 with Gazebo. Leave Isaac Sim for later.
| Tool | Best for | Runs on | Cost | What you need |
| Tinkercad Circuits | Basic electronics and Arduino programming | Browser | Free | Any laptop and internet |
| Wokwi | ESP32, Raspberry Pi Pico, STM32 and MicroPython projects | Browser | Free plan, paid plans for extra features | Any laptop and internet |
| Webots | Complete robots, beginner-friendly | Windows, Linux, macOS | Free and open source | A normal laptop |
| ROS 2 with Gazebo | How real robots are programmed: SLAM, navigation, arms | Ubuntu 24.04 (WSL on Windows) | Free and open source | A normal laptop; a dedicated GPU helps |
| NVIDIA Isaac Sim | Realistic simulation and robot learning with AI | Ubuntu or Windows 11 | Free download | RTX 4080-class GPU, 16 GB VRAM, 32 GB RAM |
When to buy your first parts
Buy hardware once your simulated robot can avoid obstacles and follow a line, and once you understand why each part is there. At that point, a small starter set covers almost everything you have practised: an Arduino Uno or ESP32, two geared DC motors with wheels, a motor driver, an ultrasonic sensor, a pair of IR line sensors and a battery pack. In other words, the same robot you have already built in Tinkercad and Wokwi.
Image Source: Autodesk Tinkercad, circuit by codingwitht2 (Instructables)
Most of your simulation code will move across with small changes to PINs and sensor thresholds. Simulators also make you think about the things I skipped. In Webots and Gazebo, every motor has a maximum torque, so a robot that is too heavy for its motors simply will not move, long before you have paid for anything. The difference from my own first shopping spree is that this time you will be buying parts you already know how to use.