PrusaOwners / Marlin

Optimized firmware for RepRap 3D printers based on the Arduino platform.
http://www.marlinfw.org/
GNU General Public License v3.0
15 stars 4 forks source link

Basic implementation of fan tachometer readings. Use M198 to retrieve #37

Closed matthew-humphrey closed 5 years ago

matthew-humphrey commented 5 years ago

Description

This pull request is a basic implementation of fan tachometer readings. A new section was added to Configuration_Adv.h (see "FANTACH") to enable and configure this feature. When enabled, it allows the firmware to perform fan tachometer (RPM) readings and makes this information available via a new g-code, M198.

The intent is to extend this feature to also check for correct extruder fan functioning for any extruder fans that are enabled by the AUTO_FAN feature.

Benefits

This feature is a precursor to an additional safety check for the hot-end, and also will support a future pre-print "fans check" g-code that can serve as a way to validate both print and extruder fans are operating correctly.