Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

//

// motorcc.pde
//

const int transistorPin = 9; // connected to the base of the transistor

void setup() {

// set the transistor pin as output:
pinMode(transistorPin, OUTPUT);
}

void loop() {

digitalWrite(transistorPin, HIGH);
delay(1000);
digitalWrite(transistorPin, LOW);
delay(1000);
}

2
//
// motorcc.pde
//

const int transistorPin = 9; // connected to the base of the transistor

void setup() {

// set the transistor pin as output:
pinMode(transistorPin, OUTPUT);
}

void loop() {

digitalWrite(transistorPin, HIGH);
delay(1000);
digitalWrite(transistorPin, LOW);
delay(1000);
}
http://www.tecnosalva.com/pr%C3%A1cticas-3-y-4-arduino-control-motor-y-servomotor

You might also like