How to Track Objects in All Directions with the mBot2 Smart Camera
Автор: Learn As You Explore
Загружено: 2025-09-07
Просмотров: 506
🎥🤖 Want your mBot2 to follow a ball in all directions — forward, backward, left, and right?
In this tutorial, we’ll extend the original ball tracking project and upgrade it into full 2D tracking. Using the Smart Camera add-on, you’ll learn how to combine vertical and horizontal error minimization so your robot can center the ball anywhere in its field of view.
You’ll learn how to:
✅ Review the forward/backward ball tracking program from the last tutorial
✅ Understand error minimization on both the X and Y axes
✅ Create new variables for center X, ball X, and scale factor X
✅ Use forward power and turn power together for precise wheel control
✅ Combine left and right wheel logic for smooth all-direction tracking
✅ Test and refine the complete program in mBlock
⏪ Prerequisite: Forward/Backward Ball Tracking Tutorial - • How to Program mBot2 to Follow a Ball Forw...
🧰 Teachers! Want classroom-ready mBot2 lessons?
Check out my resource packs on Gumroad here:
👉 https://gumroad.com/learnasyouexplore
(More packs coming soon!)
🤖 Need an mBot2 or Smart Camera add-on to follow along?
mBot2 @ Makeblock: https://www.makeblock.com/products/bu...
mBot2 @ Amazon: https://amzn.to/425teDT
Smart Camera Add-On Pack @ Makeblock: https://www.makeblock.com/products/sm...
Smart Camera Add-On Pack @ Amazon: https://amzn.to/425thPX
💡 As an Amazon Associate, I earn from qualifying purchases.
🔗 As a Makeblock Affiliate Partner, I earn commissions from qualifying purchases.
⏰ Timestamps:
0:00 - Quick demo of the finished project
0:35 - Review of the forward/backward tracking program
2:58 - Error minimization on the X axis explained
6:33 - Combining error minimization on X and Y axes for wheel power
7:43 - Setting values for target X and Y coordinates
8:33 - Summary slide
8:49 - Building the program based on the previous tutorial
12:01 - Forward power and turn power logic
14:10 - Combining wheel logic for all-direction tracking
15:05 - Setting left and right wheel motor power values
16:21 - Reflection and upload the program to your mBot2
17:12 - Testing the program on mBot2
18:08 - Other helpful videos
🎥 Want to support my work?
Fuel my next tutorial with a coffee! ☕❤️
https://buymeacoffee.com/learnasyouex...
#mbot2 #makeblock #roboticsforkids #codingforkids #learnasyouexplore #stemeducation #mbot2projects #smartcamera #robotvision #objecttracking #teachcoding
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: