How do you plan to solve it?
/*Paste your code here*/ int potPin = A0; int ledPin = 5; // PWM pin void setup() {} void loop() { int value = analogRead(potPin); // 0–1023 int pwm = value/4; // convert to PWM range analogWrite(ledPin, pwm);
Add video of output (know more)
Add a photo of your hardware showing the output.
Submit Your Solution