| ??? 03/13/07 14:57 Read: times |
#134857 - trigger on input capture Responding to: ???'s previous message |
Since it triggers at my input capture, i will know at what count it triggers due to the CCU. A simple calculation will tell me how many counts i will get at each triggering just comparing between previous value and new value (taking into account overflow).
So if it triggers every 10ms, i will know i have 10ms/(time it takes for 1 count) and so forth. To maintain my speed, i would need 50000 count. If its less than that, it would mean the motor has been moving faster than my intended speed etc.. When i increment/decrement it by 1, the motor seems to not run smoothly. You can tell its going too fast then too slow vice versa something like a resolution problem. In addition, i would like to use it for multiple loads, so setting +-1 will not be very helpful. Maybe i suppose there is no optimum number/formula that would work for all types of load? |
| Topic | Author | Date |
| Ideas on PID motor | 01/01/70 00:00 | |
| clarify | 01/01/70 00:00 | |
| trigger on input capture | 01/01/70 00:00 | |
| p-I-d | 01/01/70 00:00 | |
| do you mean | 01/01/70 00:00 | |
It's a control theory thing ... | 01/01/70 00:00 | |
| sounds like noise to me | 01/01/70 00:00 | |
| capturing PWM waveform | 01/01/70 00:00 | |
| what is that PWM generated by???? | 01/01/70 00:00 | |
| by motor hall sensors | 01/01/70 00:00 | |
| put a scope on the hall sensor input, is it "spark | 01/01/70 00:00 | |
| looks clean, a little spark i suppose | 01/01/70 00:00 | |
| that depends | 01/01/70 00:00 |



