Open openspirulina opened 5 years ago
This sensor should transmit the value of Amperes. With this value it's possible to know whether agitation is ON or OFF.
PIR it's not working in 100% humidity atmosphere.
In server with this numerical value, the logic operational should be: If Amperes> limit_min_amperes --> No agitation. if Amperes > limit_max_amperes --> Problem with agitation.
Limit_min_amperes Limit_max_amperes should be a number defined by each spirulina's culture.
Added the function capture_current_acs712
Pending save to sd and send via ethernet, PIR function could be optional in a future as an alarm for the outside of the greenhouse.
Finally the sensor used will be: Analog AC current sensor from dfrobot: https://www.dfrobot.com/product-1486.html
Example of code to be implemented: https://www.dfrobot.com/wiki/index.php/Gravity:Analog_AC_Current_Sensor_(SKU:SEN0211)
There should be two variables for each unit. Starting the loop by getting the current and saving it as current_ini. Them wait for 30 second. Continue the loop, and do the capture_DO at the end. Before it, at the end of the loop do another mesure of AC and save it as current_end
There should be the possibility to connect up to 6 units.
the option to add current sensor.
option_current_sensor { //No sensor; ACS 712:Sensor inside; SCT013: no invasive none, acs712, //Invasive sensor. Source: https://naylampmechatronics.com/blog/48_tutorial-sensor-de-corriente-acs712.html sct013 //Non invasive sensor with internal burden resistence. http://www.gonzalogalvan.es/medidor-de-consumo-lectura-de-la-corriente-con-arduino/ };
Also it should include the version of each sensor, for exemple for SCT 013 it can be: 30A/1V or 15A/1V or others.. (factor and multiplier variables) And sensibility variable value for ACS712 sensor