Skills Dev I: A simple internet appliance

Made by Maria Jose Fernandez · UNLISTED (SHOWN IN POOLS)

Transform a basic LED circuit into an online connected internet appliance

Created: November 3rd, 2022

0

Intention

This skills development exercise was mainly focused on understanding the basics of a connected appliance to the cloud. The goals were to make a led light blink under a series of rules written in code and connect it to the cloud. 

For me, its interesting to learn about the interconnected environment that surrounds us and understand how it works and the main pieces that make iot a reality. It also helps land the theory seen every week and identify how different networks behave. 

I believe having some knowhow on IoT technologies and design will allow me to involve myself in more technical projects in my work. 

0

Process

First, I tried understanding the function and purpose of each piece in the toolkit. Once I recognized the materials, I started with the connections and acccount creation of the different softwares.

The first step of building the prototype consisted of connecting the microcontroller to the wifi network and to the particle app. From there I started connecting the led bulbs, jumper wires, etc. until it took the form of the example.

After that, I started writing the code to send the instructions to light the bulb. This is the part were I had the most problems. I still find it difficult to code or understand some of the functions so I took me more time to do the exercises and connect it to the cloud.


0

Reflection

The foundation of every IoT device is the microcontroller and this connection is essential for having all the instructions respond to the code.

I think this requires a lot of patience and attention to detail; putting jump wires or resistors in the wrong position could alter the whole circuit.

My areas of improvement are the coding part of the exercises.

0

MAKING A LED BLINK

0
int led1 = D2;

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

void loop() {
    
digitalWrite(led1, HIGH);

delay(1000);

digitalWrite(led1, LOW);

delay(1000);

}
Click to Expand
0

EXERCISE 1

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

Exercise 2

0
int led1 = D2;

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

void loop() {
    
digitalWrite(led1, HIGH);

delay(3000);

digitalWrite(led1, LOW);

delay(3000);

digitalWrite(led1, HIGH);

delay(3000);

digitalWrite(led1, LOW);

delay(3000);

digitalWrite(led1, HIGH);

delay(3000);

digitalWrite(led1, LOW);

delay(3000);

digitalWrite(led1, HIGH);

delay(3000);

digitalWrite(led1, LOW);

delay(3000);

digitalWrite(led1, HIGH);

delay(3000);

digitalWrite(led1, LOW);

delay(3000);

}
Click to Expand
0

MAKING A CONNECTED LED 

0
int led1 = D2;

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

digitalWrite(led1, LOW);

Particle.function("led", ledControl);

}

int ledControl(String command)
{
   int state = LOW;

   // find out the state of the led
   if(command == "HIGH"){
	   state = HIGH;
   }else if(command == "LOW"){ 
	   state = LOW;
   }else{
	   return -1;
   }

   // write to the appropriate pin
   digitalWrite(led1, state);
   return 1;
}

void loop() {
Click to Expand
0
x
Share this Project

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


Courses

About

Transform a basic LED circuit into an online connected internet appliance