"> ");
In this lesson, we will make some noise!
We will drive Edison by clapping our hands.
We will even make it dance with figures that we will create! Of course, all of this will be done by writing our program!
Do you remember Edison’s sound sensor?
It is the sensor that lets Edison detect loud sounds like clapping.
We can make a program that uses that sensor.
Let’s make a program that tells Edison to wait for a clapping sound before taking the next action in the program.
To write our program we will use EdBlocks.
Let’s find the EdBlocks app. On our computer, we type www.edblocksapp.com in a browser.
Another way is to look for the word Edblocksapp on a search engine machine.
Using Edblocks, we will write our program so that Edison makes certain moves when we clap once or twice.
Let’s look at it a bit more carefully:
We want the robot to wait until we clap once...then to drive forward for 0.5 seconds...then to wait again until two claps are detected...and then to turn left for 0.3 seconds.
We have made the list of things we want Edison to do. Now, we have to tell him all of them...but in order for the robot to understand them, we have to write them in its language, which is Edblocks!
So we choose the block from the “wait until” category, with which Edison waits until a loud sound is detected.
Good!
Then we choose, from the “drive” category, the block with which Edison drives forward and we point at 0.5 sec.
Then we choose again from the “wait until” category the block with which Edison waits for a loud sound.
By clicking on the arrow, we select 2 claps.
Perfect! Now, Edison will wait until the two clapping sounds are detected.
Then we want him to turn left for 0.3 seconds.
For this, we choose from the category “drive” the block with which Edison turns left and we insert as value 0.3 seconds.
Very good! We wrote our program and it’s time to try it out.
After downloading the program to Edison, we place the robot on a flat surface and we press the play button...
Now that we know how to make Edison drive forward, backward, how to turn left and right with the help of EdBlocks, we can make Edison dance!