![]() Head over to GitHub again to copy the code for your remote control.The vehicle will now show a radar-like animation, waiting for remote control. After downloading and running, you can disconnect the USB cable. I prefer to download the code over a USB connection. Paste the code and run it on the vehicle.Name the project something like ‘rc vehicle’ to remember what it does. It can be the MINDSTORMS or SPIKE Prime app, dependent on your hub. Create a new Python project in the LEGO software on desktop.The car code is for robots with pivoting front wheels and rear-wheel propulsion. The tank is for robots with a motor on each side. Head over to GitHub to copy the code for your vehicle.Ĭhoose from either the tank code or the car code.Of course, you can invent your own robot too, but then you’ll have to adapt the code. If you download the Hot Rod, make sure to build the version with the geared-down steering. Just slap two motors and a caster wheel on a hub, or build this Hot Rod with differential gear. I have a Robot Inventor remote control and Spike Prime Steering Wheel for which you can copy-paste the code. If you don’t like to code, I advise you to use one of my models. (Any students who find this difficult can use the template in the LEGO SPIKE app under BUILD – ‘Break Dancer’ to help them build a basic robot.This tutorial shows how to connect SPIKE Prime or MINDSTORMS Robot Inventor LEGO hubs for remote controlling a vehicle or robot. ![]() Students will work in pairs and design their own robot. Using coloured LEGO blocks as obstacles, students can program their car to move around the track by adding the sensor to their car. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |