

How to check your construction after you've built it:
Here are the conditions your robot is evaluated under in order to qualify as a good solid construction.
- #1637
- 02 Jul 2020
Here are the conditions your robot is evaluated under in order to qualify as a good solid construction.
You should already be acquainted with creating numeric variables, how to set their initial value, and how you can use them, but the main function of the variable is that it varies.
Here, we'll show you how you can change the value of numeric variables using two different syntaxes.
You should already know how your program can make a decision based on a given condition, but sometimes, the decisions it has to make require more than one condition.
This can be done in several ways and we will look at how to do it using logical operators.
Today's lesson has no new material to teach the students. Instead, the students should revise and solidify their knowledge and you should focus on those students that are falling behind.
Try your best to teach them agency so that they do not fall behind again.
At the end of the lesson, direct all of the students to the last of the additional tasks.
Python requires the code to be ordered in a strictly specific manner in order to work properly and as you can imagine, this becomes complicated when we start nesting operators inside one another.
Here, we will show sine things you should look out for when writing code and some good practices for evading some common mistakes.
We know the code that is dependant on operators must be indented forward, but if we decide to place 100 lines of code in an operator after it has already been written out, the indenting of each line of code separately would be a painfully lengthy process.
The "wait()" command is useful if we wish the robot to wait for a specific amount of time, but if we wish for our robot to wait until a given condition is met, we need to be a bit more inventive.
Large manufacturing companies have big dangerous machines that check if it's safe to begin operations. These machines don't check if there's someone, rather if there is no one in their working environment in order to execute their operations.
Programs such as those that operate our air conditioners must repeat until they are stopped by a person. This is also true for the programs of our robots. Here's how to make your program repeat until it meets a condition set by you.
The "if" logical operator allows us to predict the conditions which the robot could wind up in, but what do we do if the conditions aren't met? Luckily. we have a solution to this problem.
EV3 MicroPython comes with pre-recorded sound files. Here's how to program your robot to play them.
What is the Touch Sensor and how to program it?
Sometimes the tasks you wish your robots to perform can have different solutions depending on weather, environment and other conditions.
If we were to have a start block for every condition under which you might want your program to start, then they would be too many for us to learn all of them. Which is why we have a tool that executes code only if the condition we present is met.
If this is the first time you are using an "if" check block, watch the following video.