CCP2 in PWM mode, motor not turn

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

CCP2 in PWM mode, motor not turn

Postby aswad » Sat May 25, 2013 11:49 pm

hello all,
i would like to asking
i have a problem in my project, which motor 2 sometimes not turn as motor 1,even same value to compare with PR register. motor 2 is from CCP2/RC1. Anyone?
aswad
Novice
 
Posts: 23
Joined: Sun Apr 08, 2012 10:30 am

Re: CCP2 in PWM mode, motor not turn

Postby robosang » Mon May 27, 2013 10:48 am

how is the result ? not turn at all? How is the code? How is the wiring? There are many possibilities. :lol:
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: CCP2 in PWM mode, motor not turn

Postby aswad » Wed May 29, 2013 12:19 am

ohh,
i try measure the voltage that come out from RC1 and RC2, which ccp1 and ccp2
its ok in program 255, so the output came out is 5 volt, its ok, why motor 2 not turn, i use l298d
aswad
Novice
 
Posts: 23
Joined: Sun Apr 08, 2012 10:30 am

Re: CCP2 in PWM mode, motor not turn

Postby shahrul » Wed May 29, 2013 6:21 pm

Atleast show your schematic and code. We don't know where motor 1, motor 2.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: CCP2 in PWM mode, motor not turn

Postby robosang » Wed May 29, 2013 8:42 pm

Told you :lol:
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 43 guests