🩹 MKS_TINYBEE ADC reference voltage warning (#27755)

This commit is contained in:
Fermín Olaiz 2025-03-28 00:18:08 -03:00 committed by GitHub
parent efa175820f
commit f6eaca6fcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 4 deletions

View file

@ -898,6 +898,13 @@
#warning "The (-1) AD595 Thermocouple Amplifier requires 5V input supply! Use AD8495 for 3.3V ADC." #warning "The (-1) AD595 Thermocouple Amplifier requires 5V input supply! Use AD8495 for 3.3V ADC."
#endif #endif
/**
* MKS_TINYBEE Analog Reference
*/
#if ENABLED(EMIT_ADC_REFERENCE_VOLTAGE_WARNING)
#warning "Check your ADC_REFERENCE_VOLTAGE on MKS TinyBee! Measure the Analog Reference voltage on the board. See pins_MKS_TINYBEE.h for details."
#endif
/** /**
* No PWM on the Piezo Beeper? * No PWM on the Piezo Beeper?
*/ */

View file

@ -115,10 +115,21 @@
//#define CONTROLLER_FAN_PIN 148 // FAN2 //#define CONTROLLER_FAN_PIN 148 // FAN2
//#define E0_AUTO_FAN_PIN 148 // FAN2 //#define E0_AUTO_FAN_PIN 148 // FAN2
// /**
// ADC Reference Voltage * ADC Reference Voltage
// *
#define ADC_REFERENCE_VOLTAGE 2.565 // 2.5V reference VDDA * In some boards the voltage reference is a bit off due to low quality
* components. That is enough to throw off the ADC readings and thus the
* temperatures by more than 10°C in some cases. If you experience that
* problem, measure the reference voltage (VDDA) at the 2nd pin of
* TH1/TH2 (with the sensors disconnected) and set ADC_REFERENCE_VOLTAGE
* in your config.
*/
#ifndef ADC_REFERENCE_VOLTAGE
#define EMIT_ADC_REFERENCE_VOLTAGE_WARNING
#define ADC_REFERENCE_VOLTAGE 2.565
#endif
/** /**
* ------ ------ * ------ ------