Hi Robert,
Some progress. I was able to compile your 1.45 code with the bldc fan mod. Now when I turn it on, it displays "1.45", then stop at "FAN Cur". Can you explain the difference between fan_current_min/max and fan_speed_min/max? The section of code in .ino says
#ifdef CURRENT_SENSE_MOD
CPARAM fan_current_min = { 0, 999, FAN_CURRENT_MIN_DEFAULT, FAN_CURRENT_MIN_DEFAULT, 22, 23 };
CPARAM fan_current_max = { 0, 999, FAN_CURRENT_MAX_DEFAULT, FAN_CURRENT_MAX_DEFAULT, 24, 25 };
#else
//
// See youyue858d.h if you want to use the 'FAN-speed mod' (HW changes required)
// The following 2 CPARAM lines need changes in that case
//
CPARAM fan_speed_min = { 120, 180, FAN_SPEED_MIN_DEFAULT, FAN_SPEED_MIN_DEFAULT, 18, 19 };
CPARAM fan_speed_max = { 300, 400, FAN_SPEED_MAX_DEFAULT, FAN_SPEED_MAX_DEFAULT, 20, 21 };
#endif
whereas the ones in the .h file are
CPARAM fan_speed_min = { 0, 999, FAN_SPEED_MIN_DEFAULT, FAN_SPEED_MIN_DEFAULT, 18, 19 };
CPARAM fan_speed_max = { 0, 999, FAN_SPEED_MAX_DEFAULT, FAN_SPEED_MAX_DEFAULT, 20, 21 };
//
#define FAN_CURRENT_MIN_DEFAULT 30UL
#define FAN_CURRENT_MAX_DEFAULT 71UL
So what does 'UL' mean? Does fan_speed_min/max refer to just the resistor mod without the BLDC comparator stuff? I have the LM2904 comparator mod done, so should I be looking at fan_current_min/max instead? Also, I am confused about what was displayed in fan test mode. When using your binaries at github, I thought I was getting numbers in the high 900 range. But now with the binaries derived from youyue858d.h and youyue858d.ino, I get readings between 23-81, and the time constant is really slow. Any help is greatly appreciated.
Thanks in advance.