Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Beginner

73 views
Skip to first unread message

Yen

unread,
Apr 8, 2025, 1:36:35 PMApr 8
to Blockly
Hi, I want to make a project with blocky to control a robotic arm. I'm using an arduino nano to control the arm but i don't know how to adapt or programming using blocky because arduino uses C but i saw that blocky uses python, javascript. So I'm really confusing and I don't know where to start. Have some idea?

Maribeth Moffatt

unread,
Apr 8, 2025, 5:36:59 PMApr 8
to Blockly
Hello,

Do you want to use blocks yourself to control a robotic arm? Or do you want to make a program to let users use blocks to control a robotic arm?

Blockly is a library for developers to make block-based programming applications. If you just want to use blocks yourself, you will need to find an application that has been built with Blockly. Here is one example for arduino (the Blockly team is not affiliated with this project) https://github.com/technologiescollege/Blockly-at-rduino Unfortunately in this forum we cannot provide support for using these programs, as we do not maintain them.

---

If you want to make a program with custom blocks that can control a robotic arm, then the following may be helpful for getting started.

Blockly is a JavaScript library. All of the code you write to use the Blockly library to create a custom block editor, create custom blocks, etc. will need to be in JavaScript (or TypeScript).

You can create custom blocks that output any language of your choosing, such as Python, C, or your own made up domain language. You do this by writing code generators that turn your blocks into string-based code. Blockly ships with some default blocks that can be converted to JavaScript, Python, and a number of other languages. We do not have a built-in generator for C, so you would have to write code generators for your custom blocks and for any of the built-in blocks you wish to use. These code generators are written in JavaScript as well, regardless of which language they are generating.

To get started, see our documentation or getting started codelab. You do need some basic familiarity with JavaScript.

Best,
Maribeth

Yen

unread,
Apr 9, 2025, 11:38:47 AMApr 9
to Blockly
Hi Maribeth

Yes, I want to make a program to let users use blocks to control a robotic arm. I'm going to follow your recomendations, if i have any issue i would tell you
Thanks
Reply all
Reply to author
Forward
0 new messages