Ardublock Tutorial PDF
Ardublock Tutorial PDF
What is Ardublock
Ardublock is a graphical programming language for non-programmers easily using
Arduino.
How to install
1 Download ardublock-all.jar from ArduBlock
2 Open Arduino IDE/Menu /Arduino/ Preferences, then you can get the
Sketchbook location
In Mac, /Users/abu/Documents/Arduino/tools/ArduBlockTool/tool/ardublock-all.jar
In Linux, /home/abu/sketchbook/tools/ArduBlockTool/tool/ardublock-all.jar
In Windows, C:\Users\abu\Documents\Arduino
Restart Arduino IDE and you can find ArduBlock in Tool .
Note Pay attention to captals and small letters of fold names
How to use
The drawers of ArduBlock are divided into different categories.
Control
Blocks in Control are control structures.
Operators
This item includes logical operators and mathematical operators.
Utilities
These blocks are functions commonly used in one sketch.
Bricks
Each block here represents one kind of hardware which can be directly used as a part
in your sketch.
Pin
These blocks act as virtual pins on your Arduino board.
How to program
1. The compilation should succeed if there is no socket of any block available in a
sketch. Or error will be shown up.
How to play
Simple Output
1 Example 1--Hello World
1.1 Hardware connection
Digital White LED Light Module connect toPin
13.
1.2 Function
LED will be lighted once a second.
1.3 Block sketch
1.4 Download
REMARK
Now you can download the abp file directly.
You can load the abp file by click the load button.
Select the file you download and press the open button.
2.4 Download
Simple input
3.4 Download
4 Morse code
4.1 Hardware review
connected to Pin 13.
Digital Buzzer Module connected to Pin 12.
Digital Push Button connected to Pin 8.
4.2 Function
When the button is pressed, the red LED will be turned on and the buzzer will
beep. A period of beeping sounds like a Morse code.
4.3 Block sketch
Digital RED LED Light Module
4.4 Download
5 Rotation Sensor
5.1 Hardware review
Analog Rotation Sensor V1 connected to Pin A0.
5.2
Function
In this program, you can check the value of the rotation angle.
When you upload the program, you can switch to arduino IDE, click the monitor
icon. The serial monitor windows will show the degree of the rotation from 0 to
1023.
5.3 Block sketch
5.4 Download
6 Fade light
6.1 Hardware review
Digital White LED Light Module connected to Pin
11.
6.2 Function
This program will show you the light will flash in a long time in a fade condition.
6.3 Block view
6.4 Download
7 Noise meter 1
7.1 Hardware review
Digital White LED Light Module connected Pin
11.
7.2 function
This meter can detect the environment noise, more loudly the light will brighter.
7.3 Block view
7.4 Download
8 Noise meter 2
8.1 Hardware review
Digital White LED Light Module connected Pin
11.
8.2 function
This meter can detect the environment noise, more loudly the light flash faster.
8.3 Block view
8.4 Download