Introduction: Getting Started With ArduBlock

This is an introduction to the ArduBlock graphical programming language. It is a great way to learn the basics of programming and also to quickly write a test program if you are a more experienced user.

- Arduino board
- 10KΩ Resistor
- Momentary on button
- Computer with Arduino IDE and ArduBlock installed

I will demonstrate with two programs.

Step 1: Build the First Circuit

The first circuit is simple...

Step 2: Code the First Circuit

Here is the step-by-step to create the ArduBlock code to turn on the built-in LED (wired to pin 13) when a button (pin 2) is pressed.
NOTE: You can add a delay to the end of the loop so that the serial output will not be so fast (you can find a delay block in the "Utilities" toolbox on the sidebar).

Uploading is simple: Just plug the Arduino into the computer, click the "Upload" button, and ArduBlock will generate the Arduino code neccessary. You can then see the serial output by clicking the "Serial Monitor" button in the Arduino IDE

Step 3: Try It!

I don't have a good camera, but I did test this circuit and it works!

I have created a program to get input from a potentiometer and dim an LED... I haven't tested it yet. See if you can figure out a circuit to make this work.

See the picture below for the code.


randmor54 made it!(author)2017-01-28

For those of you who are interested in ArduBlock, be sure to check out BlocklyDuino, Blockly@duino, BlocklyDuino-Enhanced and TUNIOT. The later two were developed by the folks at EasyCoding.TN. Can use Google, or other search engines, to search for other versions of BlocklyDuino. TUNIOT is especially cool as it supports the ESP8266 based NodeMCU boards to provide you an easy way of developing WiFi (IoT or Internet of Things) applications. Search for "Espressif ESP8266 WiFi SoC", "Arduino ESP8266 Core", "NodeMCU". Forget the firmware based eLua language that comes with the NodeMCU. Focus on getting the NodeMCU up and running with the Arduino IDE (requires installing the Arduino ESP8266 Core from GitHub). Then can go to the website and click on the TUNIOT icon to launch TUNIOT (runs off their server). The EasyCoding website also has links to a series of YouTube tutorial videos they did that describes in detail all this and more. Thats

killercatfish made it!(author)2014-06-09

Do you have the ardublock code for the potentiometer?

DCengineer made it!(author)2014-06-09

The potentiometer code is the last picture shown in step 3 I believe. I'm also pretty sure that the Arduino IDE has example code that does this.

Here's all you need to do:

* Get input from potentiometer in an analog pin (will give a value between 0 and 1023)

* Use the map function to send the LED a PWM signal - map(0,1023,0,255)

* Output that value to the LED pin

About This Instructable




More by DCengineer:Better Save to Pocket Button (Firefox)Laptop Cooling PadWorking With btrfs
Add instructable to: