How to Hack ArduBlock
May 4th, 2012 by david

Here is a short tutorial on how to start hacking ArduBlock

  1. Fork and check out ArduBlock and our version of OpenBlocks
  2. Open both in the Eclipse
  3. The language description is located at ardublock/src/main/resources/com/ardublock/block/ardublock.xml
  4. To add a block, create a BlockGenus. We will use the “Digital Push Button” as an example here:

    Untitled

    <BlockGenus name=”df_digital_push_button“ kind=”data” color=”255 102 0″ initlabel=”bg.df_digital_push_button“>

      <BlockConnectors>

        <BlockConnector connector-type=”boolean” connector-kind=”plug”/>

        <BlockConnector connector-type=”number” connector-kind=”socket” label=”bc.pin_number“>

          <DefaultArg genus-name=”number” label=”1″/>

        </BlockConnector>

      </BlockConnectors>

      <Images>

        <Image>

          <FileLocation>com/ardublock/block/dfrobot/dfr0029.jpg</FileLocation>

        </Image>

      </Images>

    </BlockGenus>

    • Each block has a plug side expressing its data output. For the sensor block, it is either “boolean” or “number.”
    • The socket sides of the block express the data needed for its function. In this case, the “pin” the button is attached.
    • The image is located under src/main/resources and the relative path name to this directory should be used.
    • all text in the attributes “initlabel” or “label” will get run through a localization process and the localized text are stored in “src/main/resources/com/ardublock/block/ardublock.properties” for English. Translation into other language is managed at the ArduBlock Translation.
  5. Add the block to a Drawer.

    <BlockDrawer button-color=”255 102 0″ name=”bd.dfrobot” type=”factory”>

      <BlockGenusMember>df_digital_viberation_sensor</BlockGenusMember>

      <BlockGenusMember>df_digital_infrared_motion_sensor</BlockGenusMember>

      <BlockGenusMember>df_digital_ir_receiver_module</BlockGenusMember>

    </BlockDrawer>

  6. The code generation backend is located at src/main/java/com/ardublock/translator/block/
Exemple de programme simple : Feu de carrefour
May 3rd, 2012 by jdplanterose

Bonjour,

Voici un exemple de programme réalisé avec Ardublock.

Il s’agit un feu de carrefour assez simpliste.

Les fichiers Ardublock, Arduino (.ino) ainsi qu’un exemple de simulation sont disponibles ici.

2012/04/03 Update: Copy-n-Paste implemented, Korean and Italian translations added
Apr 3rd, 2012 by david

Download Link

Copy-n-Paste with right mouse click context menu

Untitled

Korean and Italian Translation

Untitled

Untitled

ArduBlock Piano
Mar 17th, 2012 by david

willp just uploaded the cool Arduino piano in ArduBlock video. Here is the source.

More “Getting Started with Arduino” ArduBlock examples
Feb 28th, 2012 by david

Thanks to Michaël Clergeot providing few more examples in ArduBlock from the book “Getting Started with Arduino.”

Untitled

20120225 critical bug fix release and updated translation
Feb 25th, 2012 by david

First of all, I’d like to thank the ArduBlock community for the support on feedback, translation and all the supports. This release fixes a critical bug that prevents a saved file from be correctly loaded.

Download Here

Loading Bug Fix: there is an issue of loading a saved program.

Translation update

Thanks a lot for all of those help with the translations. ArduBlock are now localized in 8 languages with full translations of French, Spanish, Japanese and Brazilian Portuguese.

Again, for feedback and suggestion, please post them here and to help with translations, please go here

Control Lego blocks with Arduino and ArduBlock
Feb 12th, 2012 by david

A new post (in Chinese) from 宜昌城老张 about controlling Lego block with ArduBlock. Very cool!

Untitled

Untitled

ArduBlock on SemaGeek (in French)
Feb 8th, 2012 by david

Just saw the article “Arduino : Présentation et traduction en Français de ArduBlock.” by Julien Rat who did the first version of ArduBlock in French before we even put in the translation framework.

Untitled

Introduction of Ardublock in Chinese (2)
Feb 7th, 2012 by david

感谢宜昌城老张提供新车间Arduino图形化编程软件ArduBlock的介绍(下).

Untitled

Arduinoのこんにちは
Feb 6th, 2012 by david

Big thanks to Crystal for the Japanese translation!

Untitled

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »  Style:Ahren Ahimsa