Every woman has once left the house with accidentally not turning off their straightener after styling their hair. This project is designed to use argons and sensors to send a signal to the cloud to message or act upon with the directions of a code. The topic of this project is detecting if the straightener is left on after being used. The two sensors used are a current switch sensor and a digital temperature sensor. Not ideally the goal to keep a straightener on, however, for this project, the straightener needs to be left on. The current switch sensor detects if the straightener is left on, by the number of amps flowing through the wire. The current sensor is connected to argon 1. If the amp value is greater than or equal to 2.0 amps, the straightener is on. argon 1 publishes “straightener-on” to the argon 2. Argon 1, then uses the digital temperature sensor to send temperature values to the Webhook and publish to argon 2. Argon 2 stores and reads the temperature data in Fahrenheit degrees. Every 10 seconds, if argon 2 subscribes a temperature value from the Webhook, it publishes “a temperature value” to argon 1; this indicates the straightener is still on. Once the straightener is manually turned off by hand, there should be no current flowing through the wire greater than 0.2 amps. The current sensor indicates a stop for the temperature publish to both Webhook and argon 2. Therefore argon 1, should no longer receive a “temperature value” published by argon 2; showing the straightener has been turned off and/or unplugged from the power source. Resolving the problem that may turn into a bigger problem, known as catching fire.
Below are photos, a flow chart of the project, and a video of explanation. Further below are data and results from testing and communicating between the two argons and the cloud.
In the video below, demonstrates the reactions of the lights on the current sensor when the straightener is turned on. If the current switch sensor detects 2.0 amps or greater the light will turn on. Due to safety precautions of the straightener, there will be a pulse in the light. The current switch sensor is detecting current through a rewired extension cord the straightener is plugged into. You can also see the digital temperature sensor lit up, being connected to argon 1, which is also connected to the laptop via USB. For the purposes of not burning the electric sensor, it was tested at a safe range from the straightener's extreme heat output. Lastly, you can also see the two argons being connected to WiFi collecting data based off the code.
Results and DataThe graph below is the data communicated from the two argons. You can see the argon 1 publishing a message to Argon 2 that the straightener is on from the current switch sensor detecting an amp greater than 0.2. Argon 2 is publishing a message to argon 1 with temperature reading from the temperature sensor. Below is a screenshot of the communication back and forth between the two argons.
As you can see the temperature reading pulses and steadily increases over a short period of time as the straightener heats up. Looking at the chart and data below, there should be a temperature reduction, due to the digital temperature sensor being about 1.5 inches away from the straighter. Now if the digital temperature sensor was directly on the panels of the straightener, the temperature readings should be pretty consistent with the straightener increasing to the setting heat temperature; however, for a safety measurement doing this will directly burn/melt the temperature sensor because of the high heat produced from the straightener. Ideally for this project, the digital temperature sensor should detect a reading if and only from the current switch sensor detecting a 0.2 amp current or higher. Meaning the straightener temperature should read a temperature higher than normal room temperature.
Below are the data points from the plot chart above.
Comments