by philba » Mon Mar 05, 2012 10:45 am
The reason there are no current limiting resistors for the LEDs in that design is because IR LEDs need to be driven at a much higher current than visible LEDs. Well, they don't HAVE to but to get any kind of distance, you need to pulse them pretty hard. That's why there are transistors in that design - the AVR is limited to 40 mA on an output pin which really isn't enough current. I'd shoot for 100 mA pulse current or higher. Note also that since it runs off of 2 alkaline cells, the 4 LEDs won't see super high current. Guessing from the design docs, the IR LEDs each get around a max of 250 mA pulses with 2 AAs, driving them out of spec. This definitely shortens their life but, given that the duty cycle is miniscule, probably doesn't matter.
So, I would use the transistor design of the original plan.