Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Sketches
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NLOQO
Arduino Sketches
Commits
b1f59c78
Commit
b1f59c78
authored
1 year ago
by
Myres
Browse files
Options
Downloads
Patches
Plain Diff
Documentation improved.
parent
40680b51
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TemperatureController/TemperatureController.ino
+7
-5
7 additions, 5 deletions
TemperatureController/TemperatureController.ino
with
7 additions
and
5 deletions
TemperatureController/TemperatureController.ino
+
7
−
5
View file @
b1f59c78
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment