Finally, after months of work, we have a version integrated with Arduino IDE! 😉 Download it here and put it under your ‘tools’ directory at “tools/ArduBlockTool/tool/ardublock-all.jar”.
Sorry for my bad english.
They have a little mistake: The MAX and MIN functions does not generate a comma of separation between operands in the arduino code.
A good program.
The Max/Min has been fixed. 😉
– A module to control inputs and outputs via the serial port.
– When selecting variables, a dropdown with the names of existing variables and an option to add a new variable.
– Missing the setup of the input and output pins.
A good job.
– Define the pins in the setup (as INPUT or OUTPUT)
– Functios to control the serialport —-> read(), available()
One more suggestion: ok, ok…..no more 😉
-The implementation of arrays 
em…… excuse，where CAN I DOWNLOAD THIS PATCH?
sorry for my english,
i ve got problem….
please show me step by step to install ardublock,
i’m using windows xp, arduino ver 22.
i followed instructure from this blog, but nothing …
Please take a look at this post: http://blog.ardublock.com/2011/10/25/install-ardublock-arduino-ide/
1. How do I test the value of a pin if it is LOW or HIGH. Look at the screenshot you created above. The IF statement isn’t complete.
It says: if (digitalRead(3))
but it should be: if (digitalRead(3) == HIGH)
if (digitalRead(3) == LOW)
I tried but could not put them in the = operator block. It appears there used to be a ‘pin test’ block from earlier blog posts but I don’t see it at all.
2. How do you tell it how to generate code in the setup function? It appears to generate pinMode commands but how do I initialize variables to a particular value?
3. I do not see a block that allows you to turn on the internal pull up resistors on the digital pins. This is useful to use if you are using push buttons (because otherwise I need to physically add a pull down resistor on).
4. Is the I2C Read and Write blocks still in beta? Just some things to think about… The address of a device is normally 7 bits and should be bit shifted before passing to the wire library. Normally I do this in my code using the following macro:
#define SEVEN_BIT_I2C_ADDRESS(x) ((x) >> 1)
const int I2CAddress = SEVEN_BIT_I2C_ADDRESS(0xD0) ; // for device at address 0xD0
Also most device AND register addresses are in hex. I tried adding in a hex value for the register address value in the I2C blocks and could not put them in.
Oh and as an FYI the Wire library calls have changed for Arduino 1.0. The ‘send’ and ‘receive’ methods have been changed to ‘write’ and ‘read’ respectively.
The compiler now gives the error: As of Arduino 1.0, the Wire.send() function was renamed to Wire.write() for consistency with other libraries.
Sorry for the long post.
i am interested in this keep up the good work.
i agree with Denbo. maybe you can fix this by:
-insert “=” operator into “test” socket of “if” (this is working already)
-and let us use “digital pin#1” on the left and “HIGH” on the right
let me know about any updates
Thanks for the suggestion. We will look into this.
Is it possible to translate the text on the blocks to another language?
I want to use Ardublock to teach young children programming, but the
have some difficulties with the english language.
Is this possible?
Is the text hardcoded, or do you use a resource file?
In any case, will you release the source code?
We are working on translation bundle system and should be releasing it very soon. The source codes is available at https://github.com/taweili/ardublock/ under GPL v3.
I downloaded the source code Ardublock but I can’t run it.
How can I solve this problem described below?
Scanning for projects…
Building ArduBlock 0.1.0-SNAPSHOT
The POM for edu.mit:openblocks:jar:1.0-20110819 is missing, no dependency information available
Total time: 0.536s
Finished at: Wed Feb 01 16:30:19 BRST 2012
Final Memory: 11M/247M
Failed to execute goal on project ardublock: Could not resolve dependencies for project org.ardublock:ardublock:jar:0.1.0-SNAPSHOT: Failure to find edu.mit:openblocks:jar:1.0-20110819 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
You also need the openblocks from here and run ‘mvn install’ to have it at your local repository in order to build ArduBlock.
Please, including version number somewhere in the design screen.
Great job!!! Thanks!
Will do this soon. Thanks for living with this at its Alpha stage. 😉
how can i read a value from analogPin for controlling digitalPin?
because i try it but alway error
Could you give an more concrete example? Currently, we don’t allow the digital input to be use directly as analog value. You can put the digitalPin input in a if/else blog and output to the analog according to the true/false (high/low) values.
for the simple example,
how can i read analog input in ardublock?
because i cannot access the adc value as input
I can’t find serial.read() in Ardublock.
This makes me a little trouble.
Using Ardublocks to teach children. Really like the simple format without having set OUTPUTS and INPUTS etc. Just wondering how do do calculations with digital variables. For example to change a boolean from TRUE to FALSE. Is there a way? Please help.
There are logical operators to do that.