PIC18f4431 velocity measurment

Status
Not open for further replies.

dmta

Member level 2
Joined
Mar 25, 2013
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Earth
Activity points
1,650
Hi all,

I have managed to measure the position of a DC motor using the QEI. Now I want to measure the speed. This is the code that I have written so far but now I do not know how to continue. Configuring the QEICON register is correct but I do not know about the others. Can someone please help me?



Regards
 

Attachments

  • uploadC.txt
    1.7 KB · Views: 89
Last edited:

Hello there,

You would write a formula for speed calculation.

For example. using timer for a second.. check how many pulses is coming?? like 1sec=200pulses then rpm is 50 and 1 sec=1000pulses then rpm become ((50/200)*1000)=250rpm.

Just try these method it might work.. and revert back me.

Best regards
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…