aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/heater.py
Commit message (Collapse)AuthorAgeFilesLines
...
* fan: Default to using software PWMKevin O'Connor2017-03-081-1/+2
| | | | | | | Not all hardware has PWM support and there is no compelling reason to use hardware PWM for fans. Change the default to use software PWM. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Support max_power setting for heatersKevin O'Connor2017-03-031-22/+24
| | | | | | | | Change the mcu PWM value from an integer (0-255) to a float (0. - 1.). Add support for limiting the maximum power (as measured over a sufficiently long duration) to a particular heater. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Enforce min/max_temp in heater.set_temp()Kevin O'Connor2017-02-211-2/+11
| | | | | | | Raise an error if the user requests a temperate outside the configured min/max_temp range. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Resend PWM values even if last value was zeroKevin O'Connor2017-01-121-3/+4
| | | | | | | | | Continue to resend the pwm value even if the last value was zero - this extends the debugging info. Also, add the target temperature to the pwm debugging. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Only create a soft PWM object for PID heatersKevin O'Connor2017-01-101-3/+9
| | | | | | | The "watermark" style heater only needs a digital_out pin - not a software PWM pin. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Report last temperature in PWM debuggingKevin O'Connor2017-01-101-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add ConfigWrapper.getchoice methodKevin O'Connor2016-11-301-3/+2
| | | | | | | | Add helper function that ensures a config option is one of several choices. This helps ensure that a proper error is raised if an invalid choice is made. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Rename output_file_mode variable to is_fileoutputKevin O'Connor2016-11-291-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Handle adc initialization entirely in mcu codeKevin O'Connor2016-11-291-3/+1
| | | | | | | | Don't expose the ADC initialization to the gcode and heater code - instead, register a callback within the MCU_adc class and call it directly from the MCU class after configuration completes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Do not require target temperature be above min_extrude_tempKevin O'Connor2016-11-081-5/+2
| | | | | | | | | | Only disable the extruder if the last measured temperature is below the minimum extrude temperature setting. Verifying the target temperature is not necessary, and it can incorrectly prevent some valid moves. It's not uncommon for scripts to retract filament immiedietly after setting the extruder temperature to zero. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Make it possible to disable min_extrude_temp for testingKevin O'Connor2016-10-111-1/+1
| | | | | | | | Allow a config file to specify 'min_extrude_temp: 0' to disable the minimum extrude temperature test. This makes it easier to perform testing on the avr simulator. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Support a minimum extrude temperatureKevin O'Connor2016-09-301-0/+8
| | | | | | | | Allow the config file to specify the minimum temperature for the extruder and check for that temperature prior to moving the extruder motor. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Add "ATC Semitec 104GT-2" thermistor definitionKevin O'Connor2016-09-151-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Remove redundant float conversionKevin O'Connor2016-09-151-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Convert PWM and ADC objects to take mcu_time instead of clockKevin O'Connor2016-08-241-58/+46
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Initial commit of source code.Kevin O'Connor2016-05-251-0/+288
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>