![]() | ![]() | ![]() |
| |||||||
| Robotics Chat Specific to discussions about robots and the making of. |
![]() |
| | Tools |
| | #1 |
|
I intend to control an RC servo using a signal repeating every 4 ms instead of the usually advised 20 msec. The variation of width will be as required between 1 and 2 ms. No changes here, of course. Should I expect any problem or is it OK? Any reply appreciated.
__________________ Agustín Tomás In theory, there is no difference between theory and practice. In practice, however, there is. | |
| |
| | #2 |
|
It's only the MARK that sets the servo position, the SPACE doesn't seem to matter?. But usually you're making the SPACE longer, not shorter, but I see no reason why it won't work - but I should test it first!. Why are you wanting to use a shorter SPACE anyway?. | |
| |
| | #3 |
|
Using a 16F628 with 4 MHz clock I couldn't find a way to get the usual 1 to 2 ms every 20 ms but only every 4 ms :!: The values I've got yesterday were, for 10 bits to be writen to CC1PRL and CCP1CON b5:b4 : 250 for 1 ms 375 for 1,5 ms 500 for 2 ms. For the period, I get: prescaler : 16 PR2 : 255 giving 244 Hz, that is: 4 ms (app) period.
__________________ Agustín Tomás In theory, there is no difference between theory and practice. In practice, however, there is. | |
| |
| | #4 |
|
Doing some research on Google would be a good thing. http://www.google.ca/search?hl=en&q=...G=Search&meta= By using two timers, one for the 'high' and one for the 'low', you can achieve pretty good timing. | |
| |
| | #5 |
|
running a servo at 250 hz is pushing it a bit - some servos will work at that high of a speed, others won't. Try it - and if it works monitor the temperature of the servo - if it's getting really hot then, obviously, you have a problem. Most servos will work up to around 200hz. Some will stop working well before that, unfortunately. I've heard some of the digital ones can go to 400hz - though I don't have any digitals so I am unable to verify this.
| |
| |
| | #6 | |
| Quote:
| ||
| |
| | #7 |
|
Hello all. This is not 100% relevant but I believe it may help a bit. I was working with parallax cont. rotation servo working perfectly with the pulse that it required. However there was another guy in the lab that was using the same motor with totally different timings but the servo worked just fine! The reason why his timings were wrong is because he messed up with the prescaler. However the "duty cyle" (percentage) of the pulse was correct even if the duration was wrong. Now the key to the whole situation is that those servos had a screw which you can use to adjust its stability. I believe this is why his servo also worked. Thanks. | |
| |
|
| Tags |
| servos, work |
| Thread Tools | |
| Display Modes | |
| |