Back to Parent

Process

Show a record of your work as it progressed. This should include: components used, photos and videos of the circuits assembled, code (and versions of your code), reflections and challenges encountered, how you solved problems, iterated etc. Be able to tell the story of your work.  

Overall, I worked fairly iteratively to build my circuit. I first began with creating a simple circuit with one pressure sensor. I used to the embedded LED in the particle to read if the pressure on the sensor was above a certain threshold and used a cloud variable to output the overall pressure in order to give a better indication of what the threshold should be.

One the first pressure sensor was working, another was added and LEDs were added to the system. At this point, I hit two major roadblocks: 'if'/'while' statments and LED usage.

When I originally implemented 'if' statements, the LEDs would turn on as soon as pressure was applied but would not turn off once it was used. I tried to remedy this problem by using while statements. Unfortunately, the while statements kept crashing my particle and had to be removed. Daragh helped me work around this problem by adding a function that would constantly update the LEDs  - allowing me to return to nested 'if' statements to carry out the desired functionality. 

The other major roadblock was my usage of LEDs. Originally, I wanted to use four LEDs to indicate the four combinations of scenarios (both kids home, neither kids home, sara home, raha home) but this became difficult in coding and was to determined to be a redundant feature - just adding complexity and confusion. For that reason, it was eliminated.

Once all of this was cleared up, a button was finally added to enable the system to be turned on and off and it was all systems go! 


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0