Developing a simple blinking led to a programmed rhythm as an introduction to IoT. I wanted to develop an understanding on connected a simple LED appliance to a cloud so that it can be controlled remotely. Also building skills in connecting LEDS and controlling two to create patterns.
Following along with the simple internet appliance document, I began with connecting a single LED to blink based on code in my particle build, then adding a second to learn how to control two. Once this was functioning, I connected the LED to cloud so that it could be controlled across my particle console sandbox. Here I also began with one LED to respond at HIGH or LOW being called, added a blinking pattern, and tried again with two LEDS. However when trying to control two, I came across an issue where when called on HIGH, the lights would blink but only for one cycle. Since I wanted this to last longer as a consistent loop until LOW was called to stop it, I turned to GPT for help in understanding a solution to edit my code. Here I learned about using a global boolean variable that can be used to control the behavior of my LEDS in my code later under the loop with an if else statement.
In the end, I was able to successfully have my two LEDs blink in a consistent pattern back and forth when HIGH was called, and turn off when LOW was called. I've linked images to my code along the way as well as a video of the final working product.
Throughout this exercise, I enjoyed learning about the way in which LEDS connect and respond across the board to remote connection. While I am completely new to learning about using a Photon2 let alone working with IoT, I think that I will continue to strengthen my understanding around the physical components and how they connect and what purposes they serve as I continue to make future projects. While my understanding of the physical components is not the strongest, I feel that with repetition, I will better recall their purposes and how to use them, eventually creating my own projects. As for the programming portion, I think this project really strengthened my understanding on how the board connects to the internet and ways in which I am able to manipulate the board not only directly but across the internet as well. This to me was especially interesting, as I have only had minimal experience with Arduino, where there was only ever direct contact. I'm excited to see where else I can apply these skills in my other projects as well.