There are many posts about this I know. I have a circuit that works, but is unreliable. I have a Tiny circuit that I use for many projects with outputs and a status LED. I have set up Timer/Counter 0 in PWM mode, and the output of this circuit drives the mosfet as per the diagram. The PWM is used to slow the motor (obviously). Whenever the motor is turned on and off the status LED goes on and off.
The control program is turning on the motor for a few seconds, then turning it off for a few seconds, repeatedly. Sometimes the motor does not turn off, but the status LED goes off, indicating that the program has done it's bit. Why might the motor sometimes stay on. It speeds up instead, indicating that it is not being controlled by the PWM. I am happiest in digital environment, so motors and mosfets don't have to try hard to confuse me.
Any help is appreciated.
The control program is turning on the motor for a few seconds, then turning it off for a few seconds, repeatedly. Sometimes the motor does not turn off, but the status LED goes off, indicating that the program has done it's bit. Why might the motor sometimes stay on. It speeds up instead, indicating that it is not being controlled by the PWM. I am happiest in digital environment, so motors and mosfets don't have to try hard to confuse me.
Any help is appreciated.
Attachments
-
2.4 KB Views: 100
-
380 bytes Views: 18
-
1.5 KB Views: 23