NXT-G program
NXT-G program for running the Catapult robot build from the LEGO Mindstorms NXT robotics set
- #v1idsq
- 18 Jan 2015
NXT-G program for running the Catapult robot build from the LEGO Mindstorms NXT robotics set
This is an LEGO Mindstorms EV3-G program for the motor and touch sensor that we use for the LEGO Catapult
This program makes the Swing Game - LEGO SPIKE Prime robot move the two LEGO figures based on input from their respective controllers.
The color sensor controller uses the colored plate above it to determine movement. If the sensor detects blue, the LEGO figure moves forward. If it detects purple, the figure moves backward. Any other color will make it stop.
The motor controller works similarly. If the motor turns more than 30 degrees forward, the LEGO figure moves forward. If it turns more than 30 degrees backward, the figure moves backward. If it stays within that range, the figure stops.
The goal of the game is for both LEGO figures to reach the center without tipping the swing to either side. Good luck—and have fun!
Use Scratch to activate the attachment that will accomplish the Power Switch mission
Program for activating the active attachment using in FIRST LEGO League.
Building instructions for a LEGO Mindstorms EV3 active attachment for changing gears orientations. This is the third attachment from the series.