
How to align to a wall with Ultrasonic Sensors. Remove complexity (part 4)
We explore some common mistakes when a program is developed and becomes complex. We then try to remove part of this complexity.
- #166
- 16 Nov 2015
We explore some common mistakes when a program is developed and becomes complex. We then try to remove part of this complexity.
First time programming the motors of the robot using the EV3-G software installed on a computer. We would explore how to move forward/backward and turn with the robot.
In this lesson we build a simple LEGO Mindstorms NXT calculator program that sums, multiplies, subsctracts or divides two numbers between 1 and 50.
We've detected the gap. It's time to move over it. This is difficult because we have to detect where the line is after the 0.1 meters gap on the line following field.
Last part of the series. The final touch of the program makes sure that it works and is following the line with the LEGO Mindstorms EV3 Color Sensor in a smooth and fast way.
The program from part 3 should be refactored and improved to make it easier to understand and support. We extract most of the repeatable behaviours in a loop and this reduces the size of the program three times in terms of the number of blocks used.
The last thing you want to lose during every robotics competition is time for changing the programs on the brick. This could require seconds and as we all know every second counts. There are a few ways to improve the way of choosing programs. In this video lesson we will show you how to program a menu directly in your program.
There are basically three type of generations in the robotics game of life.
This video tutorial contains the final 2 programs for moving straight with a LEGO Mindstorms EV3 robot. The first program is for proportional compensation that just keeps the robot orientation straight, while the second program is for Integral compensation that returns the robot to the straight line when the robot makes a mistake.
EV3-G program for using the ultrasonic sensor and detecting objects with it.
The experiment contains a plot of the Curren Power of Motors B and C and the values of the Gyro Sensor when the robot is moving with a power of 100%. What you could see is that it is not actually moving with a power of 100% because the current power is about 75-80%.
The firfth level of the Robotics with LEGO curriculum for students in second, third or fourth grades.
The students build many robots with chain-treads. The Color Sensor is introduced and robots use it to recognize the colors of the objects around them. Students learn about gears, basic gear constructions, and their application. Robots now can stop on a black line and can follow a line using their sensor.
This is the LEGO Mindstorms Education EV3-G software that was available from LEGO until October 2020. It is the version for Windows that is not Electron based and not Scratch based. It had all the good features that LEGO decided to drop and make things "easier" for students and slowly migrate to Scratch. LEGO decided to stop the Mindstorms EV3-G software and they are now (as of October 2020) distributing new versions of EV3-G. They decision affected a lot of schools. The new software is running only on Window 10 and there are lots of schools and teams using and relying on Window 7. We are preserving the version here for teams and students to use.
We can offer no support what's so ever for this version and we are asking LEGO if they are OK with us hosting this version publicly and making it available. Hope they would allow us.
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