PID Control Explained: Tuning PID for BLDC Motor using ROS 2 with MyActuator RMD-X

Kevin Wood | Robotics & AI β€’ September 2, 2025
Video Thumbnail
Kevin Wood | Robotics & AI Logo

Kevin Wood | Robotics & AI

@kevinwoodrobotics

About

Subscribe to learn robotics, AI/ML, computer vision, and controls! For business inquires or consulting, please email me at kevinwoodrobotics [at] gmail [dot] com

Video Description

For a step-by-step guide on how to implement it in ROS 2, watch the video below. ROS 2 PID Controllers Setup (pos pid, pos vel cascaded pid, config yaml, urdf, tuning): https://youtu.be/osqngqglzCU In this video, I'll dive into the implementation details and by the end, you should understand the following: - ROS workspace and folder structure - How to use position pid controller in ROS - How to use position velocity cascaded pid controller in ROS - How to set up their config yaml file - How to integrate it inside launch files - How to set up the urdf xacro file - How to set up sine or square wave to tune the pid controllers πŸͺͺ Join Membership: https://www.youtube.com/channel/UC0jeEKE9IzfYKDuIbQLJIog/join πŸ–₯️ Code and Doc: https://kevinwoodrobotics.com/product/pid-controller-explained-how-to-tune-pid-for-bldc-motor-using-ros-2-control-theory-practice/ πŸ› οΈ PCBWay Discount on 3D Printing, CNC & PCB: https://pcbway.com/g/vrKvd5 🎁 Get FREE Robotics & AI Resources (Guide, Textbooks, Courses, Resume Template, Code & Discounts) – Sign up via the pop-up at https://kevinwoodrobotics.com/ πŸ“ Real-World Robotics Project Course Overview and Waitlist: https://forms.gle/xu4rfk7GWHCaZGBEA 🦾 Learn Robotics and AI: https://kevinwoodrobotics.com/product/all-courses-bundle-deal/ 🀝 Consulting and Mentorship: https://kevinwoodrobotics.com/product-category/consulting/ πŸ‘οΈ Learn OpenCV: https://kevinwoodrobotics.com/product/opencv-python-tutorials-full-playlist/ πŸ€– Learn ROS: https://kevinwoodrobotics.com/product/ros2-tutorials-full-playlist/ 🧠 Learn Computer Vision using AI: https://kevinwoodrobotics.com/product/computer-vision-using-ai/ πŸ–₯️ Learn AI and Machine Learning: https://kevinwoodrobotics.com/product/ai-and-machine-learning-bundle/ πŸ›’ Amazon Store (My Top Picks for Robot Projects and More!): https://www.amazon.com/shop/kevinwoodroboticsai?ref_=cm_sw_r_cp_ud_aipsfshop_Q3AMRNBSVVB00Y1XR9TN_3 β˜• Support My Channel: https://buymeacoffee.com/kevinwoodrobotics 0:00 Intro 0:59 Sneak Peak of FInal Tuning Results 1:23 Motor, power supply, wiring setup 4:07 ROS2 Setup Overview 5:46 Why use square wave for PID tuning? (Overview of step response) 9:29 Why use sine wave for PID tuning? 10:38 PCBWay 11:04 Explaining rise time, overshoot, steady state error 14:26 PID defined 15:15 PID controller block diagram interpretation 17:46 Understanding PID equation 19:34 Understanding PID gains units 20:57 PID tuning in ROS (sine wave and square wave results) Thanks for watching! If you found this video helpful, please like, subscribe and share: https://www.youtube.com/@kevinwoodrobotics Sharing my referral link for when you order your Tesla. You’ll get $1,000 off the purchase of a Tesla product! https://ts.la/kevin145437 Social: Website: https://www.kevinwoodrobotics.com LinkedIn: https://www.linkedin.com/in/kevinwoodrobotics Instagram: https://www.instagram.com/kevinwoodrobotics

Master PID Tuning: Essential Gear

AI-recommended products based on this video

Loading...
Cordless Car Handheld Vacuum: Car Vacuum Cleaner with 16000Pa Ultra-Strong Suction, Brushless Motor & HEPA Filter - Lightweight Design for Drivers and Office Workers - Ashen

Cordless Car Handheld Vacuum: Car Vacuum Cleaner with 16000Pa Ultra-Strong Suction, Brushless Motor & HEPA Filter - Lightweight Design for Drivers and Office Workers - Ashen

(31)
$49.99
Loading...
GOOFCXO 4 Step Folding Ladder Chair, 3-in-1 Wood Ladder Stool, Multi-Functional Portable Step Stool Display Stand for Home Kitchen Office Library, 265lbs Load Capacity, 34.3" H x 13.4" L x 15.2" W

GOOFCXO 4 Step Folding Ladder Chair, 3-in-1 Wood Ladder Stool, Multi-Functional Portable Step Stool Display Stand for Home Kitchen Office Library, 265lbs Load Capacity, 34.3" H x 13.4" L x 15.2" W

(0)
$118.26
FREE delivery Sat, Jun 28
Loading...
Demon Mechanic Elite X Ski Tuning Kit & Snowboard Tuning Kit with Ski Wax Iron, Ski and Snowboard Wax & Demon Elite X Ski and Snowboard Edge Tuner w/Diamond Files

Demon Mechanic Elite X Ski Tuning Kit & Snowboard Tuning Kit with Ski Wax Iron, Ski and Snowboard Wax & Demon Elite X Ski and Snowboard Edge Tuner w/Diamond Files

(181)
$243.64
FREE delivery Aug 26 - 29
Loading...
Cordless Car Handheld Vacuum: Car Vacuum Cleaner with 16000Pa Ultra-Strong Suction, Brushless Motor & HEPA Filter - Lightweight Design for Drivers and Office Workers - Ashen

Cordless Car Handheld Vacuum: Car Vacuum Cleaner with 16000Pa Ultra-Strong Suction, Brushless Motor & HEPA Filter - Lightweight Design for Drivers and Office Workers - Ashen

(31)
$49.99
Loading...
Compressed Air Duster-380000RPM Super Power Electric Air Duster, Rechargeable Brushless Motor Durable Blower for Fast Charging, Adjustable Mini Blower for House,Outdoors,Car

Compressed Air Duster-380000RPM Super Power Electric Air Duster, Rechargeable Brushless Motor Durable Blower for Fast Charging, Adjustable Mini Blower for House,Outdoors,Car

(32)
$66.66
FREE delivery Jan 21 - Feb 10Only 9 left in stock.
Loading...
Long Range Super Endurance Foldable Drone with Camera for Beginners–36+ min Flight Time, WiFi FPV Quadcopter with 2K HD Camera, Brushless Motor, Auto Hover, Follow Me (2 Batteries)

Long Range Super Endurance Foldable Drone with Camera for Beginners–36+ min Flight Time, WiFi FPV Quadcopter with 2K HD Camera, Brushless Motor, Auto Hover, Follow Me (2 Batteries)

(206)
$88.98
FREE delivery Sun, Nov 30
1K+ bought in past month
Loading...
NAFYRE N11 PRO GPS Drone with Camera for Adults 4K UHD, 90 Min Long Flight Time, Long Control Range, Auto Return, Follow Me, Brushless Motor, 5G FPV RC Quadcopter for Beginners

NAFYRE N11 PRO GPS Drone with Camera for Adults 4K UHD, 90 Min Long Flight Time, Long Control Range, Auto Return, Follow Me, Brushless Motor, 5G FPV RC Quadcopter for Beginners

(108)
$149.98
FREE delivery Wed, Aug 20
100+ bought in past month
Loading...
Syntech Link Cable Compatible with Meta/Oculus Quest 3S/Quest 3/Quest2/Pro/Pico 4/Ultra and PC/SteamVR, 16FT Upgraded Type C Cable with USB 3.0 Adapter, High Speed Data Transfer Cord for VR Headset
Best Seller

Syntech Link Cable Compatible with Meta/Oculus Quest 3S/Quest 3/Quest2/Pro/Pico 4/Ultra and PC/SteamVR, 16FT Upgraded Type C Cable with USB 3.0 Adapter, High Speed Data Transfer Cord for VR Headset

(1,405)
$26.99
FREE delivery Tue, Jun 17 on your first order
100+ bought in past month
Loading...
INIU 16FT Link Cable for Meta Oculus Quest 2/3/Pro and PC VR Gaming - USB 3.0 Type C Cable with Separate Charging Port for VR Headset Accessories
Best Seller

INIU 16FT Link Cable for Meta Oculus Quest 2/3/Pro and PC VR Gaming - USB 3.0 Type C Cable with Separate Charging Port for VR Headset Accessories

(3,575)
$29.69$23.74
FREE delivery Tue, Jun 17 on your first order
300+ bought in past month
Loading...
USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

(4,378)
$8.41
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
USB C Cable 3Pack USB C to USB C Cable 10FT 60W Type C Charger Nylon Braided Compatible with iPhone 17 16 Pro/15 Pro/Plus/Max/iPad/MacBook and More

USB C Cable 3Pack USB C to USB C Cable 10FT 60W Type C Charger Nylon Braided Compatible with iPhone 17 16 Pro/15 Pro/Plus/Max/iPad/MacBook and More

(16)
$13.99
Prime
800+ bought in past month
Loading...
2026 New Embroidery Stitch Book Kit, Stitch Book Embroidery, All-in-One Embroidey StitchBook & Sewing Kit, Comes with a Complete Toolkit and Instructional Tutorial (1set)

2026 New Embroidery Stitch Book Kit, Stitch Book Embroidery, All-in-One Embroidey StitchBook & Sewing Kit, Comes with a Complete Toolkit and Instructional Tutorial (1set)

(1)
$14.90
FREE delivery Jan 23 - Feb 12
500+ bought in past month