Author |
Message |
Topic: QEI Velocity measurement with 18F4431 |
psicko275
Replies: 9
Views: 16619
|
Forum: General CCS C Discussion Posted: Mon Apr 15, 2013 12:19 pm Subject: QEI Velocity measurement with 18F4431 |
why not see the code in the other thread ???
and go from there ??
http://www.ccsinfo.com/forum/viewtopic.php?t=43199
Yes in this page I write but anyone answer me my doubt.
thanks! |
Topic: Measuring speed with QEI |
psicko275
Replies: 15
Views: 30170
|
Forum: General CCS C Discussion Posted: Thu Apr 11, 2013 1:57 pm Subject: Measuring speed with QEI |
I see the speed register, what more we try ?
Is not my project, so how will I know ??
BUT -- if it was my project, i would begin to build up and test my FP math
on the register data you are ... |
Topic: QEI Velocity measurement with 18F4431 |
psicko275
Replies: 9
Views: 16619
|
Forum: General CCS C Discussion Posted: Thu Apr 11, 2013 6:39 am Subject: QEI Velocity measurement with 18F4431 |
Anyone?  |
Topic: Measuring speed with QEI |
psicko275
Replies: 15
Views: 30170
|
Forum: General CCS C Discussion Posted: Thu Apr 11, 2013 6:38 am Subject: Measuring speed with QEI |
KISS my friend
can you receive serial and run on your system
what do you see now ???
I tried the code and resolved errors and I see the speed register, what more we try ? |
Topic: Measuring speed with QEI |
psicko275
Replies: 15
Views: 30170
|
Forum: General CCS C Discussion Posted: Fri Apr 05, 2013 8:52 am Subject: Measuring speed with QEI |
I done this:
int16 ad=0, count=0, count_copy=0;
int16 ENCODER_PPR = 1200;
float RPM_CONSTANT_QEI = 0;
#int_IC1
/*
Velocity capture interrupt
*/
void IC1_isr()
{
... |
Topic: Measuring speed with QEI |
psicko275
Replies: 15
Views: 30170
|
Forum: General CCS C Discussion Posted: Fri Apr 05, 2013 8:13 am Subject: Measuring speed with QEI |
I try to return RPM, correct in this moment I'm not intersted in the direction, only speed.
the speed 0-100 RPM and I try to convert with this equation:
RPM=( (Operating Frequency/4) / (PPR x ... |
Topic: Measuring speed with QEI |
psicko275
Replies: 15
Views: 30170
|
Forum: General CCS C Discussion Posted: Fri Apr 05, 2013 7:22 am Subject: Measuring speed with QEI |
what is "IT" ??
I have a DC motor with encoder of 1200 PPR in specific, this: http://www.pololu.com/catalog/product/1442
has this actually been built, or are we discussing a simulatio ... |
Topic: Measuring speed with QEI |
psicko275
Replies: 15
Views: 30170
|
Forum: General CCS C Discussion Posted: Thu Apr 04, 2013 3:38 pm Subject: Measuring speed with QEI |
There are several other problems without looking at the code too closely.
1. The input to the timer 5 prescaler is Fosc/4 not Fosc.
2. T5 will overflow at low speeds. Define the minimum rotatio ... |
Topic: QEI Velocity measurement with 18F4431 |
psicko275
Replies: 9
Views: 16619
|
Forum: General CCS C Discussion Posted: Thu Apr 04, 2013 3:28 pm Subject: QEI Velocity measurement with 18F4431 |
thanks for help me!
honestly have never used it to determine speed.
have only used it to count encoder clicks and direction with user quad digital "pot".
I'm waiting for more answers! |
Topic: QEI Velocity measurement with 18F4431 |
psicko275
Replies: 9
Views: 16619
|
Forum: General CCS C Discussion Posted: Thu Apr 04, 2013 7:07 am Subject: QEI Velocity measurement with 18F4431 |
Thanks for the FP advice asmboy.
You know how to use the function to get the correct speed?
qei_get_count(QEI_GET_VELOCITY_COUNT); |
Topic: QEI Velocity measurement with 18F4431 |
psicko275
Replies: 9
Views: 16619
|
Forum: General CCS C Discussion Posted: Tue Apr 02, 2013 1:59 pm Subject: QEI Velocity measurement with 18F4431 |
thanks for answer me.
what "works" ????
you never call the result of your QEI function in MAIN after setup
all i see is a program that flashes a led so often it looks like its always on. ... |
Topic: QEI Velocity measurement with 18F4431 |
psicko275
Replies: 9
Views: 16619
|
Forum: General CCS C Discussion Posted: Tue Apr 02, 2013 10:49 am Subject: QEI Velocity measurement with 18F4431 |
Hi I am new in the forum, thanks for read this post!
I'm working with PIC18F4431 to read the velocity of CD motors with a encoder of 1200 PPR (Pulses per Revolution), I have read the NOTE: AN899 Br ... |
|