I want to "develop" a project with some bi-color LEDs (OSRAM LSY-T676.) I have made (after some tutorials) my own component because it was not included in Proteus 8 library. Source which is used is a car battery (12V), the LEDs have a forward voltage of 2V for both colors and a forward current of 20mA (nominal.) I need to use twenty of these LEDs, so I made four groups of five LEDs (10V forward voltage.) After basic calculation, a 100ohm resistor is needed to obtain the correct current.
I'm want to control the LEDs with a PIC12F675 microcontroller (as I read in datasheet: current 25mA and Vdd-0.7V => 5-0.7= 4.3V output if Vdd will be 5V as I want.) The idea was to use a 2N7000 N-channel MOSFET (Vgs(th) =2.1V Id=115mA) but I'm not really sure if I interpreted the data for the microcontroller and MOSFET correctly. Could you, please, correct me, if somethingbis wrong? My questions are:
- What is the maximum frequency for PWM (I want to control LEDs via PWM.)
- How should I calculate the base resistor?
- Do I need a parallel capacitor? (I saw some examples on forums.) If it is needed, how can I calculate the value?
- What is the influence of RDS(on)? (As I understood is one of the most important characteristic)