Learn with Edwin Robotics

Getting Started with Ardublockly

Arduino UNO

Ardublockly

Ardublockly is a visual programming language that is based on Google’s Blockly. Being a visual programming language you don’t need to worry about remembering syntaxes or missing semicolons. The Arduino code is generated when the blocks are connected to perform an action. Ardublockly also displays the actual C code that is being uploaded making it easier to understand what goes on in the background.
 

Installing & Configuring Ardublockly

Get the latest version of Ardublockly from its github page. Do ensure that you have the latest Arduino IDE installed as well, check the Arduino guide for more info on how to install Arduino.
Installing on Windows

  1. Extract Ardublockly – Once you have downloaded the latest version of Ardublockly, extract it to a location of your choosing.
  2. Run Ardublockly – In the Ardublockly folder run the ardublockly_run.bat. This will run Ardublockly and create the ServerCompilerSettings.ini file that we need to modify to get Ardublockly working. Once Ardublockly has successfully started you should see the Ardublockly homescreen.

    Ardublockly IDE

  3. Close Ardublockly – Now that the ServerCompilerSettings.ini has been created, we can close Ardublockly
  4. Open ServerCompilerSettings.ini file using Wordpad – The ServerCompilerSettings.ini file needs to be edited to configure the location of arduino_debug.exe
    Note: Open the file using pretty much any text editor other than notepad as notepad does not recognize the line breaks properly
  5. Add location of arduino_debug.exe –   The location of arduino_debug.exe if installed via the Arduino installer, will be located at C:\Program Files (x86)\Arduino\arduino_debug.exe

    ServerCompilerSettings.ini configured using wordpad

  6. Run Ardublockly – To test whether it has been configured properly, run ardublockly_run.bat and open the preferences ( Edit → Preferences) it should show a window like this

    Ardublockly Preferences

  7. Select Board & Port – Next select the board that is being used, in our case it is the UNO. The available serial port will be shown only if the Arduino is connected.
  8. Test Configuration – To ensure everything is all set and done click on the verify button

Ardublockly Verify

Verify Successfully

  • If all goes well the Successfully Verified Sketch will be displayed, this may take 20-30 seconds on some machines.
Installing on Linux
  1. Extract Ardublockly – Once you have downloaded the latest version of Ardublockly, extract it to a location of your choosing.
  2. Run Ardublockly – In the Ardublockly folder run the ardublockly_run.sh as root file from terminal. This will run Ardublockly and create the ServerCompilerSettings.ini file that we need to modify to get Ardublockly working. Once Ardublockly has successfully started you should see the Ardublockly homescreen.

    Ardublockly Terminal

     

    Ardublockly Linux

  3. Close Ardublockly – Now that the ServerCompilerSettings.ini has been created, we can close Ardublockly
  4. Open ServerCompilerSettings.ini file – The ServerCompilerSettings.ini file needs to be edited to configure the location of arduino
  5. Add location of arduino –   arduino  is located at the root folder of Arduino, in this case it is /home/emil/Apps/arduino-1.8.0/arduino

    Editing ServerCompilerSettings.ini in gedit

  6. Run Ardublockly – To test whether it has been configured properly, Run ardublockly_run.sh as root from terminal and open the preferences ( Edit → Preferences) it should show a window like this

    Ardublockly Preferences on Linux

  7. Select Board & Port – Next select the board that is being used, in our case it is the UNO. The available serial port will be shown only if the Arduino is connected.
  8. Test Configuration – To ensure everything is all set and done click on the verify button

    Ardublockly Verify

    Verify Successfully

  9. If all goes well the Successfully Verified Sketch will be displayed

 

Blinking An LED

Blink Code

Upload Button (Center Button)

Successful Upload

Exit mobile version