MOTOR SPEED CONTROL USING MOSFET/BJT & POT

Photo of author

By Jackson Taylor

void setup()
{
    pinMode(11, OUTPUT);
}
void loop()
{
    int a=analogRead(A0)/4;
    analogWrite(11, a);
}
See also
BASIC SNUBBER DESIGN FOR MOSFET / IGBT / SCR / TRIAC

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works