By Jonathan Delgado

@JonDotsoy

Ardiuno UNO

KIT ARDUINO

Ejercicios 

Parpadeo de LED

layer 21 text:MADE IN text:ITALY text:Prototype text:Limited text:Edition 13 12 11 10 9 8 7 6 5 4 3 2 element:C1 package:C0603-ROUND element:C2 package:C0603-ROUND element:C3 package:C0603-ROUND element:C4 package:C0603-ROUND element:C5 package:C0603-ROUND element:C6 package:C0603-ROUND element:C7 package:C0603-ROUND element:C8 package:C0603-ROUND element:C9 package:C0603-ROUND element:C11 package:C0603-ROUND element:F1 package:L1812 element:FD1 package:FIDUCIA-MOUNT element:FD2 package:FIDUCIA-MOUNT element:FD3 package:FIDUCIA-MOUNT element:GROUND package:SJ element:L text:L L element:R1 package:R0603-ROUND element:R2 package:R0603-ROUND element:RN1 package:CAY16 element:RN2 package:CAY16 element:RN3 package:CAY16 element:RN4 package:CAY16 element:Z1 package:CT/CN0603 element:Z2 package:CT/CN0603 layer 25 5V text:A0 A0 ANALOG IN AREF text:1 1 GND text:M.Banzi text:D.Cuartielles text:D.Mellis text:TX TX text:RX RX text:G.Martino text:T.Igoe RESET 3V3 text:A1 A1 text:A2 A2 text:A3 A3 text:A4 A4 text:A5 A5 VIN GND GND text:[#=PWM] DIGITAL (PWM= ) text:# text:Arduino Arduino text:TM TM IOREF text:SDA text:SCL element:AD package:1X06 element:C1 package:C0603-ROUND element:C2 package:C0603-ROUND element:C3 package:C0603-ROUND element:C4 package:C0603-ROUND element:C5 package:C0603-ROUND element:C6 package:C0603-ROUND element:C7 package:C0603-ROUND element:C8 package:C0603-ROUND element:C9 package:C0603-ROUND element:C11 package:C0603-ROUND element:D1 package:SMB element:D2 package:MINIMELF element:D3 package:MINIMELF element:F1 package:L1812 element:FD1 package:FIDUCIA-MOUNT element:FD2 package:FIDUCIA-MOUNT element:FD3 package:FIDUCIA-MOUNT element:GROUND package:SJ element:ICSP text:ICSP ICSP package:2X03 element:ICSP text:ICSP ICSP2 package:2X03 element:ICSP1 package:2X03 element:IOH package:1X10@1 element:IOL package:1X08 element:JP2 package:2X02 element:L package:CHIP-LED0805 element:L1 package:0805 element:ON text:ON ON package:CHIP-LED0805 element:PC1 package:PANASONIC_D element:PC2 package:PANASONIC_D element:R1 package:R0603-ROUND element:R2 package:R0603-ROUND element:RESET package:TS42 element:RESET-EN package:SJ element:RN1 package:CAY16 element:RN2 package:CAY16 element:RN3 package:CAY16 element:RN4 package:CAY16 element:RX package:CHIP-LED0805 element:T1 package:SOT-23 element:TX package:CHIP-LED0805 element:U1 package:SOT223 element:U2 package:SOT23-DBV element:U3 package:MLF32 element:U5 package:MSOP08 element:X1 package:POWERSUPPLY_DC-21MM element:X2 package:PN61729 element:Y1 package:QS element:Y2 package:RESONATOR element:Z1 package:CT/CN0603 element:Z2 package:CT/CN0603 element:ZU4 package:DIL28-3 POWER 0 1 TX0 RX0 text:RESET RESET
int led1 = 13;
int delayTime = 200;

void setup () {
	pinMode(led1, OUTPUT);
}

void loop () {

	digitalWrite(led1, HIGH);
	delay(delayTime);
	digitalWrite(led1, LOW);
	delay(delayTime);

}

Ciclo de LED

int led1 = 7;
int led2 = 6;
int led3 = 5;
int led4 = 4;
int delayTime = 200;

void setup () {
	pinMode(led1, OUTPUT);
	pinMode(led2, OUTPUT);
	pinMode(led3, OUTPUT);
	pinMode(led4, OUTPUT);
}

void loop () {

	for (int thisPin = 7; thisPin >= 4; thisPin--) {
		digitalWrite(thisPin, HIGH);
		delay(delayTime);
	}

	for (int thisPin = 7; thisPin >= 4; thisPin--) {
		digitalWrite(thisPin, LOW);
		delay(delayTime);
	}

}

Ardiuno Workshop

By Jonathan “Jon Dotsoy” Delgado Zamorano