File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ uint8_t zxLoopDelay = 0;
137
137
138
138
// calibrate zero crossing: how many timerIsr happen within one zero crossing
139
139
#define zxCalibrationLoops 128
140
- #define zxPerSecCalibrationTime 4000
140
+ #define zxPerSecCalibrationTime 2000
141
141
142
142
struct {
143
143
volatile uint8_t iterations;
@@ -636,7 +636,6 @@ void loop(void)
636
636
PID.SetControllerDirection (REVERSE);
637
637
PID.SetTunings (fanPID.Kp , fanPID.Ki , fanPID.Kd );
638
638
Setpoint = idleTemp;
639
-
640
639
}
641
640
642
641
if (Input < (idleTemp + 5 )) {
@@ -660,7 +659,9 @@ void loop(void)
660
659
// PIDTune.setpoint = 210.0; // is private inside PIDTune
661
660
662
661
if (val != 0 ) {
663
- currentState = CoolDown;
662
+ toggleAutoTune ();
663
+ Setpoint = idleTemp;
664
+ Output = 0 ;
664
665
}
665
666
666
667
if (currentState != Tune) { // we're done, set the tuning parameters
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ void displaySplash() {
85
85
// splash screen
86
86
tft .setCursor (2 , 30 );
87
87
tft .setTextSize (2 );
88
- tft .print ("Reflow " );
88
+ tft .print ("nanoReflow " );
89
89
tft .setCursor (tft .width ()- 120 , 48 );
90
90
tft .print ("Controller" );
91
91
tft .setTextSize (1 );
@@ -745,12 +745,14 @@ void updateProcessDisplay() {
745
745
alignRightPrefix ((int )heaterValue );
746
746
tft .print ((int )heaterValue );
747
747
tft .print ('%' );
748
-
748
+ #ifdef WITH_FAN
749
749
tft .print (" \x2a" );
750
750
alignRightPrefix ((int )fanValue );
751
751
tft .print ((int )fanValue );
752
752
tft .print ('%' );
753
-
753
+ #else
754
+ tft .print (" " );
755
+ #endif
754
756
tft .print (" \x12 " ); // alternative: \x7f
755
757
printDouble (rampRate );
756
758
tft .print ("\367C/s " );
Original file line number Diff line number Diff line change 1
1
#ifndef CONFIG_H
2
2
#define CONFIG_H
3
3
4
- //#define ALWAYS_FIRST_RUN
4
+ //#define ALWAYS_FIRST_RUN // force resett to factory settings at startup
5
5
//#define FAKE_HW 1
6
- #define PIDTUNE 1 // autotune wouldn't fit in the 28k available on my arduino pro micro.
6
+ // #define PIDTUNE 1 // autotune wouldn't fit in the 28k available on my arduino pro micro.
7
7
#define WITH_BEEPER // Enables Beeper
8
8
//#define WITH_FAN // Enables Lid opening Servo (not yet implemented)
9
9
//#define WITH_SERVO // Enables Lid opening Servo (not yet implemented)
You can’t perform that action at this time.
0 commit comments