Improving FLL Robot Game. Our gear system calculation
In the previous video, we found the correct answer for our task and it is 18.75, or is it?
- #471
- 08 Apr 2017
In the previous video, we found the correct answer for our task and it is 18.75, or is it?
In the course section for Advance Sensor Calibration we previously showed you how to find the minimum and maximum value for a single LEGO Mindstorms Color Sensor and to store this value in an array. The program was implemented with the EV3-G software. In this tutorial we are going to find the Min and Max for all the four sensors and to store all the 8 values in an array.
A common question is how to display arrays on the LEGO Mindstorms EV3 brick screen. Displaying values from an array is not different from any other display operation. In this tutorial, we would look at displaying two specific values. The minimum and the maximum for a specific sensor from the Advance Calibration Course Section
In this tutorial, we show you how to display all the values from an EV3-G array on the EV3 brick display. We are using an array Read Operation along with a loop. We are also detecting the loop counter and using it as an index to an array. It's basically the only viable way to do it. The process is commonly referred to as - "Iteration over an array" (although we still do not have an iterator in the programming language, we promise that one day we would do the super advance videos on "iteration" using the LEGO MINDSTORMS robots")
This program is for Uylam - LEGO Mindstorms EV3 Steamship simulator robot. It is made as a lesson, to automatically find the best position for a ship in stormy weather, relative to the waves. The program has two parallel threads. The first one makes the robot move until the gyro sensor detects less amount of shaking done to the ship. Because of all the shaking, the readings of the gyro are all over the place and thats why we made a My Block, which acts like a filter, so that the readings are more accurate. The second thread starts the storm, which is controlled by a Large motor.
NOTE: The program contains my blocks, that will appear broken if you use any version before 1.3.0 of the EV3 Mindstorms Software!
This project is for Piscis - a LEGO Mindstorms EV3 Fish robot. The project includes two programs for two different feeding spots for the fish. The first one is straight across the reef in which Piscis lives, and the second one is to the side, after a 90 degree turn. In those programs the fish robot has to wait a few times in order to be sure no sharks are around him. It detects feeding spots using a touch sensor. The interesting part is how it returns, without knowledge how far it has gone. The program uses motor rotation sensor in order to return to the reef in both cases.
This program is for Antares - a simple LEGO Mindstorms EV3 Scorpion robot. The program uses rotation sensor to detect if the scorpion has caught anything using its claws. We predict how many degrees the claw has to move to close fully and if it hasn't done that many, it has caught something.
This project is for Lintu - a LEGO Mindstorms EV3 Kiwi bird robot. The project includes three programs, the first is the main program for the robot. It goes forward until it sees a hand next to its beak, then closes it and returns to the starting point, its nest. The second program is an upgrade: the robot not only closes its beak, but also check if there is "food" in it. Both the checking for food and the returning to starting position are made using the motor rotation sensor.
The last program is a fun one. It makes the robot bite!
This program is for Susan and Mark - a LEGO Mindstorms EV3 T-Rex chasing a car. The program makes the T-Rex wait for the car to reach a certain speed, and then attack it. This is made to resemble the T-Rex's said inability to see slow moving things. The goal of the program is to get the car's cable to stretch, while moving it by hand, when its wheels are turning and without the T-Rex noticing. The detection is made using the current power option on the motor rotation sensor.
This project is for Hrutur - a LEGO Mindstorms EV3 Ram robot. The project includes two programs. The first one makes the robot go forward for two seconds and then detect if it has collided with something and if it has, it goes backwards for half a second. The second program is basically the same, but checks a lot more frequently whether the robot is hit, and is repeated in a loop. Both programs use motor rotation sensor to detect collision.
This program is for Frog Bot - LEGO Mindstorms Robot that could jump. The program makes the robot move like a toy car with a wind up mechanism. It starts by waiting for three seconds, when you should turn the legs of the frog by hand backward. Then it makes a sound, and the robot starts jumping forward, as much as you have wound it up. The program uses motor rotation sensor to know how much it was wound up.
This program is for Iknathir - LEGO Mindstorms EV3 aircraft carrier robot. It makes the aircraft carrier robot start spinning the wheels on its motors immediately after starting it. Then, after the lever is pushed, the wheels contract together and shoot the paper plane in the middle. When the lever is pulled afterwards, the wheels get away from the center again.
This project is for Yolanda - LEGO Mindstorms EV3 Sailship robot. It contains three programs.
The first one simply moves the robot forward and in the middle changes the sail position.
The second one makes the robot follow the direction of the wind indefinetly, while the robot moves "around an island". The following the direction of the wind is achieved with the gyro sensor and a two-state program.
The third one makes the robot do the same as the second one, but now the following the direction of the wind is done with a 3-state program, which means that it has a state, in which the sails arent moving.
This project is for Gen - LEGO Mindstorms EV3 pedalo robot. The program makes the robot follow an imaginary school of fish. It utilizes the gyro sensor to turn the robot accurately, which is a hard task for this robot, because of its strange wheels. Also because of those wheels, the robot usually has a constant steer in one direction, which we correct using the steering block and giving it a steer in the opposite direction!
This project is for Robotics Supreme - LEGO Mindstorms EV3 yacht robot. It contains three programs.
The first one follows a line using one color sensor and detects if the robot has been pushed. Then it plays an alarm and stops the program.
The second program makes the robot go in a square, using the gyro sensor wait-change block. This makes it one of the easiest square solutions there is.
The third program makes the robot follow a direction. That is accomplished similarly to the linefollowing, but instead it uses the gyro sensor and always follows a straight line.