Skip to content

selfsimilar/BlocklyDuino

 
 

Repository files navigation

Welcome to BlocklyDuino

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.

We also have Google+ Page.

Features

  • Programming Arduino with visually drag and drop code blocks
  • Generate fully compatible Arduino source code
  • Interactive Arduino board with 10+ predefined Grove sensor blocks
  • Load different on-site examples with url parameters

Demo

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 demo

Run locally on your web browser

Run the build.sh script in the root directory to compile the app to the build directory. This requires running some python scripts with at least one library dependency that must be installed separately (lxml). It's recommended to use virtualenv to install and run this script, though you can also install lxml globally.

The directory build is the full app. You can open build/index.html directly in your browser or host it yourself on your own website.

Integrated Arduino upload

To avoid the tedious step of manually pasting code to the Arduino IDE, you can run a mini webserver that uses ino to upload the code to a connected Arduino board on Mac OS X and Linux systems. Invoke this command from the BlocklyDuino root folder:

python ino_web_server.py

Usage

  1. Open browser to BlocklyDuino, drag and drop blocks to make an Arduino program
  2. Select the 'Arduino' tab and copy all of the source code into an existing or new project in the Arduino IDE
  3. Press the 'Upload' button in the Arduino IDE to burn the code into a connected Arduino board

OR (if running ino_web_server.py):

  1. Open browser to BlocklyDuino, drag and drop blocks to make an Arduino program.
  2. Select the 'Arduino' tab and press the 'Upload' button. (press the 'Reset' button to upload an empty program)

ChangeLog

Check changelog here

Authors and Contributors

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

License

Copyright (C) 2012~2015 Fred Lin [email protected]

  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at
  • http://www.apache.org/licenses/LICENSE-2.0

About

BlocklyDuino is a web-based visual programming editor for arduino.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.8%
  • Python 4.1%
  • HTML 2.7%
  • Other 0.4%