??? 12/16/05 14:06 Read: times |
#105362 - it's working now :-) Responding to: ???'s previous message |
I have 3 pot. One for the speed, one for the deceleration rate and one for the acceleration rate.
If the pot for the acceleration rate is set to max (ie. ADC register is 0xFF, then I will get the required speed “directly”. If it is set to a minimum (in my case 0x26), then I will need 10 seconds to get the required speed. As you told me to do, I am using an integrator function. The fact that I am now working on a 16-bit resolution is much better for the stability cause a small change at the speed control pot, won’t have an effect on the PWM duty cycle. It’s maybe a little bit more complicated that way for the coding, but that way I don’t have to deal with fractions. Anyway the new LPC938 has a 10-bit ADC, so I guess that I am going to redo the code with a 10-bit PWM. In addition, I added some interval. So the routines are called only when there is a significant change of speed. So with all that it’s working perfectly, and it’s very stable. well I am new to the Netherlands so I don't really know the area, but compared to LA or even Melbourne it's of course very cold |
Topic | Author | Date |
Acceleration rate | 01/01/70 00:00 | |
Possible suggestion. | 01/01/70 00:00 | |
numbers | 01/01/70 00:00 | |
Another Suggestion | 01/01/70 00:00 | |
re hysteresis aka "dead zone" | 01/01/70 00:00 | |
Hysteresis vs Dead Zone | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
Are you sure? | 01/01/70 00:00 | |
you are right | 01/01/70 00:00 | |
I'm confused! | 01/01/70 00:00 | |
it's working now :-)![]() | 01/01/70 00:00 |