PTENES
LEARNING PATH 1 · BEGINNER

🔌 Getting started

From your first LED to your first robot that moves on its own. You’ll learn what a robot is, the electronics that matter, how to program the ESP32, read sensors, control motors safely, and finish with a rover that avoids obstacles. You can start without hardware, using the simulator.

6
Modules
36
Topics
Beginner
Level
ESP32
The robot’s brain
0%
0 of 0 topics read in this track
1.1kit 1.2electronics 1.3ESP32 1.4sensors 1.5motors 1.6rover green: understand and program cyan: sense and move each step works on its own in Wokwi or on the bench

How to read this map: The first three steps (green) lay the groundwork: what to buy, the electronics, and your first program. The next two (cyan) cover the robot’s senses and muscles. The final step, with a glow, brings it all together in the rover. If you’ve already mastered a step, skip to the next one.

🛞 What you’ll build in this track

A two-wheeled rover with a cardboard, MDF, or acrylic chassis. It moves forward, measures distance with ultrasound, and when it encounters an obstacle, it stops, looks to both sides, and chooses the clear path. Along the way, you’ll also build an LED blinker, a distance meter in the Serial Monitor, and a motor test with speed control.

  • ✓ESP32 code with API 3.x (the current version)
  • ✓Everything can be tested in the Wokwi simulator
  • ✓Power and safe wiring from the start
  • ✓A direct foundation for Track 2 (autonomous robots)

💡 Don’t have hardware yet?

Modules 1.1 to 1.4 run entirely in Wokwi, for free, in your browser. Buy the kit when you get to the motors (1.5).

Track map

Detailed content

1.1
Foundation
0%

🦾 What a robot is and what’s in its kit

The sense-think-act cycle, real robots in 2026, which board to use, the kit piece by piece, and your first program in the simulator.

What it is:

A robot is a machine that measures its surroundings, makes decisions, and acts in a cycle, checking the result of its own actions.

Why learn this:

Every project in the course uses this cycle with different parts; it also guides you when troubleshooting.

Key concepts:

Sensor · controller · actuator · closed-loop control.

What it is:

An overview without the hype: industry, homes, warehouses, open-source arms like the SO-101, and humanoids that are still being tested.

Why learn this:

It helps you choose projects that work and look critically at robot videos.

Key concepts:

Cobot · AMR · open-source arm · success rate.

What it is:

The six tracks, entry points for different backgrounds, and the sequence: read, simulate, build, verify.

Why learn this:

Start with the robot you want to build and learn only what it requires.

Key concepts:

Learning paths · simulate first · my journey · exportable questions.

What it is:

ESP32 for motors and sensors, Raspberry Pi 5 for cameras and ROS 2, Jetson Orin Nano Super for heavy AI workloads.

Why learn this:

The right board saves battery, money, and rework as your robot grows.

Key concepts:

GPIO · real time · TOPS · the computer thinks, the microcontroller controls.

What it is:

Each part of the rover, what it does, how much it costs, and what to avoid (9 V for motors, L298N).

Why learn this:

It helps you avoid buying parts you won’t use or building a robot that won’t move because it lacks power.

Key concepts:

Motor driver · HC-SR04 · BMS · common GND.

What it is:

Your first LED blink in the simulator, with ready-to-use code for API 3.x and workbench safety rules.

Why learn this:

Making a mistake in the simulator won’t burn out a component; safety habits matter all the way up to the robotic arm.

Key concepts:

Wokwi · setup and loop · Serial Monitor · ledcAttach.

View Full
1.2
Foundation
0%

⚡ Essential electronics

Voltage, current, and resistance through memorable analogies; Ohm’s law applied to an LED; breadboards, multimeters, and 3.3 V logic levels.

What it is:

The three quantities found in every circuit, explained with a water tank analogy: pressure, flow, and a narrow pipe.

Why learn this:

Without them, you can’t choose a battery, resistor, or motor driver.

Key concepts:

Volt · amp · ohm · closed circuit.

What it is:

Putting V = R × I to work: calculate the resistor that protects an LED at 3.3 V.

Why learn this:

This is the calculation you’ll use most at the workbench, and it prevents burned-out LEDs and pins.

Key concepts:

LED voltage drop · safe current · color code.

What it is:

The breadboard’s internal layout: connected columns, power rails, and the center gap.

Why learn this:

Half of the circuits that “don’t work” are built in the wrong row.

Key concepts:

Power rail · jumper wire · short circuit · clean layout.

What it is:

How to measure battery voltage, test a wire for continuity, and check a resistor.

Why learn this:

Measuring turns “I think it’s right” into certainty, and helps protect your boards.

Key concepts:

DC range · continuity · black probe on GND.

What it is:

The difference between an on/off signal and one that varies, and why the ESP32 runs at 3.3 V.

Why learn this:

Connecting a 5 V sensor directly to the ESP32 is the fastest way to burn out a pin.

Key concepts:

HIGH/LOW · ADC · level shifter.

What it is:

Two circuits found in every robot: lowering a voltage to measure it and reading a button without noise.

Why learn this:

Measuring the robot’s battery and safely reading the HC-SR04 both depend on them.

Key concepts:

Voltage divider · internal pull-up · floating input.

View Full
1.3
Practice
0%

💻 ESP32: your first program

Arduino IDE 2.x with the esp32 3.x package, your first upload to a physical board, Serial Monitor, inputs, and PWM with the new API.

What it is:

Install the IDE and Espressif’s official package, now in the 3.x generation.

Why learn this:

Older tutorials use API 2.x and no longer compile; knowing the version saves you hours of troubleshooting.

Key concepts:

Board Manager · esp32 package · API version.

What it is:

Choose the right board and port, upload the LED blink, and resolve the most common connection errors.

Why learn this:

This is where many people give up; here, your first upload becomes predictable.

Key concepts:

COM/tty port · USB driver · BOOT button · data cable.

What it is:

The structure of a sketch and the C++ basics you need to write readable robot programs.

Why learn this:

Organizing code into functions makes the rover in 1.6 easy to adjust.

Key concepts:

Variable type · const · if/for · function.

What it is:

Use messages and Serial Plotter to see what your program is thinking.

Why learn this:

A robot has no screen; serial is your only window into it.

Key concepts:

Baud rate · print · Serial Plotter.

What it is:

Read a button with the internal pull-up and a potentiometer through the ESP32’s ADC.

Why learn this:

You’ll use the same kind of reading with real sensors in 1.4.

Key concepts:

INPUT_PULLUP · analogRead · debounce.

What it is:

Control LED brightness and buzzer pitch with ledcAttach and ledcWrite.

Why learn this:

The same PWM will control motor speed in 1.5.

Key concepts:

Duty cycle · frequency · bit resolution.

View Full
1.4
Practice
0%

📡 Sensors: how the robot perceives

How each sensor sends its data; measuring distance with the HC-SR04; detecting lines and obstacles with infrared; noise filtering; and I2C sensors.

What it is:

The four ways to send data: digital, analog, pulse width, and bus (I2C).

Why learn this:

Once you know the sensor’s “language,” you’ll know which pin and function to use.

Key concepts:

Digital signal · ADC · pulse · I2C.

What it is:

Measure distance by timing the ultrasound’s round trip, with a safe connection for the ECHO pin at 3.3 V.

Why learn this:

It’s the rover’s “eye” for avoiding obstacles.

Key concepts:

TRIG/ECHO · speed of sound · pulseIn · voltage divider.

What it is:

Sensors that detect reflected infrared light to find a black line or something very close.

Why learn this:

They’re inexpensive and form the basis of the line follower in Trail 2.

Key concepts:

Reflection · threshold · calibration in light and dark.

What it is:

Why readings “jump” and how to smooth them with a moving average and discard unreasonable values.

Why learn this:

A robot that reacts to noise stops for no reason; filtering makes its decisions reliable.

Key concepts:

Moving average · median · out-of-range reading.

What it is:

The I2C bus, addresses, and the scanner that detects connected devices, using a laser distance sensor as an example.

Why learn this:

IMUs, displays, and modern sensors use I2C; you’ll need it in Trail 2.

Key concepts:

SDA/SCL · address · Wire library.

What it is:

Replace delay with millis so you can measure, decide, and move at the same time.

Why learn this:

A long delay leaves the robot “blind,” and it may crash before it notices.

Key concepts:

millis · periodic task · non-blocking code.

View Full
1.5
Practice
0%

⚙️ Motors and power

DC, servo, and stepper motors; modern H-bridge; PWM speed control; servo on the ESP32; safe batteries and clean power.

What it is:

The three motors used in desktop robotics and the kind of movement each handles well.

Why learn this:

The wrong motor leaves your robot weak, slow, or imprecise.

Key concepts:

Torque · rotation · position · gearing.

What it is:

The circuit that lets the ESP32 control the motor in both directions without routing current through the pin.

Why learn this:

Efficient drivers deliver more power and run cooler than the old L298N.

Key concepts:

H-bridge · VM and VCC · STBY · peak current.

What it is:

Functions for forward, reverse, turning, and stopping, with an acceleration ramp.

Why learn this:

These are the “verbs” the rover will use in the trail’s final project.

Key concepts:

Duty cycle · ramp · braking · dead zone.

What it is:

Position a servo by angle with the ESP32Servo library, since the Arduino Uno’s Servo.h won’t work.

Why learn this:

The servo turns the rover’s sensor so it can “look” from side to side.

Key concepts:

50 Hz · pulse width · separate power supply.

What it is:

Which battery to use, how to read its capacity, and the rules for safely charging lithium batteries.

Why learn this:

The wrong power supply is the number one cause of a robot that “restarts on its own” and the biggest risk on the workbench.

Key concepts:

mAh · discharge current · BMS · fireproof bag.

What it is:

A buck regulator for 5 V, capacitors near the motor, and a single ground connection.

Why learn this:

Without this, motor noise can restart the ESP32 just as it’s trying to turn away.

Key concepts:

Buck · decoupling capacitor · brownout.

View Full
1.6
Project
0%

🛞 Project: obstacle-avoiding rover

From block diagram to a moving robot: assembly, testing one part at a time, obstacle-avoidance logic with a state machine, fine-tuning, and next improvements.

What it is:

Block diagram, pin list, and power budget before you cut the chassis.

Why learn this:

Planning helps you avoid rewiring and swapping parts halfway through.

Key concepts:

Block diagram · pin map · power consumption.

What it is:

Secure the motors, board, and battery to cardboard, MDF, or acrylic, with organized wires and an on/off switch.

Why learn this:

Loose wiring is the biggest source of intermittent failures in a mobile robot.

Key concepts:

Center of mass · wire strain relief · main switch.

What it is:

A test sketch for each component: sensor, each motor, servo, and battery.

Why learn this:

If you test everything together, you won’t know which part failed.

Key concepts:

Hardware unit test · workbench checklist.

What it is:

The move, stop, look, and turn states, and the rules for moving from one to another, in complete code.

Why learn this:

State machines are how real robots organize their behavior.

Key concepts:

State · transition · enum · switch.

What it is:

A robot that veers to one side, restarts when turning, or can’t detect the wall: the cause and fix for each problem.

Why learn this:

Your first robot always needs adjustments; learning to diagnose problems is the skill that lasts.

Key concepts:

Motor compensation · distance threshold · serial diagnostics.

What it is:

Three small improvements that prepare the rover for Trail 2.

Why learn this:

They show how the same robot can grow with sensors and code, without replacing the chassis.

Key concepts:

Expansion · reuse · next level.

View Full

🧰 Trail kit

Everything the rover in 1.6 uses. Approximate price range of R$ 200 a R$ 400 for the full set (Oct. 2026; check before buying: prices vary by store, shipping, and exchange rate).

🧠 Brain

ESP32 DevKit (WROOM-32) or ESP32-S3, preferably with USB-C, and a USB cable that supports data transfer.

🔧 Workbench

830-point breadboard, male-to-male and male-to-female jumper wires, LEDs, and 220 Ω, 1 kΩ, and 10 kΩ resistors.

📡 Senses

HC-SR04 ultrasonic sensor and two infrared sensors (line/obstacle modules).

⚙️ Movement

Two TT motors with wheels and a caster wheel, plus a TB6612FNG or DRV8833 driver. Alternative: two continuous-rotation servos.

🔋 Power

Holder for 4 rechargeable AA batteries (NiMH) or 2 18650 cells with a protection board (BMS), and an on/off switch.

📦 Chassis

Thick cardboard, MDF, or acrylic, with double-sided tape, cable ties, and M3 screws.

✓ Worthwhile optional item

A basic multimeter (module 1.2 teaches you how to use it) and an SG90 servo to turn the distance sensor.

✗ Don’t buy these for this trail

A square 9 V battery for the motors, an L298N driver, and giant sensor kits you won’t use.