Re: Blockly For Arduino

531 views
Skip to first unread message

Shaunak Agastya Vyas

unread,
Jul 11, 2017, 7:38:41 AM7/11/17
to Blockly
Hello All

It's TINU here. I have customized the Ardublock (An add-on of Arduino) to code my own Robots. Please find attached herewith the Block Program Snapshot for my NEC Remote Driven two-motors Robot. After successfully customization of Ardublock, I came to know about Google Blockly and I have already fallen in love with it.

I was searching for the Blockly Compatibility with Arduino and I found a few links as below:
1. https://github.com/carlosperate/ardublockly
2. https://github.com/BlocklyDuino/BlocklyDuino/wiki/CreateNewBlock

I am able to get these repositories from Github, but I am not able to understand what the development environment is that would allow me to customize the codes and build them. My ultimate goal is very clear: I want to use Blockly for my Arduino that can allow me to start bulding the same Block Program the snapshot of which is attached herewith.

Thanks in Advance.

Regards
Shaunak Agastya Vyas
ArduBlock_Custom.JPG

Erik Pasternak

unread,
Jul 11, 2017, 4:05:52 PM7/11/17
to Blockly
Hi Shaunak,

The blockly team mostly uses a mix of Sublime and Chrome's built in editor for our development flow. Since Blockly is written in JS you can also use the uncompressed files to develop more quickly. Here's a summary of the difference between compressed and uncompressed. If you haven't already read through some of them, Blockly's developer docs provide a lot of detail on working with Blockly. The sections on Creating Custom Blocks might give you the details your interested in.

I haven't worked with Ardublock directly, but if you have more questions that aren't answered by the developer docs let us know and hopefully us or someone else on the list can help find the right answer.

Cheers,
Erik

Michiel Erasmus

unread,
Jul 13, 2017, 1:01:41 PM7/13/17
to Blockly
Do you generate C++ code for Arduino?


Op dinsdag 11 juli 2017 13:38:41 UTC+2 schreef Shaunak Agastya Vyas:

Shaunak Agastya Vyas

unread,
Jul 14, 2017, 11:27:39 PM7/14/17
to Blockly
Yes I generate both C and C++ codes for Arduino.

Shaunak Agastya Vyas

unread,
Jul 14, 2017, 11:29:05 PM7/14/17
to Blockly
Thank you,so much, Erik. It means a lot.

Regards
Shaunak Agastya Vyas

Tinker

unread,
Jul 15, 2017, 7:36:47 AM7/15/17
to Blockly
Hi Shaunak,
Maybe you can try Mixly. A software generate C++ code for Arduino  built by blockly. you can download from https://pan.baidu.com/s/1dE3Z6db#list/path=%2F

在 2017年7月15日星期六 UTC+8上午11:29:05,Shaunak Agastya Vyas写道:

Tinker

unread,
Jul 15, 2017, 7:38:51 AM7/15/17
to Blockly
Hi Eric,
I want to make some new blocks so that I get message from serial port in scratch 3.0. How can I do that? Thanks.

在 2017年7月12日星期三 UTC+8上午4:05:52,Erik Pasternak写道:

Erik Pasternak

unread,
Jul 16, 2017, 4:04:16 PM7/16/17
to Blockly
Hi Tinker,

If you're just using Scratch Blocks, which is just the block editor, and code generators you can add blocks the same way you do in Blockly (see the developer docs). If you're using the scratch-vm to run the code it's more involved.  The Scratch team is still working on how Block Extensions (adding custom blocks to Scratch) will work for Scratch 3.0 so there's no official way to do so yet. For reference, here's how extensions in Scratch 2 work.

Cheers,
Erik
Reply all
Reply to author
Forward
0 new messages