Hello, I recently bought this LED module to work with my IOIO OTG board.
http://www.aliexpress.com/store/product/DC12V-input-WS2811-pixel-node-100pcs-a-string-injection-molding-type/701799_722405450.html
According to this datasheet, each LED is controlled by WS 2911 which uses 400 Khz Pulse Width Modulation (PWM) signal to controll it. So one cycle is 2.5 micro second. 0 high is 0.5 microsecond, 0 low is 2 micro second, 1 high is 1.2 microsecond, and 1 low is 1.3 microsecond One thing about the chip is it does not have an internal clock (whatever that means?)
The max rate of SPI signal of IOIO OTG is 8Mhz, which gives 125 nano second per SPI bit. So this 8Mhz SPI signal,
1111 0000 0000 0000 0000 should give rise to 0 in 400 Khz PWM, (four 1s X 125 ns = 0.5 microsecond HIGH)
1111 1111 1100 0000 0000 should give rise to 1 in 400 Khz PWM, (ten 1s X 125 ns = around 1.2 microsecond HIGH)
total 2.5 byte of SPI signal should give rise to one PWM (20 bits X 125 ns=2.5 us)
so if I were to control an LED strip with 60 RGB lights controlled by 24 bit PWM chips, I can control this setup by sending 2.5 byte X 24 X 60 SPI bits at 8MHz.
Turns out this reasoning is too simple, and there is a complicated solution for fixing the issue at other platform like this:
http://bleaklow.com/2012/12/02/driving_the_ws2811_at_800khz_with_a_16mhz_avr.html
My question now is... Do you know any code, or a way to allow IOIO board to drive WS 2911 LED strip..
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
Hi Kisurb,
There's a buffer that eventually gets flushed when it overfills. I can't remember its size off the top of my head, but whatever it may be you could increase it if you want. IIRC, it's in IOIOProtocol.java.
--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.