0% found this document useful (0 votes)
15 views

EV3 Programming

The document discusses using the Wait block in EV3 programming to pause a program until a sensor condition is met. It can wait for a set time, or wait for a sensor value like a touch sensor being pressed or a gyro sensor reaching a certain angle. Examples are given of programs that use Wait blocks to pause until rotations are complete or a timer expires.

Uploaded by

adaptive4u4527
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

EV3 Programming

The document discusses using the Wait block in EV3 programming to pause a program until a sensor condition is met. It can wait for a set time, or wait for a sensor value like a touch sensor being pressed or a gyro sensor reaching a certain angle. Examples are given of programs that use Wait blocks to pause until rotations are complete or a timer expires.

Uploaded by

adaptive4u4527
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

https://ev3-help-online.api.education.lego.com/Retail/en-us/page.html?

Path=blocks
%2FLEGO%2FWait.html#SensorCompareModes

• http://www.legoengineering.com/how-to-wait-for-more-than-one-
sensor-condition/#:~:text=The%20Wait%20block%20is%20one,then
%20continue%20with%20the%20program.

https://sites.google.com/site/gask3t/lego-ev3/the-missing-
commentaries/hardware
EV3 Mindstorm Blocks for programming

Mode Selector- can be On, Off, degrees, time,


number of rotations,
Large motor is ON, with power of 50
(moving clock wise)

Large motor rotates in opposite


direction with 25% power

Large motor is OFF


Large motor is ON, for 1 second, moving clock wise with 50%
power and after 1 second the motor stops.

stops
power 50
Time 1 second

It keeps the large motor on for 0.5 second with 20% power
and stops.

Large motor rotates 360 degrees with 50% power (moving clock w
Wait Block

Can be time, or comparing values


Waits for 1
second

Touch sensor block

Waits for touch sensor output to be 1


Gyro sensor to measure angle/rotation

It is a wait block that waits until the angle becomes less than or equal to 45 in opposite
direction.

For waiting
Gyro sensor for angle/rotation

1- The first block is a 'start' block.
2- A large motor on port D is made to turn through one rotation at 50% power with
the brake applied once the movement is complete.
3- A timer makes the program pause for 1 second.
4- The large motor on port D is made to turn through 360° (one rotation) at -50%
power so it will turn backwards. The brake is applied once the movement has
completed.
5- A timer makes the program pause for 1 second.
6- The large motor on port D is made to turn for 1 second at 18% power. The brake is
applied once the movement has completed.

You might also like