🩹 MKS_TINYBEE ADC reference voltage warning (#27755)
This commit is contained in:
parent
efa175820f
commit
f6eaca6fcd
2 changed files with 22 additions and 4 deletions
|
|
@ -898,6 +898,13 @@
|
|||
#warning "The (-1) AD595 Thermocouple Amplifier requires 5V input supply! Use AD8495 for 3.3V ADC."
|
||||
#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?
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -115,10 +115,21 @@
|
|||
//#define CONTROLLER_FAN_PIN 148 // FAN2
|
||||
//#define E0_AUTO_FAN_PIN 148 // FAN2
|
||||
|
||||
//
|
||||
// ADC Reference Voltage
|
||||
//
|
||||
#define ADC_REFERENCE_VOLTAGE 2.565 // 2.5V reference VDDA
|
||||
/**
|
||||
* ADC Reference Voltage
|
||||
*
|
||||
* 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
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue