Introduction: How to Make a Magic Fan by Using Scratch and Arduino.

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
Me-Ultrasonic Sensor

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

General Steps:

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.


About This Instructable




Bio: Makeblock was founded in 2012 as the world's first open-source robot and programing platform. With more than 400 mechanical components, electronic modules, and software ... More »
More by Makeblock Robotics:How to Use Scratch or Arduino to Program a MBot 3D Capture B by Makeblock How to do a cartoon project with Airblock and paper cups
Add instructable to: