Back to Parent

Outcome


Outcome

The neopixel is connected with my Google calender with IFTTT. 15 minutes before a meeting on your calendar, IFTTT will call the function. Over the 15 minutes between the Particle function being called, and the start of the meeting, program your Neopixel to slowly fade to red. For 15 minutes after your meeting was due to start have it slowly fade back to white. 

Demo see video below. It is a short demo where the functions happened in 1 minutes. 


Process

  1. Program my Neopixel Ring to display a cool white by default.
  2. Add a Particle Cloud function and use it to change the color to red immediately. Test this with the Particle Console. 
  3. Program my Neopixel to fade to red over 1 minute using millis()
  4. After the initial transition, now program my Neopixel to fade from red back to white over 1 minute using millis()
  5. With those working as quick transitions, test it working over 15 minutes
  6. Hook it up to IFTTT.

I finished the code with the help of TA. He helped me debugged the indentation of the code, which affects the action sequences. 

Reflection

My IFTTT connection shows the function call is failed but the neopixel can fade to red and return to white when the event triggers. I should try to debug this if I have more time. 

Debugging with TA also help me cultivate the habbit of writing code with clear indentation to avoid mistakes when there are many loops or if statements.

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

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