
Driving an IR LED correctly.
okay so I'm trying to use an IR LED to send data, but wiring the IR LED directly to a PIN makes it soooo dim.
so I got a 2n2222 transistor to drive it.
my problem is, I'm not sure about the values of resistors I should use to protect the IR LED and the 2n2222, so if anyone can help me with that I'd appreciate it.
Note: I used a Red LED instead of an IR led because I couldn't find it in Tinkercad.