Oxocard support for WebTigerPython
Description #
My bachelor’s thesis, written with the ABZ group at ETH Zürich.
WebTigerPython is a browser-based Python environment used in schools. The Oxocard is a small microcontroller with a display and sensors, designed for teaching. Bringing the two together means a student can write Python in the browser and watch it run on hardware in front of them.
The hard part is that a browser tab cannot talk to a USB device the way a desktop IDE does. The integration routes code and results over MQTT instead: the browser IDE and the Oxocard talk to each other through a self-devised remote procedure call protocol, so a program can be run on the card without redeploying it every time. The front-end work (editor integration, device pairing, live output) was built in Vue.js and TypeScript alongside the existing platform.
The bulk of the work was getting all the moving parts to cooperate: the card, the JavaScript runtime, the Python runtime simulated inside it and the UI all had to behave in unison, and correctly.