Skip to content

Commit

Permalink
Version 2.02
Browse files Browse the repository at this point in the history
- Prevent going into the bake menu when there is a TC error
- Set FAN to Off by default in settings
- Fixed some incorrect comments
- Made TC error more visible on menu screen
  • Loading branch information
UnexpectedMaker committed Dec 20, 2020
1 parent 29f8a3f commit 9ec6c9e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 16 deletions.
29 changes: 21 additions & 8 deletions Code/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,44 @@ Reflow Master V1 and Reflow Master V2
Reflow Master V2 HISTORY:
-------------------------

- 19/12/2020 v2.00 - Initial release.
- 19/12/2020 v2.00
- Initial release.
- 20/12/2020 v2.01
- Increased max bake time to 3 hours
- Added long press for Bake Time & Temp adjustment to quickly change values, clamped at max, so it won't loop
- Forgot to hookup minBakeTemp, minBakeTime, maxBakeTemp, maxBakeTemp variables to buttons
- Oven was not turned off correctly after the bake ended
- 20/12/2020 v2.02
- Prevent going into the bake menu when there is a TC error
- Set FAN to Off by default in settings
- Fixed some incorrect comments
- Made TC error more visible on menu screen


Reflow Master V1 HISTORY:
-------------------------

- 01/08/2018 v1.0 - Initial release.
- 13/08/2018 v1.01 - Settings UI button now change to show SELECT or CHANGE depending on what is selected
- 27/08/2018 v1.02 - Added tangents to the curve for ESP32 support, Improved graph curves, fixed some UI glitches, made end graph time value be the end profile time
- 28/08/2018 v1.03 - Added some graph smoothing
- 01/08/2018 v1.0
- Initial release.
- 13/08/2018 v1.01
- Settings UI button now change to show SELECT or CHANGE depending on what is selected
- 27/08/2018 v1.02
- Added tangents to the curve for ESP32 support, Improved graph curves, fixed some UI glitches, made end graph time value be the end profile time
- 28/08/2018 v1.03
- Added some graph smoothing
- 20/05/2019 v1.04
- Increased max curve to support profiles up to 8mins
- Added fan on time after reflow for cooldown settings
- Added extra profile for Ju Feng Medium temp paste
- 09/07/2019 v1.05 - Fixed some bugs, Thanks Tablatronix!
- 16/09/2019 v1.06 - Fixed probe offset temp not changing in settings
- 09/07/2019 v1.05
- Fixed some bugs, Thanks Tablatronix!
- 16/09/2019 v1.06
- Fixed probe offset temp not changing in settings
- 02/07/2020 v1.07
- Cleaned up some Fan control and tracking code
- Cleaned up some debug messages
- 13/07/2020 v1.08 - Fixed bug in DEBUG mode
- 13/07/2020 v1.08
- Fixed bug in DEBUG mode


Open Source License
Expand Down
26 changes: 18 additions & 8 deletions Code/Reflow_Master_v2/Reflow_Master_v2.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
---------------------------------------------------------------------------
Reflow Master Control - v2.01 - 20/12/2020.
Reflow Master Control - v2.02 - 20/12/2020.
AUTHOR/LICENSE:
Created by Seon Rozenblum - seon@unexpectedmaker.com
Expand Down Expand Up @@ -36,6 +36,10 @@
- Increased max bake time to 3 hours
- Added long press for Bake Time & Temp to quickly change values, clamped at max, so it won't loop
- Oven was not turned off correctly after the bake ended
20/12/2020 v2.02 - Prevent going into the Bake menu when there is a thermocouple error
- Set FAN to Off by default
- Fixed some incorrect comments
- Made TC error more visible
---------------------------------------------------------------------------
*/
Expand Down Expand Up @@ -107,7 +111,7 @@
// Save data struct
typedef struct {
boolean valid = false;
boolean useFan = true;
boolean useFan = false;
int fanTimeAfterReflow = 60;
byte paste = 0;
float power = 1;
Expand Down Expand Up @@ -139,9 +143,10 @@ enum states {
ABORT = 99
} state;

const String ver = "2.01";
const String ver = "2.02";
bool newSettings = false;

// TC variables
long nextTempRead;
long nextTempAvgRead;
int avgReadCount = 0;
Expand All @@ -157,9 +162,10 @@ byte currentBakeTimeCounter = 0;
int lastTempDirection = 0;
long minBakeTime = 600; // 10 mins in seconds
long maxBakeTime = 10800; // 3 hours in seconds
float minBakeTemp = 45; // 10 mins in seconds
float maxBakeTemp = 100; // 2 hours in seconds
float minBakeTemp = 45; // 45 Degrees C
float maxBakeTemp = 100; // 100 Degrees C

// Current index in the settings screen
byte settings_pointer = 0;

// Initialise an array to hold 5 profiles
Expand Down Expand Up @@ -497,7 +503,7 @@ void loop()
tft.fillRect( 0, tft.height() / 2 - 10, 320, 37, BLACK );
}
tcWasError = true;
tft.setTextColor( RED, BLACK );
tft.setTextColor( WHITE, RED );
tft.setTextSize(3);
int third = tft.width() / 4;
println_Center( tft, " TC ERROR: #" + String( tcError ) + " ", tft.width() / 2, ( tft.height() / 2 ) + 12 );
Expand Down Expand Up @@ -1699,7 +1705,7 @@ void SetDefaults()
set.fanTimeAfterReflow = 60;
set.power = 1;
set.paste = 0;
set.useFan = true;
set.useFan = false;
set.lookAhead = 7;
set.lookAheadWarm = 7;
set.startFullBlast = false;
Expand Down Expand Up @@ -2065,7 +2071,11 @@ void button1Press()

if ( state == MENU )
{
ShowBakeMenu( true );
// Only allow reflow start if there is no TC error
if ( tcError == 0 )
ShowBakeMenu( true );
else
Buzzer( 100, 250 );
}
else if ( state == SETTINGS ) // leaving settings so save
{
Expand Down

0 comments on commit 9ec6c9e

Please sign in to comment.