Blockly to generate Arduino code and upload directly from the app

673 views
Skip to first unread message

Siddharth Shorya

unread,
Sep 17, 2023, 7:08:32 PM9/17/23
to Blockly
Hi,

I am building an application that generates arduino code for a remote and car.
I also want to burn code to arduino directly using the website.

Does anyone know any blockly sample repositories that can give me a kick start for my project.

Seb Seb

unread,
Sep 17, 2023, 8:00:38 PM9/17/23
to Blockly
Hello,
I am the creator of Blockly@rduino (https://github.com/technologiescollege/Blockly-at-rduino), Studio4Education (https://github.com/A-S-T-U-C-E/STudio4Education) and I manage BlocklyDuino (https://github.com/BlocklyDuino). Thanks to the original work of Gasolin for the Arduino generator and then Carlos Pereira for the automatic typing for variables, which these programs have. However, these were old versions of Blockly ( <=6.x) and unfortunately I can't update them.
I'm currently trying to recreate a minimal kernel, µcBlockly (https://github.com/A-S-T-U-C-E/ucBlockly), with all the essentials for applications of this kind. Then I'll reboot the others on top of it to enhance the kernel with functions specific to each one, BlocklyDuino for simple beginners and S4E for courses for experienced people.
Any help is welcome !!!

TODO essential list :
- redo the Arduino generator in Typescript
- create a plugin adding automatic typing

Siddharth Shorya

unread,
Sep 18, 2023, 7:06:54 PM9/18/23
to Blockly
How do I directly upload code to Arduino from the app?

Blockly

unread,
Sep 19, 2023, 6:16:26 AM9/19/23
to Blockly
You cannot because your web browser is a security shield to protect you against Internet. So you have to copy paste Arduino code in Arduino IDE and upload it to board.
Or create a plugin to embed BlocklyDuino in Arduino IDE (it would be great!!!!! It exists for Arduino IDE v1.x but not yet for 2.x).

Siddharth Shorya

unread,
Sep 20, 2023, 3:20:32 AM9/20/23
to Blockly
Thanks, for the help
Reply all
Reply to author
Forward
0 new messages