In this first project, I am going to make a Magic Fan. The speed of the fan is controlled by the distance between your hand and the ultrasonic sensor. The best thing of this is that Makeblock is building up the bridge to connect the physical world to the programming environment. At the same time, Scratch helps people to learn programming language and makes it easy. In here, I will start from some easy projects to harder one.
Scratch is one of the drag and drop programming software contributed by MIT. It helps young people learn to think creatively, reason systematically, and work collaboratively — essential skills for life in the 21st century.
A motor (6V-12V) with blades
You will be using Scratch to do all the programming stuff. It won't take you more than ten minutes. But first you have to install Makeblock software designed for Scratch.
If you don't know how to install Makeblock applications for Scratch, download the instructions PDF attached below.
Step 1: Prepare Makeblock Electronic Modules for Scratch
In here, I am assuming that you already know how to install "Makeblock for Scratch".
I am pointing out these main steps that you have to do before start using Makeblock electronic modules.
For more details, please download the PDF attached above.
1. Upload the ScratchApp code to Meduino or Me-Baseboard
2. Connect your Meduino or Me-Baseboard to your PC
3. Import Makeblock electronic modules in Scratch
Step 2: Magic Fan Coding Part - Scratch
The coding part is illustrated as picture shown here. I put some description on the picture.
If you have question, move your mouse on the picture and look for the answer.
This is a bug in the Scratch right now. You have to include something from Scratch itself at the end in order to use the third party electronic modules.