Interface and Application Programming


#MQTT #Rotary Encoder


Trulli

I tried to utilize MQTT to connect a device(knob) with Rotary Encoder measuring the angle to a website built with p5.js. On the website, there is a simple game: a user can use the device to control the dot on the interface.


First, the angle of the device will directly control the dot's orientation. Second, the speed of weaving the knob will make the dot move ahead. The faster the knob is rotated, the faster the dot moves.


Trulli



GROUP ASSIGNMENT



Nov 23 2022