Quick general charlieplexing question

Hello! This is the classic "simplest possible example" for charlieplexing:

What I'm wondering is this:
since the Arduino code addresses pins rather than LEDs, and since the pins never turn on all of the LEDs at once, can I do the following, since I'll be adding resistors to run the LEDs at only slightly above their minimum voltage, which should also lower the current...?

In all seriousness, just try it and see what happens.

Since it is a series circuit, you need only one resistor.

Assuming your LEDs are red and have a forward voltage of around 1.8V, and your Arduino pins output 5V, the voltage drop across the resistors would be around 1.4V, or 0.7V across each resistor.

If you want, say, 10mA of current, the resistors would each need to be 0.7/0.01 = 70 Ohms.

Other colours may be a problem because they have higher forward voltages. You ideally need a voltage drop of at least 1V across your resistors, so that means any LEDs with a forward voltage over 2V may be a problem. Even amber LEDs tend to be 2.2V or more.

By the way, this question has nothing particularly to do with Charlieplexing. It's simply a question about how to calculate the series resistors for LEDs.

Thank you! :slightly_smiling_face: I'm assuming you wouldn't suggest the experiment if there was any risk, Heh! :wink:
So, experiment it is!
Have a good evening.

Oh! That's very detailed! Thank you for taking the time to do that :grinning_face:
I put the question under "Charlieplexing" because if this two-pin version is at least theoretically possible, I'd like to adapt it to the idea I saw in Figure 2 at the link below - and in other places but I think one example is enough :wink:

  • My first step will naturally be to test the little LEDs ((0402 size)) to find the lowest value that will give enough light. I have a few links to 3-, 4-, and 5-pin versions but I posted the Minimal item just to check whether it might "mess up" <ahem...> my ATTiny85 chips. I'll be programming them via an Arduino Nano.

  • My goal at this point is to add a bit of "twinkle" to Holiday cards and, if that works, build small ((1" --> 10 ft or 1:120 scale)) houses with the 0402 LEDs in various lamps and sconces. I know it's far from earth-shaking, and probably a piece of cake for interested 5th graders, Heh! :wink: but it keeps my 70 yr old tuckus out of trouble, so what the heck. And if I get the "dual LEDs" to work, I'll try to remember to post some photos :wink: just for the heck of it.

  • My main concern was that there might be some problem my admittedly-very-limited knowledge might not recognize. As long as I won't make my ATTiny85 catch fire, or cause some other weird problem, I'll go ahead and just try it and see what happens.

With LEDs, it isn't the voltage that controls the amount of light. It's the current. More current = more light. The question you need to be asking is how much current will give enough light.

LEDs are also vulnerable, unpredictable and suicidal. Give them as much current as they like and they will take too much and pop. You have to control the current. The simplest way to do that is put a resistor in series. This works because, unlike LEDs, resistors obey Ohm's law. Because they obey Ohm's law, the current that flows through them is predictable and varies linearly with the voltage across them. You can't say that about LEDs. But when a LED and a resistor are in series, the same current must flow through both, and in a predictable and controllable way.

Sorry for the delayed reply; I've run into some problems programming my ATTiny85, separate issue from this. But anyway!, yes, by testing the values I mean using a physical setup I have on hand that lets me easily try various resistors to get enough output from the LEDs. I have a very specific project consisting of several parts in in the works, but my specific knowledge-gab was about whether it's even possible to double-up the LEDs as shown in the image in the first post; I asked because I don't want to risk damaging either the ATTiny85, or the eventually-charlieplexed LEDs.

  • So I do appreciate your suggestions; it seems to be something untried, so I'll just have to go with van_der_decken and simply try it, as long as I stay within or below the MCUs constraints.
  • Have a good afternoon!

No. Connecting LEDs in series is quite commonplace.

As I said before, the fact that you are planning to Charlieplex the LEDs is pretty much irrelevant when it comes to avoiding damage to the attiny or the LEDs.

Please re-read my previous post and ask about anything that you didn't understand.