I am using a RFP30N06LE mosfet to dim an LED. The LED does not appear to dim at all. In the schematic I didn't label the current limiting resistor on the LED, because I am using one of the LED boards linked below. Did I do something wrong?
unsigned int i;
void setup()
{
pinMode(4, OUTPUT);
}
void loop() {
for(i=240;i>20;i--)
{
analogWrite(4,i);
delay(200);
}
delay(1000);
for(i=20;i<240;i++)
{
analogWrite(4,i);
delay(200);
}
}
