Wingmax
New Member
nelson_kh said:yaya i use RC2 wrong type last time!!! but the motor still not turning! Y? i use PIC simulate to test and see the RC2 some time on sometime off!! how come.... it should keep 'on' to turn the motor!!
Is there any way you can monitor the output on RC2, eg oscilloscope? The output on RC2 should not be on all the time. It's pulses. So what you saw on PIC simulator may be what you suppose to see.
I think your seting is 2 Khz, 50% duty cycle pulses?
If you can confirm (with oscilloscope may be) there are pulses with 500uS period ( 2 Khz), 250uS on and 250uS off (50 % duty cycle) on RC2. then you know your program is working.
May be your setup on the motor driver is incorrect? May be the motor draws too much current? You have to isolate which part is not working.
Hope this helps.