How to connect multiple multiplexer(CD74HC4067 16-Channel/PCA9548A 8-channel) to ESP32S NodeMCU to control 32 TOF sensors (VL53LDK)

@bobcousins @kmin @sterretje @TomGeorge

working 5A 5V PSU output voltage 5.5 to 5.7 Voltage at LED 5.7
not working 5A 5V output voltage 5.0 to 5.1 Voltage at LED 5.1
not working 20A 5V output voltage 4.8 to 4.9 Voltage at LED 4.9

Each LED strip is around 1.2 mts long

So I was thinking of supplying 6 Volts

  1. What would be the best way for that
    i] Using a voltage regulator IC LM7606 IC per strip as its A is limited to 2A
    ii] If I can use a voltage regulator of 6V 10A but I could not find it
    iii] Using buck convertor to step down 12V 5A to 6V
    iv] Any way to step up 5V 10A to 6V
    v] Direct 6V PSU but not available pretty rare

  2. 1A per strip should be enough?

WS2812B LEDs should work even at 4V, you probably have some other problem.
Measure the voltage of the LED-strip itself when you turn it on.
Also, how can your 5V power supply output 5.7V? 15% above nominal...

That depends on your code. If you run them all white at max brightness, 60 LEDs can draw almost 3A. For one color only 1A is enough.

Those LEDs are rated max 5V, you shouldn't drive them at 6V.
Also, since your signal from Esp32 is 3.3V, supply voltage ideally shouldn't be above 4.7V.

@kmin Thanks for reply.

I am having 2 different thought trains

1] Go for higher Volts for stable system
According to datasheet WS2812B can take 5.5V (+- 0.5 V) so 5 to 6V.
According to actual readings at LED 5.8V higher is more stable than 4.9V
In same setup Higher Volts PSU works while lower Volts PSU does not

2] Go for lower voltage as signal should be readable
According to reading various blogs articles signal at LED should be V at LED x 0.7
ESP output is 3.3V so max V at LED should be 4.7V

WS2812B LEDs should work even at 4V, you probably have some other problem.

  • like what?

Measure the voltage of the LED-strip itself when you turn it on.

  • working 5A 5V PSU output voltage 5.5 to 5.7 Voltage at LED 5.7
    not working 5A 5V output voltage 5.0 to 5.1 Voltage at LED 5.1
    not working 20A 5V output voltage 4.8 to 4.9 Voltage at LED 4.9

Also, how can your 5V power supply output 5.7V? 15% above nominal...

  • It has adjustment pot, other 5V 5A PSU can go +-0.3V around 5V but this one goes higher!

That depends on your code. If you run them all white at max brightness, 60 LEDs can draw almost 3A. For one color only 1A is enough.

  • It has a colour gradient red orange yellow green, code attached above in post #19

Those LEDs are rated max 5V, you shouldn't drive them at 6V.

  • Agreed but it was the only case where things were working fine.

I will try stepping up signal from 3.3V to 5V using but this did not work for me last time i tried

https://roboticsdna.in/product/8-channel-bi-directional-logic-level-converter-module/
and
https://roboticsdna.in/product/i2c-bi-directional-logic-level-converter-4-channel/

while LEDs powered fully on??

I have never had any problem with 4-5V, that's why I suspect you have some other issue. And neither heard others had.
How is your wiring for power? Short and thick enough to carry few amps /strip without noticeable voltage drop?

Also, you should add capacitor across every strip power leads.

Just keep the brightness low enough to stay below 1A if that's your limit.

readings are when LEDs are on in gradient colour.
I do not think less Amps is the problem here as 12 LED strips are running fine on 5A 5V
but when I used 20A 5V for 12 LED strips then random LEDs and random colours are seen

Wiring is short under 30 cm and in past I have run multiple servos on those wires without any issues.

I do have a 220uf capacitor on every LED strip circuit diagram in post # 19

I am on a tight schedule any suggestion about possible problem would be helpful.
Thank you.

So try that PSU adjusted at 5V, does it still work?
That gives you answer if problem is related to voltage or bad quality power supplies.

Also, did you measure the voltage of LED strips while powered at high brightness???

I don't want to insist, but my WS2812B's work even with lithium-ion battery, so it's hard to believe that yours need more than 5V to work.

Hi, @ank_15
Have you for starters be able to control ONE strip without the multiplexers?

If so then select JUST one output of the multiplexer and control that ONE strip, then add another strip and program for multiplexing for two outputs.

It appears you are bulk programming rather that coding in stages.

Tom.... :smiley: :+1: :coffee: :australia:

No sir, I did do it stepwise from 1 strip to 6.
then doubled from 6 to 12.
works with 5V 5A but does not work with 5V 20A

Hi,
Does strip 1 to 6 on its own work with the 5A and the 20A supply?

Do you have a DMM? (Digital MultiMeter)

Tom.... :smiley: :+1: :coffee: :australia:

5V 5A Yes
5V 20A No
Digital multi meter Yes

New testing results
tested 2 panels for different voltages to find voltage where LEDs work stably

Panel 1 at LED 5.8V 12 LED strips works fine sensors fine
Panel 2 at LED 3.8V 12 LED strips works fine some sensors sometimes stop

Panel 2 uses a buck converter to step down Volts


Panel 1 - Video

Panel 2 - Video

Will not even work on 1 strip?
Have you measured the voltage out of the 20A supply?

Can you please post some images of the two supplies?
Your 20A supply isn't a LED PWM current limit supply?

Tom.... :smiley: :+1: :coffee: :australia:

1 to 4 strips work

In 6 strip setup colours change!

I am thinking that I need a different logic level shifter

5V 5A PSU working

5V 20A PSU not working

Output 4.9V

Guys
https://roboticsdna.in/product/8-channel-bi-directional-logic-level-converter-module/

This is working for me now I can run 12 LED strips on 5V 20A PSU

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.