its mainly the idea's I'm experimenting with at this stage . this one is to increment the setpoint not at the pid update rate but a rate that suits the acceleration / velocity . in the example that...
I'm definitely no expert either, hence this thread ;-)
I'm not sure I follow your reasoning though. Where should I change acceleration to 1 (-1 actually), at step 38?
If I do that the...
Right, but that's not what the OP suggested. FWIW, Fig 3 in the PDF suggests some simple ways of protecting the input pin, including your method.
It's simple enough to protect the device with a series resistor and clamp diodes to limit the excursion to the rails give or take a diode drop. You only need to protect the receive, of course.
If you are, as in your example, between tick 38 and 39, you are almost on target position.
Why not change acceleration to 1 count/tick/tick sinc the drop in speed will not be noticed and you will...
Slow down, I can't keep up at the moment! ;-)
The PID routine works with the error between the desired motor position and the actual motor position, the error magnitude it's able to...
please this drive me crazy , tried 16f84a & 18f2550 , no success at all, tried many examples , even in the installation of pbp folder all not working .
henrik how does this look ?
can the pid routine take byte sized increments
I'm glad that I could help.
Also keep in mind that when you enter bootloader your registers are not in reset state. So I always disable interrupt and timers in bootloader.
I did the whole process EXACTLY as you described.
The things I've missed was to disable the interrupt before go to the bootloader.
Probably, the reason why I did not disabled it, is...