Arduino with Software off

Hi Tim

Indeed, something was wrong - it was me writing a wrong piece of software. In the loop I set the output pin to high every time instead of just in the setup. So the wrong code looked like this:

unsigned int transistor_basis_pin = 5;

void setup(){

  pinMode(transistor_basis_pin, OUTPUT);
}

void loop(){
  digitalWrite (transistor_basis_pin, HIGH);  

  if (millis() > 7000){
    digitalWrite (transistor_basis_pin, LOW);  
  }
}

I'm sorry I have bothered you too long. The added schema together with the following code works perfectly! Thank you very much, Dani

unsigned int transistor_basis_pin = 5;

void setup(){
  pinMode(transistor_basis_pin, OUTPUT);
  digitalWrite (transistor_basis_pin, HIGH);  
}

void loop(){
  if (millis() > 7000){
    digitalWrite (transistor_basis_pin, LOW);  
  }
}