Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Taller Informe Arduino Thinkercad
Taller Informe Arduino Thinkercad
Presentado A
Diego Salcedo
Aprendiz
Santiago Arboleda
CDITI SENA
Risaralda, Dosquebradas
Arduino
1824452
En este circuito básicamente SE DEDINEN TIEMPOS, en void loop se definia esta función Millis
como entrada y básicamente lo que se hacia era un salto de tres segundos donde se enciende el
LED1 y seguira encendido hasta los tres segundos posteriores, en el segundo seis se apagara hasta
que llegue al segundo 9 y así sucesivamente . Definiendo con un digitalwrite el encendido y el
apagado (HIGH y LOW).
CODIGO:
void setup() {
Serial.begin(9600);
tiempo1 = millis();
pinMode(led1, OUTPUT);
void loop() {
tiempo2 = millis();
tiempoSegundos = tiempo1/3000;
digitalWrite(led1, HIGH);
tiempo4 = millis();
tiempoSegundos1 = tiempo3/6000;
digitalWrite(led1, LOW);
Serial.print("led1");
Serial.print(tiempoSegundos);
LINK: https://www.tinkercad.com/things/baAah0IJmcF-1-led/editel?sharecode=aU7-
xMsfEP2HNfWQaRFvEYo4i3h0l7YccDL575OJBL0
EJEMPLO 1
CODIGO:
void setup() {
Serial.begin(9600);
tiempo1 = millis();
void loop() {
tiempo2 = millis();
tiempoSegundos = tiempo1/1000;
Serial.print(tiempoSegundos);
LINK: https://www.tinkercad.com/things/6Z8vjDniS6m-sizzling-snaget/editel?tenant=circuits?
sharecode=PuSrt8i8qA3ICTiE4DcP3vqtdPJVtkCbfEX9OhlhMic