Search
Search articles, lessons from all 3 courses, projects and products.
32 results for “PID”
Lessons (1)
Articles (30)
- Robot ControlPID in a robot system: multiple nested loops rather than one loopThe article PID in embedded programming explained P/I/D and how to tune a loop. This article takes a broader look: a real robot doesn't just have one PID — but many nested PID rings, each running at a different stage and frequency.
- AMR Drive SystemMotor control for AMRs: a closed PID speed loop for each wheelMixing calculates the desired speed for each wheel, but does not automatically make the wheel rotate at that speed. The closed PID loop with feedback from the encoder is the missing link — this lesson assembles the Motor, Driver, Encoder, and PID learned individually into a complete control loop.
- Motor ControlWhat is PID? The classic controller behind stable control loopsPID is a simple but extremely effective controller, behind most of the loops that keep the motor speed, keep the temperature, or keep the robot on the correct trajectory.
- Motor ControlMotor speed control: from open-loop to closed-loop PIDCombine a DC motor, encoder and PID into a complete speed control loop — and why just setting a fixed PWM value will never keep a stable speed as the load changes.
- Robot ControlClosed-loop control: the principle behind PID, Nav2 and AMCLPID, velocity control, AMCL, Nav2 — look closely, they're all variations of the same principle: measure actual results, compare with goals, and continuously self-correct. This is an article summarizing that principle.
- 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 Drive SystemMecanum drive in AMRs: synchronizing 4 wheels and common mechanical faultsThe kinematics lesson Mecanum solved the 4-wheel inverse matrix. This article is from a practical assembly perspective: why Mecanum requires more precise driver synchronization than Differential Drive, and common mechanical errors when assembling yourself.
- AMR Drive SystemAMR odometry: a practical pipeline from encoder pulses to /odomThe Encoder lesson learned how to read pulses, and the Odometry lesson in Localization learned the dead reckoning formula. This article assembles both into a complete firmware pipeline — 3 different frequencies running in parallel on the same MCU.
- AMR Software ArchitectureThe driver layer: communication between firmware and ROS2The article The Big Picture of Robotic Software calls this the Communication layer. This article opens up that layer: firmware and ROS2 run on two different processors, needing a clear protocol to 'talk' back and forth — misdesigning this protocol is the most difficult source of errors to debug.
- Hardware AMRMotors for AMRs: brushed DC, brushless and servo motors comparedThe Hardware Architecture article mentioned that the motor is a block in the overall diagram. This article unpacks that block: the three most common motor types in AMR, the trade-offs between cost, longevity, and control complexity.
- Hardware AMRCameras in AMRs: complementing LiDAR where it falls shortLiDAR measures the exact distance but does not know what the obstacle is. The camera answers the exact questions LiDAR can't answer — recognition, classification, text/barcode reading — with the opposite trade-off: it doesn't measure direct distance as well as LiDAR.
- Hardware AMRIMUs in AMRs: detecting wheel slip that odometry missesThe Sensor & Perception column explained what the IMU measures. This article focuses on AMR's question: where to mount the IMU on the robot frame, and why combining the IMU with an encoder detects wheel slippage that odometry alone completely misses.
- 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 OverviewWhat is an AGV? An autonomous vehicle that follows fixed guidance infrastructureAGV is a generation of self-propelled vehicles born in the 1950s, following fixed lines/wires/tags installed on the floor - not self-localizing, not self-avoiding obstacles, but cheap, simple and proven over decades.
- Hardware InterfacesWhat is Modbus RTU? Industry's most common request-response protocolModbus RTU is not a new wiring standard — it is an existing RS485/RS232-based 'question-and-answer' protocol, and is a common language that almost all industrial equipment understands.
- 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.
- 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.
- MicrocontrollersWhat is embedded programming? How microcontrollers (MCUs) differ from microprocessors (MPUs)Arduino and Raspberry Pi are both small programmable boards, but belong to two completely different worlds: microcontroller (MCU) and microprocessor (MPU). Understanding this difference decides to choose the right "brain" for each part of the robot.
- MicrocontrollersWhat is Arduino? The most common starting point for learning embedded programmingArduino is not just a board — it's an entire board + IDE + library ecosystem that makes embedded programming much more accessible. This article explains why Arduino is popular, and the limitations you need to know before using it for larger projects.
- Motor ControlWhat is an encoder? Measuring motor speed and positionPWM only indicates 'how much rotation is being commanded', not 'how much the motor is actually rotating' — the encoder is the sensor that fills that gap.
- Motor ControlWhat is a servo motor? A motor with its own position control loopServo motor (RC servo) does not need a separate H-bridge driver or encoder - inside it has its own motor, position sensor and control circuit, only needing 1 PWM signal to command the rotation angle.
- Motor ControlWhat is a stepper motor? Rotation in discrete steps without feedbackStepper motors rotate in fixed increments rather than continuously — allowing precise positioning without the need for an encoder, at the expense of risking 'lost steps' if the load exceeds the motor's capacity.
- Linux / Ubuntu / JetsonUSB and serial on Linux: where /dev/ttyUSB0 comes fromLiDAR, Arduino, GPS modules all plug in via USB and appear as /dev/ttyUSB0 or /dev/ttyACM0 — this article explains how Linux names serial devices, and how to confirm the device has been recognized correctly.
- Robot ControlThe robot control loop: sense, think, actEvery robot control system runs in a Sensor - Processing - Control loop. Why does the loop frequency determine how quickly or slowly the robot responds?
- Robot ControlVelocity control: from /cmd_vel to motor PWMSending the /cmd_vel command is the easy step — making sure the motor actually reaches that speed, no matter how heavy the load or the battery is fading, is the real velocity control problem.
- ROS2 PackageCreate a C++ package in ROS2 step by stepFrom the ros2 pkg create command to the first C++ node run by ros2 run — the full process to build a package ament_cmake in the ROS2 workspace.
- ROS2 PackageCMakeLists.txt in a ROS2 package — understanding each lineCMakeLists.txt generated by ros2 pkg create looks confusing, but there are only a few repeating blocks of commands in a fixed pattern — understanding the correct order is enough to read/edit any C++ package.
- ROS2 Toolsros2 param — read and change parameters while a node runsThe Parameter article covered declare_parameter in code — ros2 param is the command-line tool for reading, changing and backing up those parameters while the node is running.
- SLAMCartographer: Google's SLAM based on submaps and pose graphsInstead of matching the scan directly to a single giant map, Cartographer decomposes into multiple local submaps and reassembles — architectures distinct from slam_toolbox, in exchange for greater accuracy when the parameters are properly fine-tuned.