[SOLVED] led to bright after Shift register

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
LukeVideo
Posts: 22
Joined: Thu May 09, 2019 3:59 pm

[SOLVED] led to bright after Shift register

Post by LukeVideo » Tue May 21, 2019 10:24 am

Hy all,
The title may seem weird,
So simple put, i am controlling 16 led's with to shift registers who are on 3.3 v. I added 16 resistors for the led's. But they are super bright and they are used as user interface and are really unpleasant to watch directly.
So i tested a few resistor values and find that 1K is the best resistance for my case.

Is it reasonable to replace 16 330ohm resistors by 1K resistors or will it take too much power for the ESP32 ?
Should i use PWM ?
Are they white 5mm leds that don't shine to bright just like a classic red led would ?

Luke.
Last edited by LukeVideo on Thu May 23, 2019 8:17 am, edited 1 time in total.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: led to bright after Shift register

Post by Roberthh » Tue May 21, 2019 10:55 am

A larger resistor value reduces the current rhrough the led and decreases the power. 1k vs. 330 Ohm means roughly one third of the power.

LukeVideo
Posts: 22
Joined: Thu May 09, 2019 3:59 pm

Re: led to bright after Shift register

Post by LukeVideo » Wed May 22, 2019 7:32 am

Ok, thanks.
That means that less power is drawn out of the board. I was confused on the final result using so many resistors. Seems quite logic now that i think of it :lol:

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: [SOLVED] led to bright after Shift register

Post by mcauser » Wed Dec 25, 2019 1:57 am

Alternatively, if you swap that simple shift register with a display driver IC, such as the MAX7219, you can drop your resistor count to 1x and drive 64x LEDs, or many more of you chain a few ICs. Even supports brightness control in software.
https://www.maximintegrated.com/en/prod ... X7219.html

Post Reply