I would not even know how to design a circuit like that, do you have a link to one?
P. Short wrote:Another possibility is to use analog techniques. Take an output of the WS2811 , low-pass filter it, and use the resulting output voltage to control the width of the servo control pulse. It's not going to be extremely precise, but what the heck.
On first glance I was thinking that servos move via pwm which is the same way leds are dimmed. So you'd only need to deal with the load amplification problem. But on a quick read of a Wikipedia article, it looks like PWM applies differently to servos in that the frequency needs to vary as opposed to the duty cycle.
http://en.m.wikipedia.org/wiki/Servo_control
I don't think the 2811 will give you any control over the pwm frequency. So that probably kills that idea.
On the other hand. You should be able to receive sacn and drive a servo directly with an arduino and ethernet shield. That would put the electronics under $18
--Jon Chuchla--
Sent from my iPhone using Tapatalk
P. Short wrote:Another possibility is to use analog techniques. Take an output of the WS2811 , low-pass filter it, and use the resulting output voltage to control the width of the servo control pulse. It's not going to be extremely precise, but what the heck.
Silly me. Almost any PIC can do this pretty easily, although it would take one baseline or mid-range PIC per PWM output. This could even be something and inexpensive as a PIC12F510, I think. The basic idea is to take the output of a WS2801, use a pullup to +5, and connect the output to the input of a microcontroller. During the 18mS servo dead time (the interval between control pulses to the servo) the micro would compute the duty cycle of the WS2811 output, and use that to determine the width of the servo control pulse. Performing division on a mid-range PIC is quite a long process, but then the processor has a lot of time to perform this calculation. The cost of such a gadget could be pretty minimal, perhaps on the order of $2 + the WS2811 module.
jchuchla wrote:On first glance I was thinking that servos move via pwm which is the same way leds are dimmed. So you'd only need to deal with the load amplification problem. But on a quick read of a Wikipedia article, it looks like PWM applies differently to servos in that the frequency needs to vary as opposed to the duty cycle.
http://en.m.wikipedia.org/wiki/Servo_control
The usual RC hobby-servo IS controlled using PWM, just not the same PWM that is usually used for light control (and not what the WS2811 puts out). Hobby servos typically need a pulse that varies in width from about 1 mS to 2 mS, with a much longer dead time between consecutive pulses. It's the width of the pulse that determines the servo position, with the dead time not mattering (so long as it's not too long nor too short).
P. Short wrote:Silly me. Almost any PIC can do this pretty easily, although it would take one baseline or mid-range PIC per PWM output. This could even be something and inexpensive as a PIC12F510, I think. The basic idea is to take the output of a WS2801, use a pullup to +5, and connect the output to the input of a microcontroller. During the 18mS servo dead time (the interval between control pulses to the servo) the micro would compute the duty cycle of the WS2811 output, and use that to determine the width of the servo control pulse. Performing division on a mid-range PIC is quite a long process, but then the processor has a lot of time to perform this calculation. The cost of such a gadget could be pretty minimal, perhaps on the order of $2 + the WS2811 module.
I actually have some 18F C code I am working on that controls 6+ servos at the same time. I don't use the built in PWM routine as I am utilizing some very tight ASM code I found that takes advantage of the TIMER0. Sadly it does nothing with WS2811, so that is no help, but I wanted to point out that you don't actually need a PWM.
Short and badly typed since written from my phone...
toozie21 wrote:I actually have some 18F code I am working on that controls 6+ servos at the same time. I don't use the built in PWM routine as I am utilizing some very tight ASM code I found that takes advantage of the TIMER0. Sadly it does nothing with WS2811, so that is no help, but I wanted to point out that you don't actually need a PWM.Short and badly typed since written from my phone...
I didn't mean to imply that you needed to use the hardware PWM that is built into some microcontrollers. In any case, I have written similar software-based servo routines up to eight channels, implemented in processors ranging from a PIC12F510/PIC16F506 (at the low end) up tthrough PIC18 parts. It's very easy to do.
OK, sorry. I wanted to make sure it was clear that you can use PICs without PWM if need be. The code I borrowed from the net handles 32 servos I think, but I reworked it for 6 (the 5 I need plus one in the future)
Short and badly typed since written from my phone...
Phil, do you know where I can look for some PIC12F510 code that does what you are talking about? I am oblivious to how to do this... also, are the only electronics involved the WS2811 module and PIC?
P. Short wrote:Silly me. Almost any PIC can do this pretty easily, although it would take one baseline or mid-range PIC per PWM output. This could even be something and inexpensive as a PIC12F510, I think. The basic idea is to take the output of a WS2801, use a pullup to +5, and connect the output to the input of a microcontroller. During the 18mS servo dead time (the interval between control pulses to the servo) the micro would compute the duty cycle of the WS2811 output, and use that to determine the width of the servo control pulse. Performing division on a mid-range PIC is quite a long process, but then the processor has a lot of time to perform this calculation. The cost of such a gadget could be pretty minimal, perhaps on the order of $2 + the WS2811 module.
Jason, how are you sending commands to the PIC in your circuit? I am wanting to use the WS2811 so it acts like a pixel, what is your application?
toozie21 wrote:OK, sorry. I wanted to make sure it was clear that you can use PICs without PWM if need be. The code I borrowed from the net handles 32 servos I think, but I reworked it for 6 (the 5 I need plus one in the future)Short and badly typed since written from my phone...
Measuring the duty cycle (either directly or as a smoothed DC voltage) of an output of the WS2811 chip would be easiest and most reliable I'd say.
Trying to intercept (and pass on) the raw pixel data stream is going to be a major headache.
