Blockly@rduino: Create Code with Blocks

Based on Blockly and BlocklyDuino, here's a multilingual enhanced version with supervision, upload, multi-level blocks, etc.

Jul 13, 2016

142059 views

150 respects

Components and supplies

1

Arduino Mega 2560

1

Arduino UNO

Apps and platforms

1

Forum Blockly@rduino

1

Blockly@rduino

1

Wiki Blockly@duino

Project description

Code

github for Blockly@rduino

Github repository

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

Hi. Is it possible for you to add a library ? I am keen to use this with the ShieldBot v1.2 made by Seeedstudio. It uses an Arduino at the core of the project. http://wiki.seeedstudio.com/Shield_Bot_V1.2/ Library is at the bottom of the page. Regards

scanet

2 years ago

Hi, sorry for not answering, I do not come regularly on this website and you should post on the forum (http://blockly.technologiescollege.fr/forum/) for answers. The shieldbot is great! I like it,do you still need adding it? I'm working on another project but if you send me an email to confirm you need it I'll go on it first. Regards.

Anonymous user

2 years ago

Your project is very well. I try to make a translate between code Arduino and blocky for my students but when i try to translate this code: void setup() { // Configure the LED's pin for output signals. pinMode(pinLed, OUTPUT); } void loop() { for(int i=0; i<256; i++) { analogWrite(pinLed, i); delay(BREATH_DELAY); } delay(100); for(int i=254; i>=0; i--) { analogWrite(pinLed, i); delay(BREATH_DELAY); } delay(500); } it's impossible because the block PWM can to use only a number and not a variable for example. i have the same problem with the block DELAY.

scanet

2 years ago

It's possible, it's just a problem of definition. In Arduino category there's a "definition" block to put variable, and then you can use them. I could add a screen capture if I knew how to do it... Hope it help.

scanet

2 years ago

In Arduino category you have a 'setup' block, initialize variable inside. Blockly create code by reading from top to bottom, so put 'setup' block upper than the loop code.

Anonymous user

2 years ago

i found. thanks

Anonymous user

2 years ago

Very Well, the code is great. For my example this night: int i; int BREATH_DELAY; void setup() { pinMode(3, OUTPUT); } void loop() { i = 0; BREATH_DELAY = 5; for (i = 0; i <= 255; i=i+1) { analogWrite(3, i); delay(NaN); } delay(100); for (i = 254; i >= 0; i=i--1) { analogWrite(3, i); delay(NaN); } delay(500); } I think, we will can to rename the name of pin, because that's most easy to use SensorTemp or SwitchLight than A0 or D5.

scanet

2 years ago

Sorry, I received no alert about your questions...hope I still can help. In Arduino category, you have a "define" block that can help.

Anonymous user

2 years ago

it's impossible to initialize a variable without to use setup().

Anonymous user

2 years ago

Just a problem with the block delay in ms (). A variable on it make an error delay(NaN);

Anonymous user

2 years ago

Hi is it possible to customize the UI and add new libraries?

scanet

2 years ago

It's just text file in javascript, so only Notepad++. Offline or online are the same. LOFI is very cool, long time unseen...

scanet

2 years ago

Yes of course, you just have to fork it. Or do you specific idea I could help you to realise ? Maybe we could work together on it, we are a few people trying to enhance it.

scanet

2 years ago

I started on Blockly because mBlock was upon Scratch2, and all the Flash problems, difficult source code to understand to newbies, etc. I started it many years ago. Now Scratch3 is also based on Blockly, so it's the right choice! Very easy to modify.

scanet

2 years ago

I created a wiki (not very updated...sorry, too much work): http://www.libreduc.cc/wiki/doku.php/en/blockly_rduino/create_blocks Maybe you could start by copying an existing block, similar to what you want, and trying to create something with wiki's help. If you need help, you could also post on forum: http://blockly.technologiescollege.fr/forum

Anonymous user

2 years ago

HI Scanet thanks a lot it looks very usefull i am just new into this creating block programming software so i just wanna know the basics to start creating something, i see there is a little of mblock which i use now, do you have experience with the new scratch 3 or why you end up using blockly?

Anonymous user

2 years ago

I am trying to create a block programming for Otto now e have mblock and scratch extension but since is not under our control is difficult to fix bugs, let's work together that would be great!

Anonymous user

2 years ago

Exactly what software do you use to modify? and only for offline or also online? have you seen LOFI blocks how they did?

scanet

2 years ago

Always improving this project, I need help for specific function in JS. But also I need help to make it usable in a frontend multi-OS off-line autonomous software.

Anonymous user

5 years ago

Hi. Is it possible for you to add a library ? I am keen to use this with the ShieldBot v1.2 made by Seeedstudio. It uses an Arduino at the core of the project. http://wiki.seeedstudio.com/Shield_Bot_V1.2/ Library is at the bottom of the page. Regards

scanet

2 years ago

Hi, sorry for not answering, I do not come regularly on this website and you should post on the forum (http://blockly.technologiescollege.fr/forum/) for answers. The shieldbot is great! I like it,do you still need adding it? I'm working on another project but if you send me an email to confirm you need it I'll go on it first. Regards.

Anonymous user

6 years ago

Hi is it possible to customize the UI and add new libraries?

Anonymous user

2 years ago

Exactly what software do you use to modify? and only for offline or also online? have you seen LOFI blocks how they did?

Anonymous user

2 years ago

HI Scanet thanks a lot it looks very usefull i am just new into this creating block programming software so i just wanna know the basics to start creating something, i see there is a little of mblock which i use now, do you have experience with the new scratch 3 or why you end up using blockly?

Anonymous user

2 years ago

I am trying to create a block programming for Otto now e have mblock and scratch extension but since is not under our control is difficult to fix bugs, let's work together that would be great!

scanet

2 years ago

I started on Blockly because mBlock was upon Scratch2, and all the Flash problems, difficult source code to understand to newbies, etc. I started it many years ago. Now Scratch3 is also based on Blockly, so it's the right choice! Very easy to modify.

scanet

2 years ago

I created a wiki (not very updated...sorry, too much work): http://www.libreduc.cc/wiki/doku.php/en/blockly_rduino/create_blocks Maybe you could start by copying an existing block, similar to what you want, and trying to create something with wiki's help. If you need help, you could also post on forum: http://blockly.technologiescollege.fr/forum

scanet

2 years ago

It's just text file in javascript, so only Notepad++. Offline or online are the same. LOFI is very cool, long time unseen...

scanet

2 years ago

Yes of course, you just have to fork it. Or do you specific idea I could help you to realise ? Maybe we could work together on it, we are a few people trying to enhance it.

Anonymous user

8 years ago

Very Well, the code is great. For my example this night: int i; int BREATH_DELAY; void setup() { pinMode(3, OUTPUT); } void loop() { i = 0; BREATH_DELAY = 5; for (i = 0; i <= 255; i=i+1) { analogWrite(3, i); delay(NaN); } delay(100); for (i = 254; i >= 0; i=i--1) { analogWrite(3, i); delay(NaN); } delay(500); } I think, we will can to rename the name of pin, because that's most easy to use SensorTemp or SwitchLight than A0 or D5.

Anonymous user

2 years ago

Just a problem with the block delay in ms (). A variable on it make an error delay(NaN);

Anonymous user

2 years ago

it's impossible to initialize a variable without to use setup().

scanet

2 years ago

Sorry, I received no alert about your questions...hope I still can help. In Arduino category, you have a "define" block that can help.

Anonymous user

8 years ago

Your project is very well. I try to make a translate between code Arduino and blocky for my students but when i try to translate this code: void setup() { // Configure the LED's pin for output signals. pinMode(pinLed, OUTPUT); } void loop() { for(int i=0; i<256; i++) { analogWrite(pinLed, i); delay(BREATH_DELAY); } delay(100); for(int i=254; i>=0; i--) { analogWrite(pinLed, i); delay(BREATH_DELAY); } delay(500); } it's impossible because the block PWM can to use only a number and not a variable for example. i have the same problem with the block DELAY.

Anonymous user

2 years ago

i found. thanks

scanet

2 years ago

In Arduino category you have a 'setup' block, initialize variable inside. Blockly create code by reading from top to bottom, so put 'setup' block upper than the loop code.

scanet

2 years ago

It's possible, it's just a problem of definition. In Arduino category there's a "definition" block to put variable, and then you can use them. I could add a screen capture if I knew how to do it... Hope it help.

Anonymous user

8 years ago

Do you have a linux version please

scanet

2 years ago

It's a web app, so it works fine on Firefox.

scanet

8 years ago

Always improving this project, I need help for specific function in JS. But also I need help to make it usable in a frontend multi-OS off-line autonomous software.

scanet

5 Followers

3 Projects

+1

Work attribution

150

40