A Simple Internet Appliance- Nicole Korber

Made by Nicole Korber ·

Skills Development 1

Created: December 4th, 2022

0

Outcome

I created a circuit controlled by the Argon device.  The code can be easily edited to pause or light the LED for different periods of time.

0
0
int led1 = D2;
void setup() {
//We want to tell the Argon that we'll use
//D2 as an output pin.
pinMode(led1, OUTPUT);
}

void loop() {
//First... On
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (500);
digitalWrite(led1, HIGH); //Turn ON the LED pins
delay (500); //Wait for 1000mS = 1 second
digitalWrite(led1, LOW);
delay (3000);
}
Click to Expand
0

Process

The first challenge was setting up my Argon.  After I successfully connected the Argon to CMU's network, I set about writing code in Particle for the first time.  The first time I wrote my code, I missed some of the syntax, most notably semi-colons.  However, I was able to find these errors when compiling it.  Next, I wired the breadboard.  The first time I wired it, I did not put my resistor in the correct spot next to the Argon, but I found my error with the help of our TA.  My LED light, and I successfully created my first circuit.  I then was able to change the timing of the pauses and when the LED was lit.  I tried many iterations as recommended in the lab documentation. The code provided was from my last experiment with timing.

0

Next Steps

In the future, I would like to add an external fixture to turn the light on and off, such as a switch.  I would also like to loop my code instead of copy and pasting it to get repeated affects.

0

Reflection

This project refreshed my memory of many basic computing and electricity concepts.  It also introduced me to Particle coding language.  I was concerned it would be difficult for me to use, but it functions very similarly to Java and C++, which I have some experience in.  It also reminded me of high school physics classes where I needed to use resisters and LEDs to make circuits.  I feel like I understand the basics of Particle and the Argon after this lab.

x
Share this Project

This project is only accessible by signed in users. Be considerate and think twice before sharing.


Courses

Focused on
About

Skills Development 1