Back to Parent

Outcome


Outcome

The Particle & LED integration project portrayed how Particle can be used to remotely control different experiments on LED: Blinking, Multiple LED Testing & Use of Functions.

Process 

Process is divided into two major parts with three exercises each to exemplify a more advanced feature/functionality. These experiments are shown below:

Making an LED Blink

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: 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

Making a Connected LED

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

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

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

Final Electric Circuit Setup

Shown Below

Whatsapp image 2021 10 28 at 12.48.12 pm.thumb
Show Advanced Options

Reflection

o Following the tutorial is immensely helpful in learning how Particle works, and especially to get everything set up and code implemented on the circuit.

o Connecting Particle, and writing the code is documented beautifully in the documentation.

o It was a little challenging to understand the Particle.function as apparently only integers can be sent back as the ‘return_value’ variable, preventing fun messages to be exported like “Complete!”.

Finally, it was really fun to use the command line to access the functions. Finding the access token was a little challenging to jump into several other webpages.

o Aside from the return_value variable lesson, the command can only be in the String format, and not able to be changed at all.

o Implementation on the code can be much faster when understanding C/C++ better.

o Particle signal can be disrupted, especially in Exercise 3 of Making a Connected LED. When one LED is blinking, a signal to turn on the second LED will cut out the first LED, causing the first LED to wait for the second LED to finish blinking before it can complete its full blinking cycle.


Next Steps

o Testing out timing of the LED blinks to prevent disruption would need more exploration.


Drop files here or click to select

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