Arduino Tutorial # 17 How to control brightness of LED with Potentiometer.

Arduino Tutorial # 17 How to control brightness of LED with Potentiometer.

Arduino Tutorial # 17 How to control brightness of LED with Potentiometer. Scroll down for code..... Please like & Subscribe for more videos If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you. LIST OF COMPONENT (affiliate links) http://amzn.to/2fvSRJq (Arduino) http://amzn.to/2vYitnO (Potentiometer) http://amzn.to/2wxPmWz (Breadboard) http://amzn.to/2vJ3lvo (Jumper wire) http://amzn.to/2vmSK8l (Resistor) http://amzn.to/2vSpUON (LED) int LED = 11; void setup() { pinMode (LED, OUTPUT); } void loop() { int potentioValue = analogRead(A1); int writevalue = (255.0/1023.0) * potentioValue; analogWrite(LED, writevalue); delay(1); }