rocketscream / TinyReflowController

An all-in-one Arduino compatible reflow controller powered by ATtiny1634R
121 stars 64 forks source link

cool stage problem #6

Open ton4eff opened 4 years ago

ton4eff commented 4 years ago

After the "REFLOW_STATE_COOL", it continues to work, keeping the "TEMPERATURE_COOL_MIN" for ever ( 100C for example), instead to continue to "REFLOW_STATUS_OFF". I don't know why. Sometimes I forget to push stop button and it is very annoying. Also the fan part in the code is missing and not working.

It wold be great if there was a timer for preheat stage also, as it is for soak stage. With higher power ovens it heats too fast...

richardklingler commented 4 years ago

Same here...

Always stops around the 520th reading:

520,100.00,113.50,0.00

Even this part is not executed anymore which I added for debugging:

if (millis() > nextRead) { Serial.println("input"); }

When the door is opened during the cooling phase it can cool down much faster and it enters the state "Done"...

Guess somewhere must be an overflow or something...

richardklingler commented 4 years ago

Problem seems to be solved...

As I use a display with higher resolution the variable x should be defined as unsigned int instead of unsigned char...otherwise during drawing the temp graph the controller locks up and hangs forever.

The graph drawing code is anyway too blown up with unnecessary chunk... but this might have to the original display...all is cleared and then everything is redrawn..whereas a regular SPI TFT only the status message, the temperature and one pixel for the graph would have to be drawn (o;

Now it stopped here on the serial output, as it should be with the door closed:

612,100.00,100.00,0.00