To use with me 16F684 micro controller, I constructed a motor driver (simple) following this tutorial:
http://www.diylive.net/index.php/2005/12/13/diy-line-following-robot2/
(I used the NPN transistor that I had at home, tried a few different ones btw, and the resistor values were changed because I did not have certain values)
Now the motor I got out of an old hand held fan toy, so it is fairly small. So when I powered the micro controller, it seems that my simple motor code (make the pin with the motor HIGH for 10 seconds, then LOW while another pin was HIGH) works. But as I let it run for a bit more time, it seemed that the seconds were not being timed properly. It seemed, that the motor would turn on for 3-4 seconds, then turn off, while the other pin would be on for much longer.
I do not know why this is happening, but I fear that I am damaging the PIC, and was hoping to fix this. Any ideas what is happening?
Thanks,
Omar
http://www.diylive.net/index.php/2005/12/13/diy-line-following-robot2/
(I used the NPN transistor that I had at home, tried a few different ones btw, and the resistor values were changed because I did not have certain values)
Now the motor I got out of an old hand held fan toy, so it is fairly small. So when I powered the micro controller, it seems that my simple motor code (make the pin with the motor HIGH for 10 seconds, then LOW while another pin was HIGH) works. But as I let it run for a bit more time, it seemed that the seconds were not being timed properly. It seemed, that the motor would turn on for 3-4 seconds, then turn off, while the other pin would be on for much longer.
I do not know why this is happening, but I fear that I am damaging the PIC, and was hoping to fix this. Any ideas what is happening?
Thanks,
Omar