hi
What is the difference between Analog pins and digital pwm pins when we use Analog write?
I want to use a DC motor with Arduino.
when DC motor connect to Analog pins my DC motor start in analogwrite(120) suddenly and i can not change DC motor speed.
but
when DC motor connect to Digial pwm pins Dc motor start from analogwrite(2) slowly and i can change DC motor speed.
Motor must be connected to PWM pins. Analog Pin used to measure analog voltage i.e it act as input pin. Pwm Pins Act as OUTPUT Pins which can generate analog voltage to its output...which control the current ...so that we can control intensity of light or speed of motor.
Generally all analog pins can be used as digital pins....but there are two class of digital pin ...as input or output....some digital pins can be used as inputs only. digital output is restricted. datasheet is very useful in this case