Back to Parent

Outcome


The first step in this project was getting the neopixel connected. I was using a 16x WS2812 neopixel. After getting. a white light, I changed the light to purple which is what you will see below. 

Skillsdev3 1.thumb
Show Advanced Options
Show Advanced Options

For the first exercise, changed the neopixel behavior by making it light up pixel by pixel and then turning off pixel by pixel. It was pretty simple - just an addition of another for loop. 

Show Advanced Options
Show Advanced Options

For exercise 2, I modified the behavior of the neopixel so that each pixel lights up and turns off one at a time. This required a simple change to the structure of the code. 

Show Advanced Options
Show Advanced Options

For the third exercise, I made the neopixel blink the colors blue, red, green, and white in that order on repeat. I think I inefficiently coded this with the number of for loops I made. I think this could have been done with a nested loop somehow. 

Show Advanced Options
Show Advanced Options

Now, I tried to set up a particle function and call that function using IFTTT. The idea was that when a google calendar event is added, 15 minutes before the event the neopixel will turn red. the end goal is to create an ambient orb that will fade to red over 15 minutes. But let's do this in baby steps. 

Show Advanced Options
Yayy.thumb
Show Advanced Options

I had trouble using millis(). I felt like it wasn't really working how it should be. So I decided to code the fading a different way. The measures right now makes the light change much faster than 15 minutes and so is not as ambient as it could be. However, it does start 15 min before the meeting and consistently get brighter. 

Show Advanced Options
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.