I'm following this thread closely as I have a few servos. I'm using an Alphapix4 from hollidaycoro.com and can see having a skeleton rising up out of a coffin and other animated things for Halloween and Christmas. I will have a RS-485 (DMX E1.11 / DMX 1990) Output (2811) unused on one of my Alphapix4.
Maybe send "Data" to an Arduino? with a sketch to run a servo?
Looks like this thread is dying.
Anyway, spending a few hours at Barnes and Noble trying to avoid cleaning house before a road-trip, I've come up with firmware for a PIC16HV753/PIC16F753 that takes three 0-100% duty-cycle PWM inputs (like what I think is the output from a WS2811) and converts them to servo-type PWM outputs. It does this by timing the cycle-time and the low-time of the output of a WS2811, scaling the ratio of these numbers to range from 0-255. It then uses that to create pulses that range from 1mS to 2mS, with an 18mS interval between these servo control pulses. This code assumes that the PWM output frequency from the WS2811 is somewhere between perhaps 250 Hz and 1000 Hz (most discussion that I've seen on the internet indicates that it is around 400 Hz).
The firmware did not take long to write, since it was largely based on previous servo projects that I've worked on. It is untested, however, and so I'm not posting it now. I'll leave the next steps up to other people (designing and ordering a PCB, ordering the WS2811 chips, assembling a PCB, and sending one copy to me for firmware debugging). I'll post the code when the board is ready and committed to fabrication.
The pinout required for the PIC on the PCB is as follows:
Pin 1 - +5V (from a 5V regulator if it's a PIC16F753, from a current-limit resistor if it's a PIC16HV753)
Pin 14 - ground
Pin 12 - first channel from the WS2811 (requires a pullup resistor)
Pin 9 - second channel from the WS2811 (requires a pullup resistor)
Pin 8 - third channel from the WS2811 (requires a pullup resistor)
Pin 7 - output to third servo
Pin 6 - output to second servo
Pin 5 - output to first servo
All other pins - need to be connected to test points
The board needs to have an ICSP connector as well if an SMT package is chosen for the PIC.
Nice job Phil! Can you make one of the outputs (Pin 7 for instance) be a 5v+ on or off to turn on and off the laser? How do we keep this moving forward? I have no idea how to design a PCB...
Matt Johnson
johnsonlightshow.com
P. Short wrote:Looks like this thread is dying.Anyway, spending a few hours at Barnes and Noble trying to avoid cleaning house before a road-trip, I've come up with firmware for a PIC16HV753/PIC16F753 that takes three 0-100% duty-cycle PWM inputs (like what I think is the output from a WS2811) and converts them to servo-type PWM outputs. It does this by timing the cycle-time and the low-time of the output of a WS2811, scaling the ratio of these numbers to range from 0-255. It then uses that to create pulses that range from 1mS to 2mS, with an 18mS interval between these servo control pulses. This code assumes that the PWM output frequency from the WS2811 is somewhere between perhaps 250 Hz and 1000 Hz (most discussion that I've seen on the internet indicates that it is around 400 Hz).
The firmware did not take long to write, since it was largely based on previous servo projects that I've worked on. It is untested, however, and so I'm not posting it now. I'll leave the next steps up to other people (designing and ordering a PCB, ordering the WS2811 chips, assembling a PCB, and sending one copy to me for firmware debugging). I'll post the code when the board is ready and committed to fabrication.
The pinout required for the PIC on the PCB is as follows:
Pin 1 - +5V (from a 5V regulator if it's a PIC16F753, from a current-limit resistor if it's a PIC16HV753)
Pin 14 - ground
Pin 12 - first channel from the WS2811 (requires a pullup resistor)
Pin 9 - second channel from the WS2811 (requires a pullup resistor)
Pin 8 - third channel from the WS2811 (requires a pullup resistor)
Pin 7 - output to third servo
Pin 6 - output to second servo
Pin 5 - output to first servoAll other pins - need to be connected to test points
The board needs to have an ICSP connector as well if an SMT package is chosen for the PIC.
