Potentiometer and PWM on Arduino

We get a value from 0 to 1023 from analog pin A0 and convert from 0 to 255, send it to PWM pin 3.

Open example program: Online ArduBlock



Video tutorial: