Back to Parent

Outcome


First Sketch

Making an LED Blink

Show Advanced Options
20201105 012903.thumb
Show Advanced Options

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

Exercise 3

  Go back to the original program. Now 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.  

20201105 020723.thumb
Show Advanced Options
Show Advanced Options
20201105 020730.thumb
Show Advanced Options

Making a Connected LED

Controlling LED using the console or app

Show Advanced Options

Exercise 1

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

Show Advanced Options

Exercise 2

  Modify the cloud function as follows:

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

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

Video Documentation

URL : https://www.youtube.com/watch?v=9OZCvdn6R10&list=PLjxBoZC5ywquutqxmxwdcPleYCRpFp4Am&index=1

Show Advanced Options
Drop files here or click to select

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