"> ");
100%

Let’s have a dance party

Let’s have a dance party

Video Transcript

Hello kids.

In this lesson, we will do many exciting things.

First, we will make Edison dance. But when should he dance?

When another Edison gives him the command!

So, we will make two Edison robots talk to each other!

Of course, you will need two robots, so if you do not have a second one, you can call a friend who also has an Edison.

As we have said, Edison has two infrared transmitters (on the right and the left) and an infrared receiver (in the middle).

In the “avoid obstacles” activity, we saw that Edison could send the infrared light using the transmitters... this hits an obstacle, and it comes back to be sensed by the robot’s receiver.

In this activity, the first robot will send the infrared light... and the other one will detect it.

So, let’s call the robot that is sending the light, a “leader” and the robot that's receiving the infrared light a “dancer.”

The “leader” tells the “dancer” to do something, like to “dance.”

So, the “leader" sends a message to the “dancer” and the two robots communicate with each other!

Let’s see what program each robot should have. Of course, they shouldn’t have the same. Each robot does something different:

The leader sends out the message. The dancer gets the message, and after it gets it, it dances.

Let’s write the “leader’s” program.

From the “outputs” category, we select the green block with the envelope.

By clicking on the arrow icon, we select the envelope with the pink message.

Perfect! With this program, the “leader” robot sends out a pink message.

Now, let’s write the program of the “dancer.”

The robot must start its program only when it receives the pink message.

To do this, we select another block from the “start” category:

from the “start events” category,

we select the block with the pink envelope.

Next to that, we stick all the blocks that make Edison dance!

Great! We have programmed both robots! Let’s see what they will do.