Back to Parent

Outcome


Making an LED Blink: 

Exercise 1

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

S  37847050.thumb
Show Advanced Options
Show Advanced Options
Show Advanced Options

Exercise 2

blink on and off 5 times then stop for 3 sec

Show Advanced Options
Show Advanced Options

Exercise 3

add a second LED to the circuit and alternate blinks

Show Advanced Options
Show Advanced Options

Making a Connected LED:

Exercise 1

Modify the cloud function to blink the LED 3 times after it is called

Show Advanced Options
Show Advanced Options

Exercise 2

Instead of passing a HIGH Or LOW string pass the number of times you would like it to blink.
Set the function to blink that number of times
Finally once it has completed all of the blinking it should turn the LED off .

Show Advanced Options
Show Advanced Options

Exercise 3

Go back to the original program. Now add a second LED to the circuit.
Change the program and cloud function to allow you to control both LEDs remotely  

Show Advanced Options
Show Advanced Options

Process & Reflection

For the "making an LED blink" part of the exercise, I think it is quite straightforward by following the instructions. It took a bit of experiments and thinking through what should be changed in coding in the different exercises, as well as the circuit, but it helped me understand the coding and circuits better. 

"Making a Connected LED" took longer for me to figure out the coding. I had trouble with exercise 3 in connected LED particularly. I tried several ways in the coding to set up 2 functions on console; however, I wasn't able to control one LED through one function; whenever I try to control one LED through console, both LED will light up. In the end, it only worked when I use one function, and set up different "numbers" corresponding to different actions for particular LED, ex. type in 1 to turn on LED 1; type in 2 to turn on LED 2". I think there should be a better way of controlling the different LED remotely; with more experiments and knowledge in coding, I will probably be more familiar with it. 

Drop files here or click to select

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