SPI Controller...has anyone use this before?

Discussion in 'RGB Lights - Intelligent Pixels and 3-Channel RGB' started by newaisa, Dec 1, 2011.

  1. newaisa

    newaisa New Elf

    Joined:
    Sep 5, 2011
    Messages:
    20
    Likes Received:
    0
  2. dmoore

    dmoore Senior Elf

    Joined:
    Apr 26, 2010
    Messages:
    586
    Likes Received:
    0
    Location:
    Houston, TX, USA
    What is it you are using this DMX controller for?
     
  3. kool-lites

    kool-lites Full Time Elf

    Joined:
    Jun 26, 2010
    Messages:
    179
    Likes Received:
    0
    Location:
    Baulkham Hills
    YES.
    SPI id used to communicate with a number of "controllers" I call them Serial SSRs. The Grinch is an example that uses the SPI.
    The Olsen 595 is another example.
    I use SPI to drive the 595s on my own controllers, like my 8 Channel RGB LED Flexible Strip Controller
    It is easily implemented with an arduino, but but last time I checked you are limited to about 24 channels. if you write the progam in ASM, and change the crystal to 20Mhz, 64 channels is possible. RPM's Grinch Dimmer is an example.
     
  4. kool-lites

    kool-lites Full Time Elf

    Joined:
    Jun 26, 2010
    Messages:
    179
    Likes Received:
    0
    Location:
    Baulkham Hills
    Most of the controllers I mentioned above use software PWM to achieve dimming

    Another thing to consider is most pixel use the SPI to communicate with the pixels. In this case no PWM is required as the pixels have the dimming function built in.
     
  5. OP
    OP
    newaisa

    newaisa New Elf

    Joined:
    Sep 5, 2011
    Messages:
    20
    Likes Received:
    0

    Hi thanks for the reply.
    One thing I am not too clear is about the SPI sequence for this controller. I know SPI signal will work, but how do I figure out what is the sequence I need to send to get it started? Which few bits addresses the channel and which few bits addresses the pixel effect? Tried asking the seller but he doesn't have any clue on this so I might try asking here.


    Let's say I want all channels to have PWM of 50% duty cycle. What are the bits I need?


    I hope you would know what I'm trying to ask here. Can't think of any better sentence to go about. :-[
     
  6. OP
    OP
    newaisa

    newaisa New Elf

    Joined:
    Sep 5, 2011
    Messages:
    20
    Likes Received:
    0

    This controller will accept both SPI and DMX according to the specification. But I will try to go with SPI path since I have some experience with SPI but none with DMX.


    I will be controlling a lot of 5V LED. Each channel will handle up to hundred of LED. The effect will be few groups of light with independent effects. Btw, all of them will be single color. So I only need On/Off/Dimming on each channel.
    But still trying to figure out the control library of this thing. Like the question I posted above.


    If anyone know please enlighten me. :)
     
  7. random

    random New Elf

    Joined:
    Oct 16, 2011
    Messages:
    38
    Likes Received:
    0
    Location:
    Collaroy, NSW

    If it speaks SPI they must supply you with a datasheet. The datasheet tells you operating parameters, interfaces and protocols. They should give you this before purchasing so you can see if it's suitable for your use. If you can't get a datasheet from the seller then don't buy it. If he doesn't know what's in it then you have even less chance!
     

Share This Page