Back to Parent

Process

The first step was to figure out how the system would work, which can be visualized with the diagram below. 

A magnet would be placed on a pot, which will activate the hall effect sensor. This rose a problem later on where the magnet was not strong enough so I had to manually simulate the process.



From there I wanted to work on each component separately so I worked on the Hall Effect Sensor, which would turn off if a magnet touches it. In our scenario that would indicate if a pot is on the stove. The code for the hall effect sensor (seen below), was based on the example we went over in class where if a button was pressed the LED would light up. 




The setup for the breadboard is the following: 



I then worked on getting the temperature sensor to work. I based the code for this sensor on Tutorial  #4: Temperature Logger (https://docs.particle.io/tutorials/projects/maker-kit/#tutorial-4-temperature-logger), which makes use of the OneWire library. The following is the code for the temperature sensor. 





When setting up the breadboard I used the bare sensor to test if it could detect room temperature. Once that was verified I changed it to the waterproof sensor to see if it can detect the heat from flames. A video of the working temperature sensor is seen below.


Content Rating

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

0