What is PWM? PWM is a technique by using we can control the voltage or power. To understand it more simply, if you are applying 5 volt for driving a motor then motor will moving with some speed, now ...
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 ...
We all know that the Microcontrollers work only with digital values but in real world we have to deal with analog signals. That’s why ADC (Analog to Digital Converters) is there to convert real world ...
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.
// the LED has to be connected to PWM digital pin // since LED connected to PWD pin accepts value between 0-255 and potentiometer provides value between 0-1023 we have to divide the value coming from ...