Back to Parent

Outcome


Outcome

    The outcome of this lab was a successful circuit and code that operated as intended. The circuit is very simple and only consists of the Particle Argon board and a Neopixel strip. The purpose of this device is to provide a calendar alert that fades the Neopixel from white to red 15 minutes before every calendar event in a google calendar, and then fade back to white once the event is ending.

Process

The first step in creating this device was to assemble the circuit. This was very straightforward and only involved placing the Argon on the breadboard and connecting the Neopixel strip to pin D2. The next step was to create the code that would control the Neopixel fading. In order to not tie up the board processor for 15 minutes, the millis() command was used to check for the passage of time and incrementally fade the Neopixel. A meetingStart function was created to handle incoming requests from the particle cloud. When called, this function starts the fading of the Neopixel. The next step was to handle the google calendar integration. This was performed by using IFTTT, which can integrate google calendar natively. IFTTT was configured to execute a webhook that calls the meetingStart particle function when there is a meeting on my calendar in 15 minutes. This required inputting the particle cloud URL and authorization key for my particle account.

Reflection

This was a really cool lab. It challenged my understanding of how timing works in digital devices. I never knew how difficult it could be to handle multiple things simultaneously or how thoughtful you have to be when designing your code. I also found the IFTTT integration to be really useful. There are so many things that can be accomplished, and once you figure out the integration mechanism with particle cloud the first time, it really opens up opportunities for connected devices. It was a little challenging at first to figure out what exactly needed to be done to configure IFTTT and particle, but now that I know how to do it I feel confident that I can use this integration in the future.

Img 8336.thumb
Show Advanced Options
Show Advanced Options
Screenshot 2022 12 02 at 10.08.37 am.thumb
Show Advanced Options
Screenshot 2022 12 02 at 10.09.21 am.thumb
Show Advanced Options
Show Advanced Options
Drop files here or click to select

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