Control Virtual Lamp
I used Arduino inputs to control the switch and intensity of a virtual lamp on the browser. Check out the DEMO below. Source code in Github.
Since I only have potentiometer and pushbuttons in my bin, I decided to make a virtual lamp that was tangibly controlled. So the diagram is the same as that of what Tom showed in the class.
Please install Arduino_JSON library before use. I sent data to the computer when either the button or the potentiometer changed its value.