Adalight protocol with analog led strip (PWM)

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
squall
 
Posts: 5
Joined: Mon Jul 21, 2014 1:45 pm

Adalight protocol with analog led strip (PWM)

Post by squall »

Hi there,

i want to use the Adalight-Protocol with my "analog" not adressable LED-Strip.
The leds use the same anode and with pwm and a transisotr to the kathode i can chane the colour.
So no SPI or so but my "server"-Programm can use the Adalight.... so how can i convert the
databits to a usefull value for the pwm ?

Greetings

Squall


ps.: i use an arduiono leonardo and the usb-serial connection

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: Adalight protocol with analog led strip (PWM)

Post by Franklin97355 »

Show us what you have so far and perhaps someone can come up with an idea or two. What do you having as an input and what do you want to output Be specific, not just Adalight in PWM out.

squall
 
Posts: 5
Joined: Mon Jul 21, 2014 1:45 pm

Re: Adalight protocol with analog led strip (PWM)

Post by squall »

I use Hyperion as server, it is like boblight but it speaks the adalight protokoll.
For the arduini actually i use you exemple for rgb
https://learn.adafruit.com/rgb-led-strips/example-code
with the same setup as in the example.
This is what hyperion explains to use on the arudino
https://gist.github.com/tvdzwan/9008833
.... so here is the problem. the bits will wirted directly to the led strip controllers..... but i
use this https://learn.adafruit.com/assets/2692 ... there arnt controllers .... so i have
to convert the bits for all leds ( i will tell hyperion to think there is only ONE led ) ... so adalight should send "ADA" + the bitdata for one led (R value B value and G value ) .... or ? ... and i need these three values to wirte with analogWrite to an PWMPin or ?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”