Check BlockDuino v2
BlocklyDuino is a web-based visual programming editor for Arduino.
BlocklyDuino is based on Blockly, the web-based, graphical programming editor. Provide static type language blocks and code generators for Arduino programming.
BlocklyDuino also support Grove blocks to easily get started with microcontroller-based experimentation and learning.
BlocklyDuino is a web tool. You can give it a try at Web to see the working BlocklyDuino.
You can link directly to examples
Or watch the video demos
If you want to install it locally. Get code from github and open blockly/apps/blocklyduino/index.html
in your browser.
The preffered way is to put the BlocklyDuino/web
folder into a web server and open the url like localhost/public/blockly/apps/blocklyduino/index.html
for use.
To avoid the tedious step of manually pasting code to the Arduino IDE, you can run a mini webserver that uses the Arduino IDE to upload the code to a connected Arduino board on Windows, Mac OS X and Linux systems. Invoke this command from the BlocklyDuino root folder:
python arduino_web_server.py
You can optionally specify the port with --port=COM3
(or --port=/dev/tty.foo
on Linux and Mac);
if you don’t, it will try and guess which port to use.
When the webserver is running, you can access BlocklyDuino itself on http://127.0.0.1:8080/.
Arduino
tab and copy all of the source code into an existing or new project in the Arduino IDEUpload
button in the Arduino IDE to burn the code into a connected Arduino boardOR (if running arduino_web_server.py
):
Arduino
tab and press the Upload
button. (press the Reset
button to upload an empty program)In GNU/Linux OS (i.e. Ubuntu 18.04x64)
LoadXML
(e.g. /blocky/apps/blockyduino/examples/blink.xml or other in the same path)Upload
and wait until you see Program uploaded ok
and press OK!Ctrl+c
or Ctrl+d
Check changelog here
Fred Lin (@gasolin).
Thanks Neil Fraser, Q.Neutron from Blockly https://developers.google.com/blockly/ Thanks Dale Low (gumbypp) for contribute the python server to pipe BlocklyDuino source to arduino board. Thanks Arduino and Seeeduino guys for Arduino and Grove blocks.
The project is also inspired by arduiblock and modkit
Copyright (C) 2012~2015 Fred Lin gasolin+blockly@gmail.com