Lab-Analog Input
After setting up all wires, resistors, and LED, I connected the arduino to Laptop.
However, There was a problem showed on the screen said”USB device is drawing too much power.” Then I checked all stuffs on the board and arduino, but there was nothing wrong. Finally I found the wire connected to potentiometer was not fixed, therefore it came out too much current.
After solving the problem, we can control the apparent brightness of the LED. Because there is a voltage divider inside of potentiometer, so we can get different voltage by switching potentiometer. And there was a wire connected the middle feet of potentiometer with Analog input pin 3 on the Arduino, so we can also see the number changing from 0 to 1023 on the serial monitor.