This is an easy tutorial showing how you can control the brightness of an LED or adjust the speed of a DC fan using Arduino Board, a small BC547 transistor and a potentiometer. In my example the whole ...
#define redPin 9 // Pin for the red RGB led pin #define greenPin 10 // Pin for the green RGB led pin #define bluePin 11 // Pin for the blue RGB led pin #define potPin_red A2 // declare pin for the ...
This Arduino sketch monitors the voltage output from a potentiometer connected to analog pin A0. It displays the voltage reading on the serial monitor and controls two LEDs based on the voltage level.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results