У нас вы можете посмотреть бесплатно Coding a Defense System using Micro:bit: Robot PU vs. Incoming Torpedo! 🚀 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
*Can code save a robot from a high-speed torpedo?* 🚀⚠️ In this episode, we take on the role of "Lieutenant MP" (Sonar Operator) to teach *Robot PU* how to survive deep-sea threats using advanced logic and math. It’s not enough to just see an object—we need to know how fast it’s moving. In this tutorial, Coach Hao breaks down the physics and programming needed to calculate *Object Speed* and *Time to Collision (TTC)* in real-time using the Micro:bit sonar sensor. *In this video, you will learn:* *The Math of Survival:* How to implement the speed formula () in code using sonar readings. *State Machine Logic:* Programming Robot PU’s 3 Modes: Mode 0: Casual Walking 🚶 Mode 2: Danger/Rest 🛑 Mode 3: *Evasive Jump!* 💨 *Parallel Processing:* Using two `forever` loops to separate movement from measurement for faster reaction times. *🤖 Build This Robot:* Want to run these physics experiments yourself? You need the Robot PU kit, which comes with the custom sonar mount and self-balancing chassis used in this demo. *Get your Robot PU Kit on Amazon:* [Insert your Amazon Link Here] *🔧 Code & Resources:* *Project Name:* Lieutenant MP (The Sonar Operator) *Tutorial Book:* Story of Robot PU (Book 3: Growth) *Source Code:* https://makecode.microbit.org/_3MK08q... *Previous Episode (Text-to-Speech):* • Give Robot PU a Voice! Micro:bit Text-to-S... **Tutorial web page https://robotgyms.com/courses/the-sto... *⏱️ Timestamps:* 0:00 - Intro: The "Deep Sea" Torpedo Scenario 0:50 - Meeting Lieutenant MP & The Simulator 1:50 - The Logic: Understanding `If/Else` & Boolean Decisions 3:30 - The Algorithm: Calculating Speed & Time to Collision (TTC) 4:40 - Code Walkthrough: Setting Variables & Loops 6:13 - The 3 Robot Modes (Walk, Rest, Jump) 8:50 - Danger Detection: When to Trigger the Alarm? 10:43 - Final Demo: Robot PU Reacts! --- *👇 Challenge for you:* We used a "Jump" to dodge the torpedo. If you could program a different defensive move, what would it be? (Shields up? Play dead?) Let me know in the comments! *Don't forget to Like & Subscribe to keep Robot PU safe!* 🔔 #Microbit #RobotPU #Robotics #CodingTutorial #STEM #PhysicsForKids #JavaScript #MakeCode #RobotGyms #EdTech