Dear users,
What is the best way to control the speed of a DC motor? I've tried to control both a PC fan and a DC motor from a game to be controlled by an Arduino board.
What I did was hook a 12V power source to a TIP122 and use analogWrite on pin 6 (using Arduino NANO) to control the input.
This used to work for a RGB led strip to control its color, but for some reason when I put a lower value than 255 the motor either doesn't run at all or makes a buzzing noise.
I don't know much about electronics and I think I'm totally doing something wrong, but I don't know what.
Hopefully any of you can send me into the right directions
