Saltar la navegación

Steppers

Arduino i ventilador. Encès i apagat

//arduino IDE 1.8.9
//usando ventilador antiguo PC, cable rojo a 12, negro a GND.
int fan=12;
void setup() {
// put your setup code here, to run once:
pinMode(fan,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(fan,HIGH);
delay(5000);
digitalWrite(fan,LOW);
delay(5000);

Vídeo