EV3 basics course. Ultrasonic Sensor. Stop & Move (part3)
Stop on detecting an object with the Ultrasonic sensor and move after detecting there is no object. Join of the previous two video tutorials in one
- #144
- 14 Oct 2015
Stop on detecting an object with the Ultrasonic sensor and move after detecting there is no object. Join of the previous two video tutorials in one
In this video tutorial we accomplish the FIRST LEGO League 2022 missions called Wind Turbine, Television and Rechargeable Battery. We demonstrate how 3 missions could be accomplished in the single run and in the same time with a single attachment.
The way you move the robot is always imprecise. Don't TRY to fight with this. Programming motors for competitions like the FIRST LEGO League (FLL) or World Robotics Olympiad (WRO) is not very different from programming the motors in the STEM classes. But there are a few things you should have in mind.
In this program we demonstrate how to program a SPIKE robot to follow a line with the aid of a color sensor. Make sure the line is big enough for the sensor to detect it and react to it. since we are measuring reflected light rather than the color of the line, we can and have implemented multiple states line following.
This program was intended for and tested on the Gazon robot
In this program we demonstrate how to program a SPIKE robot to follow a line with the aid of a color sensor. Make sure the line is big enough for the sensor to detect it and react to it. For some thinner lines, the speed of the robot can be lowered, but if that does not help, the program can be easily adapted to work with reflected light intensity.
This program was intended for and tested on the Gazon robot
In this program we demonstrate how to program a SPIKE robot to follow a line with the aid of a color sensor. In this program, we use the sensor value to calculate a number to feed in the "start moving" command. The numbers in this program depend highly on the size of the wheels of the robot, the distance between the wheels, the color sensor reflected light range, the wheels friction, and the speed at which the robot moves. The numbers in the program must be adjusted for every case, and are in no meaning optimal to use as is, in other projects.
This program was intended for and tested on the Gazon robot
There comes a time when you need to program the robot to "follow a line, but if another sensor detects something you would like to stop, do some work, and then continue following the line". This is applicable to competition robots as it is applicable to real-life robots.
There comes the State Machine Pattern. An advanced and very powerful concept that allows you to easily implement complex robot behaviours with a simple, well-organized, extensible, bug-free program where the robot could be in 1,2, 10 or 100 states and you will still be able to manage the complexity of the world around the robot.
This is the simplest possible line following robot. It has just one sensor in the front between the two driving wheels and uses beams as pivots instead of a third wheel. Try it out. Follow the building instructions and start following lines in a number of minutes.
In this program we demonstrate how to program a SPIKE robot to follow a line with the aid of one color sensor and detect an intersection with another color sensor. Make sure the line is big enough for the sensor to detect it and react to it. For some thinner lines, the speed of the robot can be lowered, but if that does not help, the program can be easily adapted to work with reflected light intensity.
This program was intended for and tested on the Gazon robot
In this program, we demonstrate how to program a SPIKE robot to follow a line with the aid of one color sensor and detect and stop at the second intersection with the aid of another color sensor. Make sure the line is big enough for the sensor to detect it and react to it. For some thinner lines, the speed of the robot can be lowered, but if that does not help, the program can be easily adapted to work with reflected light intensity.
This program was intended for and tested on the Gazon robot
In this program, we demonstrate how to follow a line with a SPIKE robot and then align to that line. That way the robot can position itself at specific distances on a predetermined path.
This program was intended for and tested on the Gazon robot
This animation demonstrates the principle of aligning to a line with two color sensors and a LEGO Mindstorms Robot Inventor robot. This is a useful concept for FIRST LEGO League competitions where you want to know exactly where you are on the field and to achieve consistent behavior. In the course lesson you will also find a live video tutorial where we enter into more details about aligning. We align the robot to a line by moving both sensors slowly until they both see a black line. When one of them sees the line we move only the other. At the end we return the first sensor back.
This is a LEGO Education SPIKE Prime robot attachment for accomplishing the FIRST LEGO League 2020 Replay Boccia mission . The attachment is designed for Gazon, LEGO Education SPIKE Prime competition robot.. With this attachment we follow the line with the robot until we reach the team mission and we use the lever on the top to push the blue box. Then we follow the line to reach the Boccia mission, and three things happen: 1. align to the mission model with the front of the attachment, 2. turn the lever to release the green boxes and 3. move the lever to push on the mission model. This is a complex mission requiring a lot of coordination from the robot. Quite interesting I must say.