How to Code a ROBOT in VEXcode VR: DYNAMIC Distance Sensing in Dynamic Castle Crasher

How to Code a ROBOT in VEXcode VR: DYNAMIC Distance Sensing in Dynamic Castle Crasher

THE FUTURE IS HERE 💪. In this example, we're going to show you how to control a VIRTUAL ROBOT 🤖 VEXCODE VR using its eye sensor 🙄 to detect the red borders and avoid falling off from the playground as well as using its dynamic distance sensor to detect 🕵️‍♂️ an object afar (sounds like a robot vacuum cleaner? 🤣). The Vex robotics simulator will look around in a circle 🔄 and only move forward when a castle block 🏯 is detected. We will provide commands to virtual robot named VEX (👉🏻 a friend of LEGO MINDSTORMS EV3 ) using Scratch Blocks (or PYTHON 🐍 if you prefer).

► Project: Dynamic Distance Sensing
► Description: This example shows how we avoid falling with the Eye Sensor and use Distance Sensor to find castles to crash into.
► Playground: Dynamic Castle Crasher

ROBOT DEMO 🎬
★ Let's Run It! 03:35

These are some functions used in the video:
drivetrain.drive()
drivetrain.drive_for()
drivetrain.turn_for()
down_eye.detect()
distance.found_object()
random.randint()
wait()

LEARN MORE ABOUT CODING THE ROBOT?
🤖 Robot Coding in VEXcode VR:
https://www.youtube.com/playlist?list...

VEXcode VR:
https://vr.vex.com

👇 SUBSCRIBE TO CODING WITH KIDS 👨🏻‍💻👩🏻‍💻 YOUTUBE CHANNEL NOW 👇
https://www.youtube.com/channel/UCsPT...

#CodingWithKids #VexCode #Robotics

Reply