This is a fully implemented Library and is intended to be used as is. Users may modify and use the library in any way they see fit. The intended use is to search Community Libraries under Particle's WEB IDE for Temperature_Alarm. Once found make sure the application tab is selected, then click Use This Example button on the left. Then flash the firmware into your Particle Module. For more information see Particle's documentation.
What it doesThis library does two things. It monitors the temperature using the SI7020-A20 temperature sensor. Secondly it turns a buzzer on to indicate an alarm situation. The alarm can trip when a temperature gets too high or too low.
The firmware publishes a function called AlarmLimit which takes a string argument. This argument sets the alarm limit to turn the buzzer on. The formwat for the alarm is for example: high;200.00 low;32.00 The first part of the argument indicates whether the alarm should trip when the temperature is above a limit or below a limit. If high is passed as the first part the alarm will turn on when the temperature gets too high. If low is passed as the first part the alarm will turn off when the temperature gets too low. The second part of the argument is the temperature limit. This should be a decimal formatted temperature such as 75.00 The first and second part of the arguments should always be seperated by a semi-colon as shown in the examples above.
This firmware also publishes the current temperature as a variable on Particle's server.
Comments
Please log in or sign up to comment.