Turn a knob to dim a bedside lamp: read a potentiometer with analogRead and set the brightness with PWM on a 3D workbench. This workbench needs JavaScript.