Close

Schematic

A project log for Nyan Board

A small ATtiny85 board playing the Nyan Cat tune.

dehipudeʃhipu 11/28/2016 at 10:439 Comments

I just realized that I never wrote about the schematic of the board. Sure, it's very simple, but for completeness' sake:

Discussions

danjovic wrote 11/28/2016 at 12:05 point

I think the LEDs are inverted.

  Are you sure? yes | no

deʃhipu wrote 11/28/2016 at 12:14 point

Oops.

  Are you sure? yes | no

deʃhipu wrote 11/28/2016 at 12:16 point

Fixed, thanks!

  Are you sure? yes | no

K.C. Lee wrote 11/28/2016 at 11:50 point

The Amber LED could be in series for 5V I/O as they have forward voltage of 2.1-2.2V.

  Are you sure? yes | no

deʃhipu wrote 11/28/2016 at 12:02 point

I thought you always need a resistor on a LED, due to its non-linearity.

  Are you sure? yes | no

K.C. Lee wrote 11/28/2016 at 14:40 point

 You'll still need a series resistor to set the right current.  You could halve the amount of current consumption by having the LED wired in series instead of in parallel.

  Are you sure? yes | no

deʃhipu wrote 11/28/2016 at 15:00 point

Oh, I see. But I guess I can also achieve the same halving by using larger resistors.

  Are you sure? yes | no

K.C. Lee wrote 11/28/2016 at 15:08 point

No you are not as you are *always* using 2X the current because you are supplying 2 branches of LED instead of a single branch.

The power wasted in one of the series resistor *could* have powered the second LED.  You throw away about 2.8V in that resistor instead of 0.6V.

  Are you sure? yes | no

Ted Yapo wrote 11/28/2016 at 15:07 point

The upside to driving them in parallel is that it's more robust to Vf changes due to LED batch variation and ambient temperature.

In the series case, the total Vf is 2 x 2.2 = 4.4, leaving only 0.6 V to drop across the resistor.  So, you choose a 30-ohm resistor to allow 20 mA.  If you get a batch of LEDs with a low Vf, and/or the ambient temperature rises, the Vf might drop to 1.9 or less.  Now, you're driving 40 mA into the LEDs.

If you did them in parallel, you would choose (5-2.2)/.02 = 140 ohms.  If the Vf drops to 1.9 now, the LED is only getting 22 mA.

The downside is wasted power in the resistors in the parallel case.

  Are you sure? yes | no