Back to Parent

Outcome


Intention

I want to get to know some basic logic of IoT programming through these three exercises.

Process

For the first and second one, I follow the logic of Loop to control the status of LED. For the third exercise, at first the second LED was not worked, I tried many times to adjust my code, finally, I found it was because the jumper wire put in the wrong place (front of the second LED)

Reflection

Now I just finish these three basic skill tests, I got to know how to use the loop logic and how to control two LED through the code. Maybe I will try to use multiple methods and add more sensors to control the blink of LED like the sound, the temperature, or some other interesting things.

Exercise 1: 

Modify the program to Blink on and off every 3 seconds.  

Show Advanced Options

Exercise 2:   

Change the program to blink on and off 5 times then stop for 3 seconds. Each blink should be 0.5s (a half second)  

Show Advanced Options
Iot.thumb
Show Advanced Options

Exercise 3:     

Program the LED’s to alternate blinks i.e. when LED 1 turns on, LED 2 turns off, then when LED 2 turns on, LED 1 turns off.  

Show Advanced Options
Led test.thumb
Show Advanced Options
Drop files here or click to select

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