Skills Dev 1: Simple Internet Appliance

Made by Tyler Howe · UNLISTED (SHOWN IN POOLS)

Created: November 27th, 2022

0

Intention

The goal of this lab was to become familiar with the Argon and turn on a simple LED.

0

Process

First, I put together the circuit board using the Particle Argon, 1 LED, and 4 wires.


Ultimately I was able to turn on the LED and make it blink at different time intervals. Then I was able to alternate blinking of two LEDs. 


Design for Internet of Things: Lab 1 Exercise 0  

https://youtube.com/shorts/KTGLjMuguj4

0
int ledPin = D2;

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

void loop() {
  // First... On
  digitalWrite(ledPin, HIGH);   // Turn ON the LED pins
  delay(1000);               // Wait for 1000mS = 1 second

  // Now... Off
  digitalWrite(ledPin, LOW);   // Turn OFF the LED pins
  delay(1000);               // Wait for 1000mS = 1 second
  // rinse + repeat

}
Click to Expand
0

Design for Internet of Things: Lab 1 Exercise 1

https://youtube.com/shorts/aiUhuo8BZIk

0
int ledPin = D2;

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

void loop() {
  // First... On
  digitalWrite(ledPin, HIGH);   // Turn ON the LED pins
  delay(3000);               // Wait for 1000mS = 1 second

  // Now... Off
  digitalWrite(ledPin, LOW);   // Turn OFF the LED pins
  delay(3000);               // Wait for 1000mS = 1 second
  // rinse + repeat

}
Click to Expand
0

Design for Internet of Things: Lab 1 Exercise 2

https://youtube.com/shorts/t3bGfnQAU8Y

0
int led = D2;

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

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

Design for Internet of Things: Lab 1 Exercise 3

https://youtube.com/shorts/atIDcJozK5g

0
int led1 = D2;
int led2 = D3;

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

}

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

This project is only listed in this pool. Be considerate and think twice before sharing.


Courses

About

~