Skill Dev III

Made by Donner Kahl · UNLISTED (SHOWN IN POOLS)

Mimic the ambient orb by creating a device that uses neopixels to react to a IFTTT webhook.

Created: December 19th, 2022

0

Outcome

    • I developed neopixel code that reacts to an IFTTT, but did not have the opportunity to video the final product due to time spent on the reimagining project. However, the reimagining project has many of the same skills and I worked primarily on the code for that project. The final product included the use of webhooks and millis().

0

Process

I spent a lot of time familiarizing myself with the neopixels. I worked on each of the skill dev practices, which left less time for the final product. It required so much time because this week had a large jump in material from previous weeks.

I allowed for a function to specify the color of the neopixel.

Then I had each neopixel light up in a row with different colors.

I ended with a code that interacted with a IFTTT event.

0

Reflection

I struggled with the IFTTT event. I did not realize that the event created a boolean activation which would then activate a function. Moreover, I needed to spend more time working on the final neopixel deliverable, I spent too much time on exercises.

0
// This #include statement was automatically added by the Particle IDE.
#include <neopixel.h>

//Set the neopixel to pin 5
#define PIXEL_PIN D4
//Set the pixel count
#define PIXEL_COUNT 32
//Set the neopixel type
#define PIXEL_TYPE WS2812

long last = 0;
void setup()
{
strip.begin();
strip.show(); // Initialize all pixels to 'off'
Particle.function("Event",event_flag);
}

void event_flag(const char *event, const char *data)
{
    activate_neopixel();

}

void activate_neopixel( ){
    uint16_t i;
    uint32_t off = strip.Color(0, 0, 0,0);
    uint32_t color = strip.Color(0, 0, 205,0);
    uint32_t w = strip.Color(25,25,25,25);
    int j =0;

    for(i=0; i< strip.numPixels(); i++)
        {
           strip.setPixelColor(i, color );
           strip.show();
       }
    long start = millis();
       while (start - last < 900000)
       {
         j++;
         for(i=0; i< strip.numPixels(); i++)
         {
           strip.setPixelColor(i, 25,25,205-j,25 );
           strip.show();
         }
         delay(5000);
       }
}
Click to Expand
x
Share this Project

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


Courses

About

Mimic the ambient orb by creating a device that uses neopixels to react to a IFTTT webhook.