R
René
- Jan 1, 1970
- 0
Another question for the distinguished forum:
I need to control two hobby servo motors (0.8-2.2 ms drive, 20 ms
cycle) while reading serial input (TTL RS232) and sending other serial
data.
The Servo signals need a resolution of 256 steps over the 0.8 - 2.2 ms
range, and no interrupt or such should interfere with the PWM output
(unless PWM value is changed).
It seems to me that a Mega 8 should work here (16 bit timer
resolution, 2 output compares; UART, send serial data can be performed
in the "leftover" time in the 20 ms cycle)
....but it would not surprise me at all if a much better solution
exists.
application: 2 servos to pan / tilt a camera, output serial data to
control a CCD camera zoom lens. Incoming data format is different from
the data we need to sent to the camera.
The in / out serial data is proprietary, so "off the shelf" solutions
do not exist - we have to do the decoding ourselves.
Opinions welcome! Again thanks in advance!
I need to control two hobby servo motors (0.8-2.2 ms drive, 20 ms
cycle) while reading serial input (TTL RS232) and sending other serial
data.
The Servo signals need a resolution of 256 steps over the 0.8 - 2.2 ms
range, and no interrupt or such should interfere with the PWM output
(unless PWM value is changed).
It seems to me that a Mega 8 should work here (16 bit timer
resolution, 2 output compares; UART, send serial data can be performed
in the "leftover" time in the 20 ms cycle)
....but it would not surprise me at all if a much better solution
exists.
application: 2 servos to pan / tilt a camera, output serial data to
control a CCD camera zoom lens. Incoming data format is different from
the data we need to sent to the camera.
The in / out serial data is proprietary, so "off the shelf" solutions
do not exist - we have to do the decoding ourselves.
Opinions welcome! Again thanks in advance!