Trouble with an LED drive

Hello :slight_smile:
First of all, I am an complete beginner with software engineering and microcontrollers, so please be kind :slight_smile:

I have an LED Board with 48 LEDs which are regulated by the following LED driver:

Via I2C I can write and read different registers on the board.

I managed to set the different LED channels and programmed some patterns ect., but now I want to Control a single LED by itself.

I looked through the data sheet and I just cannot figure out which Register I have to use, in order to Control only one LED…..

I am a bit lost and this is probably a very stupid question, but I really need help, or at least a little tip.

Thanks for the help!

Did you try Google? "LED1202 Arduino" turns up a few references. If you could base your questions around what you find there, it would help.

1 Like

Thanks for the quick response.

If I google LED1202 Arduino, my results are mainly the led board I use.

Maybe I can ask my question differently:

All the time I played around with the led drive, I controlled the channels via the LED channel register 0x02 and 0x03. If I wanna control only one led from a specific channel, how do I do that?

Do I need to set a specific Bit in the configuration Register or something like that?

It’s my first time working with an LED drive so I am really lost :sweat_smile:

So, this is basically the same topic as the one you opened six days ago? Please ask a moderator to merge the topics, then we can proceed. Meanwhile, I'll go read that topic, to familiarize myself with it.

It’s familiar but not the same, haha :D.

The last topic is actually closed, one of my jumper cable was not connected correctly, so that was the reason nothing worked…..

Looking back at the code, I also made some changes. In the end, I was able to set the LED channels in order to light them up.
Now I’m stuck again….

That's a complicated chip!!!

Just scanning-through the 54-page datasheet it says there are "8 programmable patterns" but I didn't find anything about loading a custom pattern. I may be there... it seems like it should be there... but it didn't jump-out at me.

P.S.
I don't know if this will work for you, and it would mean scrapping what you have, but the most popular addressable LEDs are NeoPixels (WS2812, etc.).

Each LED has a built-in driver (so no additional electronics are required) and they are serially addressed with one data line so you can address/control a large number of LED depending on how much processor memory you have.

They come in strips, matrices, individually, and other configurations.

The addressing is "tricky" with one line carrying all of the information, and since they are serial they all have to be written-to, even if you just want to change one. But there are libraries that do the "heavy lifting".

1 Like

Thanks for looking into the data sheet :slight_smile:

Unfortunately I need to use those LED drivers for the project.

The chips are indeed very complicated but I am sure I will figure it out eventually.

Thanks for the help anyway!

I looked at the data sheet a bit more this time and found some information on setting individual LED’s. Section 4 starting on page nine of the sheet describes various abilities and functions. 4.4 shows how to selectively enable individual LED’s with a hyperlink to a page in section seven. You will probably want to set the intensity of the LED also. There are additional registers to accomplish that also. Like you said you have a bit of reading and digestion to do. Start as simple as you can and slowly build and test the capabilities of the board and your own understanding of it.

If you looked through the previous thread on this board you will see that there is a global address for all 4 1202 chips on your board plus 4 more addresses to allow access to the individual registers on each chip.

I dug a little bit deeper into this chip this time because it looks like one I might be interested in using down the road.

Thanks for looking into it.

Section 4.4 describes the LED channel register. If I set Bits in this register, I can control the channels, but not individual a single LED…

The hyperlink to section 7.3 only shows the different a bits I can set in this registers.

Via this register I can control a whole register, but not a single LED?

There are 12 channels, one for each output. That would be one LED. I suppose that more than 1 LED could be driven in series, but your board has only one per channel.

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