Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
brew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
João Lino
brew
Commits
e7c0ae3a
Commit
e7c0ae3a
authored
Jun 25, 2017
by
João Lino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log cooking stage
log cooking stage
parent
65f57fa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
brew.h
brew.h
+2
-2
brew.ino
brew.ino
+18
-16
No files found.
brew.h
View file @
e7c0ae3a
...
...
@@ -56,7 +56,7 @@ void xStartStageHeadless( eCookingStages nextStage, bool bPurgePump );
void
xStartStageInteractive
(
unsigned
long
*
stageTime
,
int
*
stageTemperature
,
eCookingStages
nextStage
);
void
xCountTheTime
(
in
t
temperatureRange
,
boolean
bAverageUpDown
);
void
xCountTheTime
(
floa
t
temperatureRange
,
boolean
bAverageUpDown
);
bool
isTimeLeft
();
...
...
@@ -78,7 +78,7 @@ void xSetupStage(eCookingStages nextStage);
void
xTransitionIntoStage
(
eCookingStages
nextStage
);
void
xBasicStageOperation
(
int
iStageTime
,
int
iStageTemperature
,
in
t
iStageTemperatureRange
,
eCookingStages
nextStage
,
boolean
bAverageUpDown
);
void
xBasicStageOperation
(
int
iStageTime
,
int
iStageTemperature
,
floa
t
iStageTemperatureRange
,
eCookingStages
nextStage
,
boolean
bAverageUpDown
);
void
xManageMachineSystems
();
...
...
brew.ino
View file @
e7c0ae3a
...
...
@@ -379,7 +379,7 @@ void loop() {
// ######################### FUNCTIONS ########################
void
xCountTheTime
(
in
t
temperatureMarginRange
,
boolean
bMaximumOfUpDown
)
{
void
xCountTheTime
(
floa
t
temperatureMarginRange
,
boolean
bMaximumOfUpDown
)
{
unsigned
long
now
=
millis
();
// Get current maximum sensed temperaure
...
...
@@ -808,7 +808,7 @@ void xTransitionIntoStage(eCookingStages nextStage) {
xSetupStage
(
nextStage
);
}
void
xBasicStageOperation
(
int
iStageTime
,
int
iStageTemperature
,
in
t
iStageTemperatureRange
,
eCookingStages
nextStage
,
boolean
bMaximumOfUpDown
)
{
void
xBasicStageOperation
(
int
iStageTime
,
int
iStageTemperature
,
floa
t
iStageTemperatureRange
,
eCookingStages
nextStage
,
boolean
bMaximumOfUpDown
)
{
// Account for time spent at the target temperature | Input 1: range in ºC within which the target temperature is considered to be reached
#ifdef DEBUG_OFF
...
...
@@ -851,8 +851,6 @@ void xManageMachineSystems() {
Serial
.
print
(
"|"
);
Serial
.
print
(
now
);
Serial
.
print
(
"|"
);
Serial
.
print
(
clockCounter
);
Serial
.
print
(
"|"
);
if
(
cooking
)
{
Serial
.
print
(
"1"
);
}
...
...
@@ -860,6 +858,10 @@ void xManageMachineSystems() {
Serial
.
print
(
"0"
);
}
Serial
.
print
(
"|"
);
Serial
.
print
(
mdStageMenu
.
_dialog
[
cookingStage
+
1
]
);
Serial
.
print
(
"|"
);
Serial
.
print
(
clockCounter
);
Serial
.
print
(
"|"
);
Serial
.
print
(
cookTemperature
);
Serial
.
print
(
"|"
);
Serial
.
print
(
basePT100
.
getCurrentTemperature
());
...
...
@@ -890,51 +892,51 @@ void xManageMachineSystems() {
// Operate the machine according to the current mode
switch
(
cookingStage
)
{
case
eCookingStage_Startpoint
:
{
xBasicStageOperation
(
startpointTime
,
startpointTemperature
,
0
,
eCookingStage_BetaGlucanase
,
false
);
xBasicStageOperation
(
startpointTime
,
startpointTemperature
,
0
.0
,
eCookingStage_BetaGlucanase
,
false
);
break
;
}
case
eCookingStage_BetaGlucanase
:
{
xBasicStageOperation
(
betaGlucanaseTime
,
betaGlucanaseTemperature
,
3
,
eCookingStage_Debranching
,
true
);
xBasicStageOperation
(
betaGlucanaseTime
,
betaGlucanaseTemperature
,
3
.0
,
eCookingStage_Debranching
,
true
);
break
;
}
case
eCookingStage_Debranching
:
{
xBasicStageOperation
(
debranchingTime
,
debranchingTemperature
,
3
,
eCookingStage_Proteolytic
,
true
);
xBasicStageOperation
(
debranchingTime
,
debranchingTemperature
,
3
.0
,
eCookingStage_Proteolytic
,
true
);
break
;
}
case
eCookingStage_Proteolytic
:
{
xBasicStageOperation
(
proteolyticTime
,
proteolyticTemperature
,
3
,
eCookingStage_BetaAmylase
,
true
);
xBasicStageOperation
(
proteolyticTime
,
proteolyticTemperature
,
3
.0
,
eCookingStage_BetaAmylase
,
true
);
break
;
}
case
eCookingStage_BetaAmylase
:
{
xBasicStageOperation
(
betaAmylaseTime
,
betaAmylaseTemperature
,
4
,
eCookingStage_AlphaAmylase
,
true
);
xBasicStageOperation
(
betaAmylaseTime
,
betaAmylaseTemperature
,
7.0
,
eCookingStage_AlphaAmylase
,
true
);
break
;
}
case
eCookingStage_AlphaAmylase
:
{
xBasicStageOperation
(
alphaAmylaseTime
,
alphaAmylaseTemperature
,
2
,
eCookingStage_Mashout
,
true
);
xBasicStageOperation
(
alphaAmylaseTime
,
alphaAmylaseTemperature
,
2
.5
,
eCookingStage_Mashout
,
true
);
break
;
}
case
eCookingStage_Mashout
:
{
xBasicStageOperation
(
mashoutTime
,
mashoutTemperature
,
1
,
eCookingStage_Recirculation
,
true
);
xBasicStageOperation
(
mashoutTime
,
mashoutTemperature
,
1
.0
,
eCookingStage_Recirculation
,
true
);
break
;
}
case
eCookingStage_Recirculation
:
{
xBasicStageOperation
(
recirculationTime
,
recirculationTemperature
,
1
,
eCookingStage_Sparge
,
true
);
xBasicStageOperation
(
recirculationTime
,
recirculationTemperature
,
1
.0
,
eCookingStage_Sparge
,
true
);
break
;
}
case
eCookingStage_Sparge
:
{
xBasicStageOperation
(
spargeTime
,
spargeTemperature
,
3
,
eCookingStage_Boil
,
false
);
xBasicStageOperation
(
spargeTime
,
spargeTemperature
,
3
.0
,
eCookingStage_Boil
,
false
);
break
;
}
case
eCookingStage_Boil
:
{
xBasicStageOperation
(
boilTime
,
boilTemperature
,
2
,
eCookingStage_Cooling
,
false
);
xBasicStageOperation
(
boilTime
,
boilTemperature
,
2
.0
,
eCookingStage_Cooling
,
false
);
break
;
}
case
eCookingStage_Cooling
:
{
xBasicStageOperation
(
coolingTime
,
coolingTemperature
,
0
,
eCookingStage_Done
,
false
);
xBasicStageOperation
(
coolingTime
,
coolingTemperature
,
0
.0
,
eCookingStage_Done
,
false
);
break
;
}
case
eCookingStage_Clean
:
{
xBasicStageOperation
(
cleaningTime
,
cleaningTemperature
,
0
,
eCookingStage_Done
,
false
);
xBasicStageOperation
(
cleaningTime
,
cleaningTemperature
,
0
.0
,
eCookingStage_Done
,
false
);
break
;
}
case
eCookingStage_Purge
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment