Pb.Hub and RGB Unit



  • Hello @frameworklabs

    there is a command to set the number of RGB LEDs. Maybe the default value is different between the original PbHub and v1.1?

    Try adding below line into the second for loop. This should set the number to 3.

    porthub.hub_wire_length(HUB_ADDR[i], 3);
    

    Thanks
    Felix



  • Thanks @felmue ,

    I tried this in various variations - in setup - in the for loop - with and without delays - but with no effect whatsoever.

    My guess is that this is an issue with the Firmware on the v1.1 version - maybe someone from M5Stack Support can confirm?

    Marc



  • If this is the hub based on the STM32 then it's a limitation I brought up with M5Stack.
    Just to the power output of the hub, the hub is limited to only one LED.
    I tried it with my head band and it wouldn't work (2X Neko Ears) before asking M5Stack.



  • Hello @ajb2k3

    when you say 'limitation', do you mean an electrical limitation or an issue in the current STM32 firmware which will be fixed?

    I am asking because the documentation says that the maximum RGB LEDs is 74. See section I2C Map.

    [1] STM32 version: 74 is the max of RGB LED numbers.

    Thanks
    Felix



  • @ajb2k3 - exactly, it is the SMT32 based hub.
    Thanks for sharing your experience - good to be not alone...



  • Hello guys

    I received a PbHub v1.1 (STM32 version) today and I can confirm too that only one RGB LED can be driven.

    @m5stack : could you please elaborate what exactly the issue is? The documentation says that the default number of RGB LEDs for the STM32 version PbHub is 74 (seventy four). How can I use more than one RGB LED? Do I need an external power supply?

    Thanks
    Felix



  • @felmue yes most definitely an external power supply.



  • Any further updates about getting the PbHub v1.1 to drive more than one RGB LED?

    I have provided external power to my LED's and still only the 1st LED will light up, also if it was a power issue, when trying to turn on the 2nd or 3rd led, it should not turn on the 1st LED. Looks to be a firmware issue with the PbHub where its not reading the LED number bytes in the message.



  • I spoke to M5Stack and they said it can only do 1 RGB per port



  • Hello @ajb2k3

    if that is really true, e.g. only one RGB LED per port, then the documentation should be adapted. It still says the default number is 74 indicating it can handle up to 74 RGB LEDs.

    0_1709316131973_PbHubv1_1_RGB_LED_Num_20240301.png

    0_1709316206742_PbHub1_1RGB_LED_max_20240301.png

    @m5stack : please fix. Thank you.

    BTW: if it was a power issue it could be solved using a UNIT TypeC2Grove

    Thanks
    Felix