Search
Search articles, lessons from all 3 courses, projects and products.
27 results for “ESP32”
Articles (24)
- MicrocontrollersWhat is ESP32? A 32-bit microcontroller with WiFi/Bluetooth at nearly Arduino pricesThe ESP32 is many times more powerful than the Arduino Uno in every aspect — 32-bit, 2 cores, more RAM, and built-in WiFi and Bluetooth — at a nearly equivalent price. This article explains why the ESP32 is often a natural upgrade after the Arduino.
- MicrocontrollersArduino, ESP32, STM32 and Raspberry Pi Pico compared: which board for which project?Having studied Arduino, ESP32, STM32, and Raspberry Pi Pico separately — this article summarizes direct comparisons and shows how to choose the right board according to project requirements, instead of choosing based on "sounds familiar".
- AMR Drive SystemDifferential drive in AMRs: from /cmd_vel to PWM for each wheelThe kinematics robot lesson solved the formula v, ω. This article is from a firmware perspective: how that formula turns into code that runs on the MCU, and the actual mechanical/circuit decisions when installing an AMR differential drive.
- AMR Software ArchitectureThe hardware layer in AMRs: an inventory of physical I/OThe Hardware AMR section has studied each individual component. This article groups them together according to their roles in software architecture: What is the Hardware Layer, where is the boundary with the Driver Layer, and how many I/O pins does the MCU need to read/write all those components.
- Hardware AMRHardware architecture of an autonomous mobile robotBasic hardware block diagram of a mobile robot: how the power source, central processor, sensors, drivers and motors are connected together.
- Hardware AMRBumpers and emergency stops: the final safety layer when other sensors failLiDAR has blind areas, cameras can misidentify, and software can crash. Bumper and E-Stop are two safety layers that do not depend on any algorithm — for that very reason, they are required to be hardwired.
- Practical AMR DesignChoosing encoders: how much resolution is enough for odometry?The Encoder article explains how quadrature encoders work. This article answers the practical question: how many pulses/cycles is enough — choosing too low will cause jerky odometry, choosing too high will waste unnecessary MCU resources.
- Practical AMR DesignChoosing an AMR computer: when a Raspberry Pi is enough and when you need a JetsonThis site's three showcase projects are the most practical examples of this question: Robot Mecanum and Diff Robot use Raspberry Pi 4, Atlas A2 upgrades to Jetson Orin Nano — and the reason for the upgrade is not 'more powerful for sure'.
- AMR / AGV OverviewAMR architecture: 5 layers from hardware to applicationsA complete AMR isn't a single block of software — it's five layers stacked on top of each other, each talking only to the adjacent layer. This article looks at the big picture before going deeper into each level in the AMR Software Architecture section.
- Hardware InterfacesWhat is UART? The simplest serial interface in embedded systemsUART is the simplest and most popular serial communication standard in embedded programming — only 2 wires, no device selector pins needed, and available with almost any MCU.
- FundamentalsVoltage, current and power: applying Ohm's law in embedded systemsWhy does the motor need its own power source instead of being plugged directly into the GPIO pin? Why do LEDs have to have a current-limiting resistor? This article explains voltage, current, power, and Ohm's law — the foundation for not burning out components.
- FundamentalsDigital vs analog: why microcontrollers need an ADC to sense the real worldLight, temperature, sound all change continuously (analog) — but the microcontroller only understands 0 and 1 (digital). This article explains the digital/analog difference, and the ADC/PWM that bridges those two worlds.
- FundamentalsWhat is GPIO? The essential multipurpose pin on every microcontrollerWhat is GPIO, what is the difference between INPUT and OUTPUT modes, why one pin can do so many things, and the most common mistakes when first using GPIO.
- FundamentalsPull-up and pull-down resistors: solving the problem of floating GPIO pinsPush button reads random value even though no one touches it? This is almost always a floating pin problem — pull-up/pull-down resistors are the standard solution, and most microcontrollers already have them internally.
- FundamentalsWhat is an interrupt? Handling events without constant pollingReading the encoder using digitalRead() in loop() easily misses the pulse when the speed is high. Interrupts allow the MCU to react immediately to an event, instead of having to constantly check — the foundation for accurate encoder reading.
- Electronic ComponentsWhat is a relay? An electrically controlled mechanical switch that isolates 2 circuitsWhen it is necessary to turn on/off a high voltage load (220V AC) or large current using a control signal from a microcontroller, a relay is the most popular choice — a mechanical switch that opens/closes using electromagnetic force, completely isolating the two circuits.
- Electronic ComponentsWhat is an LDO? Simple linear voltage regulation and its thermal cost12V Li-ion battery but MCU needs exactly 3.3V stable — LDO is the cheapest and simplest way to step-down, but unused excess voltage will turn into heat, not disappear for free.
- C/C++ ProgrammingWhat is a pointer? Why embedded programming cannot avoid pointersPointers are the concept that most people new to C fear — but in embedded programming, they are not an option, but the only way to directly touch the hardware.
- C/C++ ProgrammingWhat is a function in C? The call stack and function pointers for callbacksFunctions are not just a way to break up code to make it easier to read — understanding how the call stack works and what a function pointer is can help explain many confusing errors in embedded code.
- C/C++ ProgrammingMemory in C: flash, stack, heap and why embedded systems avoid mallocThe embedded C program divides memory into many separate areas - Flash contains code, RAM is divided into stack and heap - correctly understanding each area explains the most common 'unknown hang' error.
- MicrocontrollersWhat is STM32? Professional ARM microcontrollers widely used in industryThe STM32 is the ARM Cortex-M microcontroller line from STMicroelectronics — most popular in industry and projects that require deep hardware control, at the expense of a much steeper learning curve than the Arduino.
- MicrocontrollersWhat is Raspberry Pi Pico? A low-cost microcontroller with a unique PIO featureDon't confuse the Raspberry Pi Pico with a regular Raspberry Pi — this is a real microcontroller (MCU), not running Linux, using the RP2040 chip with a unique PIO feature that allows custom protocol programming at the hardware layer.
- Linux / Ubuntu / JetsonJetson Orin Nano: setup and optimization for ROS2 + AIJetson Orin Nano is currently the most popular price/performance balance option for AMR requiring GPUs. This article goes from flashing JetPack, installing ROS2, to an important step that is often overlooked: adjusting power mode to not waste chip performance.
- IMUMPU6050: reading data from a widely used 6-axis IMUMPU6050 is the most common low-cost 6-axis IMU in DIY robotics, a simple I2C communication — that guides the readout of accelerometer and gyroscope data using Arduino.
Projects (3)
- Autonomous Mecanum-Wheel RobotA four-wheel Mecanum mobile robot that can move in any direction (including sideways and turning in place), well suited to workshops and tight spaces. An ESP32 handles motor control and encoder reading at the low level, while a Raspberry Pi 4 runs ROS2 for SLAM, localization and navigation at the high level. The robot can build a map on its own, localize itself, avoid obstacles and plan its own paths.
- Diff Robot — differential-drive robot for ROS2 mapping & navigationA two-wheel differential-drive mobile robot for research on mapping and autonomous navigation with ROS2. Three-layer architecture: an Arduino/ESP32 reads the encoders and drives the motors at the low level; a Raspberry Pi 4 runs ROS2 for odometry, SLAM (Cartographer or SLAM Toolbox) and Nav2 at the compute level; RViz2 monitors the robot, its trajectory, the map and the Nav2 state at the application level.
- Atlas C1 — two-computer Mecanum robot, SLAM & Nav2 on ROS2 HumbleA four-wheel Mecanum (holonomic) mobile robot running ROS2 Humble on a two-computer architecture: a NUC mounted on the robot runs only the real-time hardware side (LiDAR, serial bridge to the ESP32, Mecanum kinematics), while a separate PC runs all of SLAM (slam_toolbox), localization (AMCL) and navigation (Nav2 with the MPPI controller). The ESP32 closes a per-wheel speed PID loop locally from encoders read by the hardware pulse counter (PCNT), and talks to the PC over its own binary serial frame — not a real CAN bus, despite what the class name suggests.