How & Why

The stupid but interesting questions asked by students and teachers who learn at Vidyasagar Academy. The curiosities are endless, but we pick them up and give detailed explanation in this series.

How analog pin works & how PWM signal is obtained in Arduino UNO/Nano?

How analog pin works & how PWM signal is obtained in Arduino UNO/Nano?

In new type of Arduino boards with the ATMeaga168 chip, the pins 3, 5, 6, 9, 10, and 11 work as PWM pins. Older Arduino board with an ATMega8 chip has only pins 9, 10, and 11 as PWM pins. The value can be specified as a variable or constant with a value from 0-255.
Read MoreHow analog pin works & how PWM signal is obtained in Arduino UNO/Nano?