Arduino and BD710 Transistor...

marwi:
hi paul, that so far worked as expected. the led flashes for ~10 msec.

int basePin = 9;

int led = 13;

int s = 1000;
int d = s * 2;

void setup()
{
  pinMode(basePin, OUTPUT);
  pinMode(led, OUTPUT);
}

void loop()
{
  for(int i = 0; i < 2; i++)
  {
  [font=Verdana]  analogWrite(basePin, HIGH);[/font]
    digitalWrite(led, HIGH);
    delay(10);
    [font=Verdana]analogWrite(basePin, LOW);[/font]
    digitalWrite(led, LOW);
    delay(s);
  }
  delay(d);
}

??
see what happens if you replace "HIGH" and "LOW" with different values in the analogWrite() commands :wink: