Items used in this project
The purpose is to permit 'Scratch-block' programming for Arduino card, with many features needed for kids in school & newbies.
Everyone knows Scratch and the way it made easy the program learning for every child in the world. I was looking for a software which permits blocks programming and code generating. I found BlocklyDuino but it was left unworked for months. After contacting its creator David Li I decided to create my own fork.
But kids still needed to copy-paste in Arduino IDE before uploading..not very easy for them to understand everything. So I created a plugin for IDE Arduino :
Ok, but I don't know how to program in Java and enhance possibilities, Arduino IDE code source is not well documented for newbies like me...so I stopped for the moment.
Some french teacher worked on enhancing Blockly@rduino too, we decided to use arduino-cli for uploading (https://github.com/arduino/arduino-cli) and JP Fontaine embedded Blockly@rduino in an Electron version with uploading (https://github.com/technologiescollege/BlocklyArduino_electrified).
But I needed a supervision to read sensors values before programming, so I used script from Alan Yorinks great work on Arduino, through FirmataPlus and Pyamata-aio: https://github.com/MrYsLab/pymata-aio.
I packed everything with a C program watching every thread and that's Blockly@rduino All In One:
You launch a program which is on tray only, you can achange option trhough right click on the icon. Theboard auto detection interact with Blockly@rduino throught Electron and allows uploading. But after uploading FirmataPlus in a board, you can also interact and read sensors, test actuators.
Thanks for testing, proposing enhancement, helping, translting, fixing any bug, posting in the forum: http://blockly.technologiescollege.fr/forum/