Back to Parent

Outcome


INTENTION

First Sketch: Making an LED Blink

Exercise 1 -1: Make an LED on and off with 3-sec intervals. Video

Exercise 1- 2: Make an LED blink a specific number of times. Video

Exercise 1-3: Make two LEDs in alternate blinks. Video

Making a Connected LED

Exercise 2-1: Make a cloud-based control to blink an LED 3 times. Video

Exercise 2-2: Make a cloud-based control to blink an LED a customized number of times. Video

Exercise 2-3: Make a cloud-based control to blink two LEDs a customized number of times. Video

PROCESS

Based on the instructions on the DioT website, I tried to use the "for" loop to set a specific number of times instead of using multiple HIGH and LOW as the LED output.

REFLECTION

I tried multiple times to use the combination of the "for" loop and the "if" condition to set up the program. Yet, it was not successful as the LEDs didn't light up in the way I expected. Fortunately, I figured out the problem, which is the order of the lines of code. Since I shifted the order of digitalWrite() to the lines within each curly bracket under the "if" conditions, I could achieve my intention. 


Show Advanced Options
Show Advanced Options
Show Advanced Options
Show Advanced Options
Show Advanced Options
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.