In this post, we will be learning how Bitbloq 2 works. If you have already used the first version of Bitbloq, it will help you to get to know the new features, advantages and differences. If you still haven´t installed the Web2Board application, which you will need to make your board and Bitbloq 2 function correctly, now is a good time. In Before you start with Bitbloq 2, you can find a step-by-step explanation of the process.
Getting familiar with Bitbloq 2
We´re going to take a look at the options on Bitbloq 2. To do this, go to http://bitbloq.bq.com/
![]() |
IMPORTANT: Bitbloq 2 is a new program that has been created from scratch, so if you have already created an account for Bitbloq 1, it will not be compatible with Bitbloq 2. |
The Hardware tab: connecting the electronics
In this tab, we will tell Bitbloq 2 what hardware we are using. First of all, we need to select the controller board and then we tell it what components we are using and where we have connected them. Click on Components and drag the LED to the yellow box. Click and drag the circle at the bottom of the component to connect the cable to digital pin 13. Finally, if you haven´t done it yet, connect your LED to your controller board and don´t forget to connect each pin to the corresponding colour!
![]() |
REMEMBER:With Bitbloq 2 you can use a ZUM, a FreeDuino or an Arduino UNO board and most of the sensors, actuators and boards on the market. |
The Software tab: programming our project
Now that we have connected our hardware, we need to create our program to switch on an LED.
Take a look at the programming area and you will see that it´s divided into three parts:
- Global variables, functions and classes: This enables you to declare variables accessible from any part of the program, as well as to create new functions. We will look at how to use them later on.
- Setup: This runs at the beginning of the program and is used to configure the behaviour of the pins and other actions we want to be executed once when it starts. We will learn how to use this in subsequent entries.
- Loop: This is the main loop for the program, which you will be using the most. Everything contained in this loop will be executed indefinitely. This means that a program on Bitbloq and Arduino is never-ending.
Open the Components tab and drag the Switch on the LED (…) to the Loop section. To save you from losing time searching through components and blocks that you don´t need, Bitbloq 2 will only show you the blocks for the components that you connected under the Hardware tab. If you need more generic blocks, click on the Advanced option.
Our program is now ready to function. Click the Check button so that Bitbloq 2 can verify that the program functions correctly. If the program is compiled correctly, then click on Load. The program will be loaded onto your board and when the Program uploaded successfully message appears, the LED will light up. Well done! You have just created your first program! Now there´s only one left for all good programmers to do: documenting all the details.
The Project info tab: documenting our program
If you want to share your creation with others, or to be able to access it again at a later stage, make sure that you do a good job and document all the important details.
Now we have everything ready! If you want to publish your project, click on the cloud: Publish on Explore. Now anybody can see, use and even create their own improved version of your project. To access all published projects, click on the green Bitbloq icon and then on Explore. Create and share your ideas with the community!
Congrats! Now you know how to use Bitbloq 2. Throughout this course, you will learn how to program your controller board to make awesome inventions and robots. Remember that if you have any doubts or suggestions, you can leave us a comment.
Ready to continue the adventure? Let´s go!