Skip to content

New Chip Type: NS108 / HD108 #1045

Closed
Closed

Description

@ccoenen

Hi everyone, Newstar is producing a new chip with the same footprint as the APA102C/HD107/HD107s. The special thing about it is: it can do 16 bit per channel! It is also superior to the (already pretty great) APA102C in two other ways: it has 27KHz PWM and it undestands 3.0V as logic level "HIGH", so you could drive it at 5V and have 3.3V logic voltage without any tricks.

16bit is probably a major change to FastLED, but I think it would be amazing to support this chip.

A datasheet can be obtained here:
http://www.addressableledstrip.com/Datasheet-26.html (look for NS108/HD108)

The protocol is very straightforward and looks very much like the APA102-style protocols with the only change being the amount of bits sent:

  • overall: 128bits 0 are the start frame
  • 64 bits per LED:
    • 1 bit 1
    • 15 bits gain adjustment (5 bit per channel, table in the datasheet)
    • 16 bits green
    • 16 bits red
    • 16 bits blue
  • overall: 1bit 1 per led to end the frame (i.e.: 300 leds connected? send 300 bits)

Activity

  1. ccoenen commented on Jun 28, 2020

    @ccoenen
    Author

    As a quick and dirty first step, one could implement the protocol but left-shift the 8 bit data and just ignore or duplicate the least significant 8 bits. But eventual full 16 bit support would be amazing.

  2. marmilicious commented on Jul 14, 2020

    @marmilicious
    Contributor

    Adding support for pixels with a higher number of bits per channel (and also support for RGBW) is definitely a future goal for FastLED. And as you correctly guessed these changes will require a huge code update/rewrite due to how FastLED was originally optimized.

    Thank you for pointing out this new chip though and providing the details and datasheet link. It does sound great!

  3. sylvieuherkov commented on Aug 12, 2020

    @sylvieuherkov

    Hmm, their HD109 16bit RGBW is coming soon also http://www.addressableledstrip.com/CompanyNews-9/25.html

    I loved their 2020 series also, but there is 4k MOQ, I really hope someone will add it to product line and distribute it in small quantity, it has great improvement comparing to APA102 2020

  4. machinaut commented on Nov 8, 2020

    @machinaut

    I just brought up a strip with these, and basically found the same. In case its useful, here's another "brand" of the same LEDs, but the datasheet is worse/wrong in a bunch of places, which made bringup fun. https://www.rose-lighting.com/wp-content/uploads/sites/53/2019/11/HD108-led.pdf

  5. marmilicious commented on Nov 10, 2020

    @marmilicious
    Contributor
  6. machinaut commented on Nov 10, 2020

    @machinaut

    @braydenm was able to get it in Adafruit_DotStar here as an example of integration (though it's pretty apparent how to update 8bit->16bit). https://github.com/braydenm/ledstrip

  7. gee-ell commented on Jan 24, 2022

    @gee-ell

    thanks for you work guys, I've got 100 HD108 chips coming from China for a custom project. Is it true (according to the buggy datasheet) that they don't require a decoupling capacitor? And can someone confirm the pinout (designing a PCB)?

  8. ccoenen commented on Jan 24, 2022

    @ccoenen
    Author

    I can't really tell you about the capacitors; i do not use any, but I also do not do product development with these (I only mess around with blinky stuff :-D ) and here it worked without caps nearby.

    For the pinout: It is the exact same as APA102 or HD107. I am using them literally interchangeably with those (except for software, of course):

    so:

                  ____
     Data IN 1 --|    |-- 6 Data OUT
    Clock IN 2 --|    |-- 5 Clock OUT
         GND 3 --|    |-- 4 VCC
                  ¯¯¯¯
    

    Here, the label still says APA102, because I am still using its footprint in KicadPCB.

    grafik

  9. gee-ell commented on Jan 24, 2022

    @gee-ell

    I can't really tell you about the capacitors; i do not use any, but I also do not do product development with these (I only mess around with blinky stuff :-D ) and here it worked without caps nearby.

    For the pinout: It is the exact same as APA102 or HD107. I am using them literally interchangeably with those (except for software, of course):

    Thanks @ccoenen. I since found that the Newstar datasheet (which is appallingly bad - I mean do they actually want to sell their product??) does mention capacitors, but you can't trust it, and the Rose Lighting one says you don't need them. I've also seen pictures of HD107 strips that don't have any. That's great but I wonder how they worked around that - from pictures of the chip it doesn't obviously seem to have an internal capacitor, but maybe it's directly integrated into the controller.

    Shame HD108 hasn't caught on yet, 8bit is just awful the minute you dim or use gamma correction.

    Has anybody found 2020's for sale at < 4000 MOQ yet? I've not seen them for sale anywhere.

  10. gee-ell commented on Jan 26, 2022

    @gee-ell

    @ccoenen, another Q for you. I don't have the HD108 5050 chips yet, but my PCB layout for them relies on the exact location of the RGB diodes inside the chip. A picture from an HD108 seller places them here:

    seller

    as does the Newstar datasheet:

    newstar

    But the Rose Lighting datasheet shows them here:

    rose-lighting

    which is correct? or could those be a real layout difference between the Newstar and Rose Lighting versions?

  11. ccoenen commented on Jan 26, 2022

    @ccoenen
    Author

    I got mine from aliexpress, so I couldn't even tell you who actually produced them. For previous types of LED (apa102/hd107..) I had different ones that were labelled the same. With that said: here's a photo of the ones I got a few months ago:

    HD108 type LED:
    HD108 close up

    The three chips are "between pins 3 and 4" - so like in your upper graphic. Sorry for the bad photo, I just took a magnifying glass to my smartphone :D

  12. ccoenen commented on Jan 26, 2022

    @ccoenen
    Author

    this is very similar to ones that were sold to me as APA102 (again: cheapest possible source, I have zero clue who made these or how I would get the exact same ones again :-D )

    APA102 type LED
    APA102 close-up

    It's the exact same PCB layout as above, just with the older chip on it.

  13. gee-ell commented on Jan 26, 2022

    @gee-ell

    Perfect thanks. I got mine from AliExpress too (still in shipping). Several sellers there, but I bet they're all the same company so most likely the same as yours. Yours match the Newstar, down to the gold bond wires, so they're most likely Newstar.

  14. jake653 commented on Jan 27, 2022

    @jake653

    I have see, some ask "why 16 bit color" it matters most if one is producing photographic images, in a video wall or spinning LED holographic fan. There's noticeable dark scene banding when gamma correction is applied to 8 bit LED images.

    Examined 2 8-bit gamma tables, illustrating the loss of dark grays resolution:

                        Unique outputs        bottom 128 out		bottom 64 out
        NewConvert.py        193             38	                       11
        Adafruit Example      164             54	                        5 unique outputs
    
    Here's a Gamma article that may be of interest to some
    It references the 1993 paper: SMPTE93_Gamma.pdf
    I believe there was a human perception table published in the 1930s 
    that may be a slightly  better correction match than gamma.
    

    https://ledshield.wordpress.com/2012/11/13/led-brightness-to-your-eye-gamma-correction-no/

    (One (not smart) LED Video Wall maker boasts having 72 bit color resolution for more natural images)

  15. gee-ell commented on Jan 31, 2022

    @gee-ell

    Perfect thanks. I got mine from AliExpress too (still in shipping). Several sellers there, but I bet they're all the same company so most likely the same as yours. Yours match the Newstar, down to the gold bond wires, so they're most likely Newstar.

    So mine are the same as yours. I asked the Ali seller if they were Newstar, and he said Newstar is actually just a distributor, and they both buy them from the same manufacturer. So they are 'Newstar' in the sense that are the same as theirs & their datasheet (sorta) applies.

  16. 19 remaining items

  17. jake653 commented on Dec 15, 2022

    @jake653
  18. zackees commented on Dec 16, 2022

    @zackees
    Member

    Right, I'm sure it helps.

    The issue is that the main developer of FastLED died in a freak fire accident and right now the main developer is mostly just mostly accepting pull requests from the community. A drastic change in the frame buffer format will touch a lot of code and this codebase is extremely hard to test for every platform. Actually it's worse than testing each platform, you also have to test each led type per platform using a real arduino. That's an MxN matrix that needs to be tested for this framebuffer change that's being proposed. If different settings are also tested then it's MxNxC.

    That's just... intractable.

    A driver change to specific NS108/HD108 chipset doesn't really carry any of those risks, because the code is localized to just this led type and the gamma correction can be done in the MCU either as a function or a lookup table.

    And that's why I'm pushing back by offering a simpler solution of on the fly gamma correction for just this LED type. Not because I believe my proposal better, but because it's something that can be implemented in a day with little to no risk to existing users.

  19. kasperkamperman commented on Dec 20, 2022

    @kasperkamperman

    This looks amazing. Can you show what it looks like when you just use a gamma function like with no interpolation?

    uint16_t gamma(uint8_t x) } {
      return uint16_t(x) * uint16_t(x);
    }

    I'm not able to do that (most stuff is somewhere on the attic, because I moved). However, 256 steps stay 256 steps. Maybe you can improve distribution on the curve.
    This whole interpolation thing only matters when you do very slow fades to black (like I do over several seconds). Most people use FastLED for disco type effects, for which 8 bit is perfectly fine.

    Here some research I did (almost 10 years) ago on gamma/curves in relation to FastLED:
    https://forum.makerforums.info/t/for-those-who-are-interested-in-dithering-and-smooth-long-tail-fades/64507
    https://forum.makerforums.info/t/trying-to-get-slow-and-smooth-transitions-at-the-low-end-of-the-brightness/60608

  20. Joshfindit commented on Dec 20, 2022

    @Joshfindit

    Most people use FastLED for disco type effects, for which 8 bit is perfectly fine.

    Personally I’m using it for room lamps, and am very interested in the smoothest most stable light output, especially at low brightness.

  21. kasperkamperman commented on Dec 20, 2022

    @kasperkamperman

    FastLED has already built in dithering, so it provides a smooth curve on low light levels.

    However for slow fades from very bright to low brightness you need a chip with a higher range.

  22. zackees commented on Dec 20, 2022

    @zackees
    Member

    Dithering is different from frame interpolation. The former requires no change to the frame buffer, the latter requires two frame buffers.

  23. ccoenen commented on Jul 31, 2023

    @ccoenen
    Author

    Edit: nevermind, I mixed up two different projects.

  24. zackees commented on Apr 8, 2025

    @zackees
    Member

    Follow up on this:

    This chipset has 16 + 5 = 21 bits of brightness

    This means we can do a full gamma correction curve on the uint8_t CRBG component.

    We also have global brightness at 8bit. We can therefore get the full range of this LED.

  25. vtjballeng commented on May 24, 2025

    @vtjballeng

    Cross-linking this issue with #1885 for the same request.

  26. banjostellar1-sketch commented on Dec 23, 2025

    @banjostellar1-sketch

    Hello, I was hoping I could do some lightening for Christmas so i bought a bunch of the hd108 led. Turns out the fastled 3.10.3 doesn't officially support this led as the compiler returns an error "HD108 was not declared in this scope". It is clear fastled 3.10.4 is projected to add support for this led. Question is; when will fastled 3.10.4 be released? was hoping I could use this led for my Christmas lightening project in few days time

  27. nomakewan commented on Dec 24, 2025

    @nomakewan
    Contributor

    Hello, I was hoping I could do some lightening for Christmas so i bought a bunch of the hd108 led. Turns out the fastled 3.10.3 doesn't officially support this led as the compiler returns an error "HD108 was not declared in this scope". It is clear fastled 3.10.4 is projected to add support for this led. Question is; when will fastled 3.10.4 be released? was hoping I could use this led for my Christmas lightening project in few days time

    https://www.reddit.com/r/FastLED/comments/1pu8avr/next_update_is_delayd_due_to_new_parlio_driver/

  28. banjostellar1-sketch commented on Dec 26, 2025

    @banjostellar1-sketch

    Hello, I was hoping I could do some lightening for Christmas so i bought a bunch of the hd108 led. Turns out the fastled 3.10.3 doesn't officially support this led as the compiler returns an error "HD108 was not declared in this scope". It is clear fastled 3.10.4 is projected to add support for this led. Question is; when will fastled 3.10.4 be released? was hoping I could use this led for my Christmas lightening project in few days time

    https://www.reddit.com/r/FastLED/comments/1pu8avr/next_update_is_delayd_due_to_new_parlio_driver/

    Thanks a lot

  29. zackees commented on Dec 31, 2025

    @zackees
    Member
  30. zackees commented on Dec 31, 2025

    @zackees
    Member

    So our HD108 protocal was just a copy of the apa102 algo and it was out of spec. But it worked for some but not all. This has been fixed in master and it should now run everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions