How to toggle a motor on/off with a touch sensor

Starting with a simple challenge involving a touch sensor and a motor, this learning sequence shows how to turn a motor on and off with a touch sensor using flow control structures that include: waits switches loops flags the master/slave design pattern. In addition, it also shows how to a range of programing techniques, including: […]

Continue reading "How to toggle a motor on/off with a touch sensor"

How to wait for more than one sensor condition

The Wait block is one of the simplest blocks in the EV3 Software, and provides one of the simplest flow control structures. Its basic function is to pause the execution of a program until a particular condition is met, and then continue with the program. For example, “wait until the touch sensor is pressed” or “wait for […]

Continue reading "How to wait for more than one sensor condition"

To light or not to light

This article highlights one of the difficulties in using the legacy RCX lamp with MINDSTORMS EV3 platform and presents an approach for overcoming this difficulty. It also presents a strategy for synchronizing mutliple lamps with each other as well as with other parts of the program using Master/Slave design pattern architecture. NOTE: This article concludes […]

Continue reading "To light or not to light"

From sequential programming to state machines

In this unit, we will explore some common algorithms for line following in a very systematic way, starting with well known “sequential” approaches, and then contrasting these with a “state machine” approach. We will see in detail how a four-step simple line follower with two Light (or Color) sensors works and how to systematize the […]

Continue reading "From sequential programming to state machines"

Inside a two-step simple line follower

In this unit, we will use the datalogging tools available in the EV3 Software to study the internal operation of a two-step simple line follower with one Light sensor. It is a very simple but powerful example that can help students to understand and to correctly program other situations. One of the most important functions […]

Continue reading "Inside a two-step simple line follower"

Exploring thresholds

This unit introduces an extremely simple exercise that allows students to think more deeply about the concept of a threshold and how to use it to make a robot react to its environment. It is based on my Teachers Introduction Course to LEGO® MINDSTORMS NXT & EV3 at BOGATECH’s website. Here the programming examples are […]

Continue reading "Exploring thresholds"

Virtual Explosion!

The Second World War generated a big crisis in all aspects: economic, social, human values, etc., and artists were the first to react. Art needed a change and the “action painting” or “happening” was used to express the artist’s feelings, starting from zero and literally attacking traditional painting that embodied conventional art. Jackson Pollock was […]

Continue reading "Virtual Explosion!"