Chat freely about anything...

User avatar
By gandolfi
#62227 hi,

For eductional use. I want to command an ESP8266 with Scratch or NODE-RED. The student command LED, Motor, SERVO....
I know It's possible with WFDUINO. (I don't know if there is better program) But i need to command the ESP8266 wireless (wifi or bluetooth).

But Wfduino use USB cable to comunicate beetwen Scratch an ESP8266.

Do you know an issue ?

thanks
User avatar
By murraylang
#62309 Hi,

This is certainly possible. I have successfully programmed a robotics bytecode interpreter on an ESP8266 over http from a browser. The user interface was Google Blockly, but this generated Logo, which was compiled (into a VM assembly language then assembled) using JavaScript, to bytecodes in JSON. This json was POSTed to the 8266 web server. Since the toolchain is JavaScript it sould be able to integrate with Scratch, and it has always been in the back of my mind to do just that.

That was over a year ago, and my focus moved to other platforms including more recently the ESP32. I am currently working on getting my newer code working on the 8266 again, but am having some issues with memory usage with the newer SDK. Hopefully that will be sorted, but in the worst case I might have to regress back to the old SDK I used way back.

So, if you don't find some other solution then watch this space. In the meantime does it have to be an ESP8266? You have the robot built? If not then the ESP32 might be a better option. Not quite as cheap as the 8266 but still very reasonable. Much more I/O to play with. Would a Blockly programming environment do, or have you already invested in Scratch. Scratch is on my list, but the VM and Blockly are my priority at the moment.

If you are interested then we can converse off list. So much is happening in this field at the moment and you will probably find another solution anyway.

Regards,
Murray
User avatar
By murraylang
#62420 Reading my reply again, it was quite unhelpful -sorry.

I am furiously trying to get my ESP8266 code working again after a couple of years of reorganisation on other platforms, and I will reply to this thread with my github repository when there is something usable. Hopefully in a few days. If you find it potentially useful, then I am happy to work with you in getting the JavaScript side integrated with Scratch. At any rate, I'm interested to know what tools you settle for.

Murray