Skills Dev 1

Made by Tianyi He

A Simple Internet Appliance

Created: November 10th, 2023

0

Intention

I intend to start with argon and learn to build my first simple internet appliance using it.

0

Process

0

E1

This was very straightforward and I got it first try except for forgetting the semicolon.

0
int led1 = D2;

void setup() {
    pinMode(led1, OUTPUT);
}

void loop() {
    digitalWrite(led1, HIGH);
    
    delay(3000);
    
    digitalWrite(led1, LOW);
    
    delay(3000);

}
Click to Expand
0
0

E2

This was also straightforward and I did not encounter any problems.

0
int led1 = D2;

void setup() {
    pinMode(led1, OUTPUT);
}

void loop() {
    for(int i = 0; i < 5; i++) {
        digitalWrite(led1, HIGH);
        delay(500);
        
        digitalWrite(led1, LOW);
        delay(500);
    }
     
    digitalWrite(led1, LOW);
    delay(3000);
}
Click to Expand
0
0

E3

For this question, at first, I did not hook the new LED to a new port, and then I realized the problem. After that, it became straightforward.

0
int led1 = D2;
int led2 = D3;
void setup() {
    pinMode(led1, OUTPUT);
    pinMode(led2, OUTPUT);
}

void loop() {
    digitalWrite(led1, HIGH);
    digitalWrite(led2, LOW);
    delay(500);
    digitalWrite(led1, LOW);
    digitalWrite(led2, HIGH);
    delay(500);
}
Click to Expand
0
0

Reflection

I learned that problems that seem simple might not be that straightforward when you first do it. Even simple problems require trial and error.

x
Share this Project

Courses

48-675 Designing for the Internet of Things

· 11 members

A hands-on introductory course exploring the Internet of Things and connected product experiences.


About

A Simple Internet Appliance