Back to Parent

Outcome


Intention

First Sketch

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.

Show Advanced Options

Exercise 3

Add a second LED to the circuit. 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
Show Advanced Options

Connected LED

Exercise 1

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

Show Advanced Options

Exercise 2

Pass the number of times user 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

Exercise 3

Add a second LED to the circuit.
Change the program and cloud function to allow you to control both LEDs remotely.

Show Advanced Options
13607e63caa30746e242d34cc58b82d.thumb
Show Advanced Options
1103assicover.thumb
Show Advanced Options

Process

I completed several parts of the exercise by referring to the instructions listed on the DIoT website, trying to adjust the details and order of parts of the sample code along the way to see if there were different results. In addition to the parts described in the guide, I spent more time practicing connecting and organizing the circuit, checking the code for syntax errors such as the placement of parentheses and spaces, and reading the programming syntax files.

Reflection / Next Steps

1. I have questions about controlling two LEDs separately in Exercises 2-3. The LED blinks as expected when the two functions are executed separately. If I enter the number of times and execute both functions at the same time, there will be an error message, I think there may still be problems with some operations.

2. Need to spend time to read the programming guide document.

3. Some hardware still need to be familiar with, such as switching network, dealing with network and synchronization latency issues.

Drop files here or click to select

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