tinue / apa102-pi

Pure Python library to drive APA102 LED stripes; Use with Raspberry Pi.
GNU General Public License v2.0
201 stars 71 forks source link

A level shifter is not needed #32

Closed Marlor closed 6 years ago

Marlor commented 6 years ago

Just wanted to let you know, a 4.5V regulator is build in the APA102. So if you skip the 74AHCT125/74AHC125, the first LED will act as one.

Love your library, thank you for your work.

tinue commented 6 years ago

Thanks for your comment!

When I wrote the guide I checked the specifications. I can't find the one I used anymore, but here is another one: https://cdn-shop.adafruit.com/datasheets/APA102.pdf.

What I understand is this:

Having said this, I think many APA102 do work without a level shifter, because apparently the 70% seems to be lower in practice.

The 4.5V regulator does seem to regulate the supply voltage, not the data/clock lines. Plus I think it does not boost voltage, it merely drops voltage down to 4.5V: It does say in the spec sheet that a condition for the regulator to work is that the supply voltage is at least 5V.

All in all, I think the level shifter is required after all, but you might get lucky, especially with a bad power supply that drops its voltage quickly.