So, are you saying that it works now? No more "ticks" or "jumps", always smooth? What was the actual problem?
So, are you saying that it works now? No more "ticks" or "jumps", always smooth? What was the actual problem?
To complicate calculation of position what I was make - no need for that!
I was buy "Running small motors with Pic by Harprit Singh Sandhu" in middle time and there is very good examples and sources about 18F4431 ans 16F876 - 877.After reading a couple of day's it was put me in righ direction.
That complicate calc of position was make big big proposition in interrupt and Pic was do error's .....
I must work more on that program but now it work pretty good.
Now I want remove part of reding key on RA1 and put a couple more interrupt's. One for RS232 , one for ADC reading and one for dir/step.
The best regards to all and you Henrik special.
Any suggest are welcome
/Robert
Here is youtube video what I was upload
Motor move in pid control loop commanded by 16F877 which is central CPU for future Baloon printing machin which soon finished.
Machin move 8 baloon in cyrcle and print two color in same time on two printing platform controled with pneumatic via valves...etc.
On video motor only move at small distance on my desk but it was tested real and work very good.
My next project will be real PID controller to work with MACH3 software.
Thanks Henrik for PID and Darrel for DT instant interrupt and to all here.
/Robert
Sorry comment is in my language - Serbian.
Regards to all
/Robert
Bookmarks