EFBlock--Elecfreaks Self-developed Pattern Programming Software

EFBlock--Elecfreaks Self-developed Pattern Programming Software

Hello, welcome to the world of Arduino. Today i am going to show you a good tool for Arduino programming. And that is EFblock. EFblock is a newly developed programming language based on Google technique. It is suitable for Arduino fans with zero experience to use. You can use EFblock very conveniently without reciting commands. Just moving bricks, you can make an Arduino program. It is so funny and easy to learn. Through studying this tutorial, you can know how to use EFBlock to control Arduino board and sensors for it tells you basic and practical knowledge. You can DIY using a variety of sensors and the Arduino boards to achieve various functions and improve your creativity.

Software Interface Description

Download EFBlock here and install EFBlock.exe. It is very simple. You just have to keep click "next", then finish your installation. Open the software:

Simple configuration first: (at the beginning, the robot module is empty) Click on "Extension" in the menu bar and select "elecfreaks" (so the robot module isn't empty now). Here we have finished the configuration.

After configuration, let's see what happen with the software interface? Let's look at the menu bar first:

"New ": create a new project "Load Project": open up the existing project "Save Project": save the current project to a local file (suffix.Sb2). Control panel menu and extend menu. You can choose other boards here . (at the beginning, or when you find the robot module is empty, check whether the state of control panel is "Freaduino_uno" and the state of extended menu is "Elecfreaks")

Next we go for one important section: Scripts.

The scripts are divided by colors.

: Blue scripts belong to the robot module.
: Yellow scripts belong to the control module.
: Orange scripts belong to the data & instructions module.

: Green scripts belong to the digital & logical operations module.

Robot Module

The robot module is corresponding to our peripheral sensor, connect the sensor to the corresponding interface (IO) if you want to use the corresponding script blocks. Here is one illustration: We have 4 script blocks corresponding to 4 different functions:

This block is the head of your program, which must be used at the top.

This block is used for connecting.

This block represents as a numerical value.

This block is usually used to judge the condition: yes/no. Now let's go for what the text stands for. The first white circle (

)of most building blocks display the interface,which you may be puzzled about: Interface is the needle on motherboard. We use wire to connect the sensor and fill in the number of corresponding interface in the first circle, then the building blocks can be used. Arduino has two interfaces: Analog and Digital, which are abbreviated as "A" and "D" on the board.So check the letter "A"( A_ for analog and _ for digital) before you connect the sensor(e.g. A0/0). Analog :


Such as

With "A" ahead and "0" in the circle, we should connect the button to A0 side of the board. (The color of wire & interface must be matched .) We will introduce other scripts later.

Let's light up the world of Arduino

We will start with a simple experiment: Light a lamp with flash on the Freaduino board. First we need to configure your development environment: make the motherboard communicate with computer. Operation steps:

1. Connect Aruino motherboard to computer with USB wire.

2. Open the Elecfreaks software, install the Arduino driver (skip this step if you can find the port).

3. Select the corresponding COM port.

4. The title will display "connected" after you click.

5. If you can't figure out which COM port belongs to Arduino , just launch the "port" in the device management.

6. Check whether the "elecfreaks" has been selected.

7. Drag the corresponding module to the right as below.

You will get this:

The blue blocks belong to the robot module and the yellow blocks belong to the control module.

Note: Input 13 in the white circle in place of 5 in this robot module

8. Right click the main program block and select "upload to arduino". Now we have finished our first project. Then what do you find?