Hi Randy,
I am glad you like the icons.
For now this is only a useless demo, a proof of concept, but my idea is similar to yours.
For now you can put the blocks together but they are not saved anywhere or sent to anywhere :(
My idea was
- create a program in Blockly,
- send to Arduino either
(1) the individual commands or
(2) the complete program
- Then in Arduino
(1) execute the individual commands or
(2) run the program autonomously.
At first I thought of using Bluetooth because modules for Arduino are cheap (4$). But it is not straightforward to send messages using Bluetooth in Blockly (javascript in a browser usually doesn't hasBluetooth access).
Wifi is a much better option. I thought that Wifi shields were much more expensive than Bluetooth (around 20$), But today I have seen Wifi modules based on ESP8266 that cost 2$ and also there is
NodeMCU that is something similar to a small Arduino with Wifi and costs around 5$! Moreover NodeMCU comes with a Lua interpreter, so you can write scripts and execute them without compiling anything in the IDE.
I don't have any NodeMCU, but it seems very promising. I would like to:
- Program in Lua using Blockly
- Send the program or the individual commands to NodeMCU
In fact maybe someone has already done something similar. Searching for Blockly, NodeMCU and Lua I found this post
http://www.esp8266.com/viewtopic.php?f=22&t=2345 (there is a link to a video and a Github project that includes Blockly to program a NodeMCU in Lua).
It seems that you need to connect a serial cable to NodeMCU in order to program it. I think that it would be better to upload the program using the Wifi interface, but I don't know if that is possible.
Octavi