Home / Softwares Tips & Tricks / ISIS Tutorials / Tutorial of ArduBlock: Getting Started

Tutorial of ArduBlock: Getting Started

In this article I am going to give you a tutorial on “Ardublock  ” which is a new graphical programming tool for Arduino. It will help the developers to create complex programming algorithms into simple graphical block diagrams. First you have to install it. Programming with Ardublock provides a graphical interface to developers, in order to reduce their complexities and implement their algorithm in a much efficient manner.

Step by step procedure to do programming with Ardublock

Ardublock is a graphical manifestation of implementing the algorithm on Arduino. First let’s create a simple program which will help us to comprehend the utility of this software. In this simple example we will compare a digital pin number 6 and then will turn the led on and off according to the status of the digital pin number 6.

How to install the Ardublock:

Follow the following steps to install ardublock on your computer

(Install Arduino IDE first if you haven’t done it already)

  1. Visit http://www.mediafire.com/download/2piif78i552vkn9/Arduino.zipand download Arduino.zip
  2. Now unzip the downloaded Arduino folder from Arduino.zip anywhere in your PC.
  3. Now go to “My Documents” folder in your PC.
  4. You will find a folder called Arduino and it’s the folder created when you installed the Arduino IDE, delete that folder.
  5. Now copy the unzipped Arduino folder in the “My Documents” folder.
  6. Now open your Arduino IDE software.
  7. Go to tools section, you will find ArduBlock there.

 Building a project in ArduBlock:

There are several graphical blocks in Ardublock for translating your project in functional blocksimage001Open Ardublock. A window will open like this one:

step 1 Ardublock tutorial

First go to the control section and select the program block

step 2 Ardublock tutorial

Now go to code blocks section and select the setup block and fix it corresponding to the setup slot and write the raw code serial.begin(9600); in the code space.

step 3 Ardublock tutorialNow come to the loop part, go to control section and select the if/else block and fix it corresponding to the loop.step 4 Ardublock tutorial

Now translate your logic first, go to the logic operators section and select the equivalence operator and fix it in the test section.

step 5 Ardublock tutorialNow go to the pins section and select the digital pin and fit your logic by selecting the variables/constants sectionstep 6 Ardublock tutorialNow select the set digital pin block from the Pins section and fix them accordingly.step 7 Ardublock tutorial

So the final shape of the program becomes:step 8 Ardublock tutorial

Now press the “Upload to Arduino” button and the block diagram will be translated to the high level language like:

program to be ulpoaded with ardublock

If you have any question, please post it in comments.

About Syed Noman ud din

Syed Noman ud din is an Electrical Engineer and working in Industry from last 3 years. He writes technical articles for electrical and electronic engineers. He has also published several research publications in renowned international journals.

Leave a Reply

Your email address will not be published. Required fields are marked *

*