Controlling Servo

christophe

New elf
Joined
Jun 5, 2019
Messages
41
Location
Melbourne
Hello everyone, is there a way to control servos through xlight. Pixel data to servo. I have about 100 servos I would like to control. I want them to rotate 90 degree when pixel is on in xlight. Thank you
 

Mark_M

Annoying Elf
Joined
Dec 30, 2018
Messages
921
Location
Christmas Light world
FPP running on a Raspberry Pi can support a PCA9685 16-Channel Servo Driver.
Maybe something better suited would be an Arduino and that running as a serial (USB) controller from FPP/xLights.
Could even program an Arduino to receive DMX and outputs to the servos.
 

Grozzy

Oh great, the idiot's back
Joined
Aug 16, 2018
Messages
104
FPP running on a Raspberry Pi can support a PCA9685 16-Channel Servo Driver.
Maybe something better suited would be an Arduino and that running as a serial (USB) controller from FPP/xLights.
Could even program an Arduino to receive DMX and outputs to the servos.
IMG_20240227_105148_edit_3610189321161620.jpg
Built a prototype hat running FPP, Worked well but never had a use case beyond a skull that I never got around to making 😔
 

christophe

New elf
Joined
Jun 5, 2019
Messages
41
Location
Melbourne
Thank you for your replies. My aim is to build one as per picture attached. I want to have lights behind it and controlled through xlights. As the lights get activated, the respective servo gets activated. Do you guys think i can control around 200 servos with xlights? Or there is a limitation? Thank you
 

Attachments

  • Screenshot_2024-02-27-17-47-03-44_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
    Screenshot_2024-02-27-17-47-03-44_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
    323.8 KB · Views: 19

Grozzy

Oh great, the idiot's back
Joined
Aug 16, 2018
Messages
104
Thank you for your replies. My aim is to build one as per picture attached. I want to have lights behind it and controlled through xlights. As the lights get activated, the respective servo gets activated. Do you guys think i can control around 200 servos with xlights? Or there is a limitation? Thank you
XLights can certainly send data for 200 servos without any issue however FPP and the PCA9685 is not a cost effective solution, Not sure you are going to want to buy 13 raspberry pis. What Mark said would probably be a better solution using an Arduino to receive e1.31 data and daisy chaining a bunch of TLC5940s chips and controlling them with SPI.
 

christophe

New elf
Joined
Jun 5, 2019
Messages
41
Location
Melbourne
I will use an Arduino Uno that can receive e1.31. Do you know by any chance a website or video where it shows how to set up FPP to talk to arduino? And is there any coding required to the arduino to be able to talk to TLC5940? Thank you
 

Grozzy

Oh great, the idiot's back
Joined
Aug 16, 2018
Messages
104
FPP and XLights is simple to add a controller as either USB or Ethernet. Your challenge is going to be finding or writing Arduino code to listen for the e1.31 data and then send it out to the servos via spi.
This is a link to the TLC5940 and details of the Arduino library for servo connection.
 

dkulp

Full time elf
Joined
Jan 2, 2013
Messages
146
Location
Framingham, MA
XLights can certainly send data for 200 servos without any issue however FPP and the PCA9685 is not a cost effective solution, Not sure you are going to want to buy 13 raspberry pis. What Mark said would probably be a better solution using an Arduino to receive e1.31 data and daisy chaining a bunch of TLC5940s chips and controlling them with SPI.
You can daisy chain the PCA9685's as well. Up to 62 of them. A single Pi could control the entire chain. Definitely a pain to configure though.
 

Grozzy

Oh great, the idiot's back
Joined
Aug 16, 2018
Messages
104
You can daisy chain the PCA9685's as well. Up to 62 of them. A single Pi could control the entire chain. Definitely a pain to configure though.
Thanks for the correct, Didn't realise you could add more than 1 PCA9685. Might be less of a pain than trying to write code for an Arduino though.
 
Top