Back to Parent

Outcome


Process:

I initiated this project by going through the course instructions for making a circuit and coding in Arduino. After following the initial steps of connecting an LED to a particle cloud, I started learning about for loops and if conditions to control the LED from the particle cloud.  The main challenge for me was to think of a way to fade two led pins by giving brightness from the Particle platform. I learned about converting the user input into an integer value using the toInt() function.

Reflection: 

In this project, I learned how to code using the particle platform and control LED through the cloud. It also helped me learn the basics of Arduino language (Variables, Loops, if Conditions). It helped me develop confidence in making basic circuits. I tried the Controlling PWM exercise as well to fade two LEDs using the user input.   

Next Steps : 

I would like to learn more about the inbuilt functions and more about the other Pins of Argon. 

First Sketch: Making an LED Blink

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

Show Advanced Options
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
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.  

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

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

Controlling PWM: Using analogWrite

Exercise 2: 

Go back to the original program. Now add a second LED to the circuit. 

Set the second LED to work as the opposite amount of brightness to the first. For example if the first is set at 55, the second should be set at 200. Hint: led2Brightness = (255 - led1Brightness)

Show Advanced Options
Show Advanced Options
Drop files here or click to select

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