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