Basic - python commands

In this educational activity we want to teach the students all the python commands needed for implementing the data acquisition software. This with reference to the specific commands of the programmable logic unit MINDSTORM EV3.

Prerequisite

What students should know before

Time constraints:

  • starting from 90 min - double lesson

Preparing For This Tutorial:

  • This activity is divided into units, each of which explains a single

python command related to the operation of the MINDSTORM EV3 programmable unit. This paper gives concepts, exercises and explanations to allow the student to learn the proposed concepts in semi autonomy.

  • The LEGO Mindstorm EV3 Robot that coincides with the second part of

this tutorial comes from building specific sections found in the LEGO Mindstorm Education Core Set building instructions. You will need to build the main body for the robot (I’ll refer to as the Base Unit), and use sensors: touch, color, temperature.

Effects

Computer science - Students will acquire programming skills

Exercise

Read what is written and run all the boxed programs.

Example solutions

Example solutions are presented in Basic - python commands O2 file.

Next Section - Application of an ultrasonic sensor in vehicles