![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| is it possible to make the servo motor move precise angles besides 90,0 and 180 by using pwm signal width in between the waveforms of full right/left and the neutral position? | |
| |
| | (permalink) |
| servo has 150-75 = 75 different positions to be. you dont have to send it 150 or 75 you can also send 127.
__________________ Need Help? Press F1 If that doesn\'t help you, ask me... I might know better. | |
| |
| | (permalink) |
| A servo is an analogue device, it can be set to anywhere within it's operating range (and it usually goes a little way outside it's range as well). | |
| |
| | (permalink) | |
| Quote:
A normal servo has a 1-2ms pulse interval repeated every 20ms(more or less.) The midpoint is at 1.5 ms. If you make use of a microcontroller and its timer to generate a clock pulse every 4 us, you could make a counter with 255 divisions / steps between 1 and 2 ms. This would give you complete control of the position of the servo. In fact it's more than complete because the servo does not recognise all steps due to the mechanical lag. 127 pulses is more than enough, so if you increase the input clock period to 8 us, you could use a value from 128 to 255 for the variable pulse. This is about 1 to 2 ms pulse width interval. This is then repeated every 20 ms. Hope I made some sense TOK | ||
| |
| | (permalink) |
| Trying to make it a little more clear, like they said, it's an analogue device. Theoreticly you can have inifinite number of steps between far laft turn and far right turn. The resolution is limited by the mechanical servo itself, and most hobby servos, there's no real point going beyond 127 step resolution.
__________________ Mark Higgins | |
| |
| | (permalink) |
| nigel, is your tutorial "Using the PWM hardware" meant to be a tutorial for controlling a servomotor? | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
I would be inclined to test the resolution of your servos if you need precise control?, there are plenty of servo tester designs around using one or two 555's. | ||
| |
| | (permalink) |
| Then the quality of the model servos will be a factor in how precise you can control them and how accurate you can assume the angle is that you've set. You can get some very good results from digital servos (same as regular hobby servos, they just have better control built in) Hobby servos have their own control electronics. If you want the most accurate you can pull out the electronic guts of the hobby servo and create your own controller. This would give you better control, and actual feedback regarding current positioning by reading the pot directly.
__________________ Mark Higgins | |
| |
| | (permalink) |
| what is the best and cheapest choice of microcontrollers to use if I have 4 servos to control by interfacing the PIC to a pc?do you know any good tutorial about the microcontrollers? | |
| |
| | (permalink) | |
| Quote:
And continues there : http://www.piclist.com
__________________ Time is nature\'s way of keeping everything from happening at once. http://membres.lycos.fr/jrainville/ | ||
| |