
Program that makes Motorka move in an 8 shape
- #ygum28
- 11 Aug 2020
When we have fun with the robots. Yes. You can have a lot of fun with them.
This program is for Calix - LEGO SPIKE Prime carrying robot. The robot is made to carry an object while following a black line. This is probably one of the first thought that comes to mind when you think of robotics - A robot that can help at home! This robot is made as a first try at this concept. It can move not too heavy objects from one room to the other, following a black line. The program does the following: First it waits for you to put something on the robot and to click the left or right hub buttons. After that it lifts the item a bit and starts following a black line. It follows the line until it sees the same color for more than 3 seconds, thats how the robot knows it has reached the end of the line! After that it rises whatever it is carrying and waits while keeping the object up.
This program makes the Tohuru – LEGO SPIKE Prime Owl Robot move like an owl! But what does an owl move like? Well, we figured a key part of an owl’s behavior is firmly holding onto a branch. So, the first part of the program makes the robot grip tightly onto whatever is between its two wheels. After that, the owl begins spinning its head and searches for the closest object. Once it finds something, it stares at it—menacingly—until it moves away!
This program makes the Big Wheelster – LEGO SPIKE Prime robot move forward until it bumps into something! This robot features one big wheel powered by two Medium Motors. What’s interesting is that the motors must spin in opposite directions to make the wheel rotate. That’s why we’ve created a My Block to control the robot.
The My Block allows you to set how far the robot should move—either a specific number of rotations or indefinitely (by setting it to 0 rotations). It also includes a logic option for direction: use 1 for forward and 0 for backward.
When the robot detects a bump using the front touch sensor, the program makes it reverse using the back wheels, helping it avoid hitting the same obstacle again!
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!
Тази програма кара Ларви - ЛЕГО СПАЙК Прайм робот ларва да се движи безкрайно напред! Движението на този робот е много интересно, тъй като работи подобно на гъсеница или ларва! Програмата работи като повтаря 3 движения всеки цикъл:
Може би забелязвате, че всяка команда прави две неща или същото, но в две посоки. Това се случва с променлива, която е или 1, или -1 и това дава посоката, в която да се движат моторите. Тази променлива също се използва за да се определи кой мотор трябва да използва пълна мощност и кой не трябва, за да не се счупи робота сам!
Тази програма е за Сюзън и Марк - LEGO Mindstorms EV3 Т-Рекс гонещ кола. Чрез тази програма Т-Рекс чака колата да стигне определена скорост и тогава да я нападне. Това е направено за да може поведението на Т-Рекс да показва, че той не вижда неща, които се движат бавно. Целта на програмата е да успеете да опънете кабела на колата на ръка, докато колелата и се въртят по земята и Т-Рекс да не ви забележи. Засичането на скоростта на колата е направено с помощта на опцията за текуща мощност на ротационния сензор.
Програмата е предназначена за Сърцевидка - ЛЕГО мида робот. Решава последните задачи от занятие 1, ниво D1. Тя кара мидата да засича, когато някой се опита да я отвори, и се затваря след това.
This is an LEGO Mindstorms EV3-G program for the motor and touch sensor that we use for the LEGO Catapult
NXT-G program for running the Catapult robot build from the LEGO Mindstorms NXT robotics set