For many students and teachers making the transition from visual programming languages like Scratch to text based programming languages like Arduino can be challenging! Ardublock a visual program builder for Arduino might be just the tool you and your students need to bridge the void!
- You will need an Arduino Board like a Genuino 101
- You will need to have installed the Arduino IDE, visit bit.ly/genuinosetup for all the instructions
- Visit http://bit.ly/Ardublock and download the latest version of Ardublock (It should begin automatically)
- Open Arduino and click on File >> Preferences and open the 'Sketchbook location' by clicking on Browse
Within the folder you have opened:
- Click on Arduino
- Create a folder called tools (lower case)
- Within the tools folder create a new folder called ArduBlockTool (case sensitive)
- Within the ArduBlockTool folder create a new folder called tool
- Paste the Ardublock file (ardublock-xxxxx.jar) you have downloaded into the final folder (tool) you created
Beginning with ArduBlock
Now that you have installed the program you are all set!
- Open Arduino
- Click on Tools >> Ardublock Now you are set to create your first sketch, let's make your board blink!
- Click on Control and then drag the Program block as the base for your code
- Using blocks in the Control and Pin sections replicate the block structure to your left
Uploading your code
You have now completed your first lines of block Arduino code!
- Click on Upload (The Arduino IDE should open)
- Make sure your Arduino Board is connected and both your board and port is selected in the tools menu
- Click Upload and you should be blinking
Bridging the Gap
You will have noticed that when you click upload in Ardublock and Arduino opens the block code has been transformed in to text based code. This is a great intervention point to help students see what their block based coding translates to. Now:
- Learn more about Arduino Code with this Tutorial
- Take a look at http://innovationtoolbox.intel.com.au/
This guide was produced with information from:
This lesson uses Ardublock, a visual program builder for Arduino, to help transition from visual programming languages to text based programming languages