Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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: 59
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top