Skip to content
Snippets Groups Projects
Commit b1f59c78 authored by Myres's avatar Myres
Browse files

Documentation improved.

parent 40680b51
No related branches found
No related tags found
No related merge requests found
......@@ -3,17 +3,19 @@
***************************
* Read sensor values and calculate a PID value from sensor 0.
* Depending on this PID value, a control (relay, valve etc.) is switched.
*
* An additional channel can deactivate the controller as an emergency shut off.
***************************
*/
//** CONSTANTS PARAMETERS change for your application **//
const String version = "1.2.3"; // Version of this script. Filename is added before, date of compilation afterwards.
const int cyclePeriod = 10; //program cycle period in s
const int cyclePeriod = 1; //program cycle period in s
const int controlPin = 11; //Pin by which the control unit is controlled (11 or 12)
const int emergencyPin = -1; // Analog channel to which the emergency sensor is connected. Set to -1 to deactivate
const int emergencyThreshold = 341; // Threshold value, when the control should be deactivated due to emergency activated
const int controlPin = 11; //Pin by which the control unit is controlled (11 or 12)
//** CONSTANTS OF CODE do not change **//
......@@ -233,14 +235,14 @@ void loop(){
Serial.print("cyclePeriod: ");
Serial.print(cyclePeriod);
Serial.print("s, ");
Serial.print("controlPin: ");
Serial.print(controlPin);
Serial.print(", ");
Serial.print("emergencyPin: ");
Serial.print(emergencyPin);
Serial.print(", ");
Serial.print("emergencyThreshold: ");
Serial.print(emergencyThreshold);
Serial.print(", ");
Serial.print("controlPin: ");
Serial.print(controlPin);
Serial.println();
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment