diff options
| author | Selene ToyKeeper | 2020-03-16 02:45:25 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-03-16 02:45:25 -0600 |
| commit | a9dfc872aab50767a2e7749b70e9ed6c61e579cb (patch) | |
| tree | 73ce3da2cc49e04eed0f57229c516f5225443895 /spaghetti-monster | |
| parent | fixed the ADC channel for voltage measurement (diff) | |
| download | anduril-a9dfc872aab50767a2e7749b70e9ed6c61e579cb.tar.gz anduril-a9dfc872aab50767a2e7749b70e9ed6c61e579cb.tar.bz2 anduril-a9dfc872aab50767a2e7749b70e9ed6c61e579cb.zip | |
added FETless KR4 build target, calibrated other KR4 therm faster level better
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/cfg-noctigon-kr4-nofet.h | 45 | ||||
| -rw-r--r-- | spaghetti-monster/anduril/cfg-noctigon-kr4.h | 4 |
2 files changed, 47 insertions, 2 deletions
diff --git a/spaghetti-monster/anduril/cfg-noctigon-kr4-nofet.h b/spaghetti-monster/anduril/cfg-noctigon-kr4-nofet.h new file mode 100644 index 0000000..66177bf --- /dev/null +++ b/spaghetti-monster/anduril/cfg-noctigon-kr4-nofet.h @@ -0,0 +1,45 @@ +// Noctigon KR4 (fetless) config options for Anduril +#include "cfg-noctigon-kr4.h" +// ATTINY: 1634 + +// brightness w/ SST-20 4000K LEDs: +// 0/1023: 0.35 lm +// 1/1023: 2.56 lm +// max regulated: 1740 lm +// level_calc.py 3.0 1 150 7135 0 5 1740 +#undef PWM_CHANNELS +#define PWM_CHANNELS 1 +#define RAMP_LENGTH 150 +#undef PWM1_LEVELS +#define PWM1_LEVELS 0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,11,12,13,15,16,17,18,20,21,23,24,26,27,29,31,33,35,37,39,41,43,45,48,50,53,55,58,61,63,66,69,72,75,79,82,85,89,92,96,100,104,108,112,116,120,125,129,134,138,143,148,153,158,163,169,174,180,185,191,197,203,209,215,222,228,235,242,248,255,263,270,277,285,292,300,308,316,324,333,341,350,359,368,377,386,395,405,414,424,434,444,454,465,475,486,497,508,519,531,542,554,566,578,590,603,615,628,641,654,667,680,694,708,722,736,750,765,779,794,809,825,840,856,872,888,904,920,937,954,971,988,1005,1023 +#undef PWM2_LEVELS +#undef MAX_1x7135 +#define MAX_1x7135 50 +#undef MAX_Nx7135 + +#undef RAMP_SMOOTH_FLOOR +#undef RAMP_SMOOTH_CEIL +#undef RAMP_DISCRETE_FLOOR +#undef RAMP_DISCRETE_CEIL +#undef RAMP_DISCRETE_STEPS + +#define RAMP_SMOOTH_FLOOR 1 +#define RAMP_SMOOTH_CEIL 130 +// 10, 30, [50], 70, 90, 110, 130 (plus [150] on turbo) +#define RAMP_DISCRETE_FLOOR 10 +#define RAMP_DISCRETE_CEIL RAMP_SMOOTH_CEIL +#define RAMP_DISCRETE_STEPS 7 + +#undef MUGGLE_FLOOR +#undef MUGGLE_CEILING +#define MUGGLE_FLOOR RAMP_DISCRETE_FLOOR +#define MUGGLE_CEILING 70 + +// stop panicking at ~70% power or ~1200 lm +#undef THERM_FASTER_LEVEL +#define THERM_FASTER_LEVEL 130 +// respond to thermal changes faster +#define THERMAL_WARNING_SECONDS 3 +#define THERMAL_UPDATE_SPEED 1 +#define THERM_PREDICTION_STRENGTH 4 + diff --git a/spaghetti-monster/anduril/cfg-noctigon-kr4.h b/spaghetti-monster/anduril/cfg-noctigon-kr4.h index 7771cd4..9b810ab 100644 --- a/spaghetti-monster/anduril/cfg-noctigon-kr4.h +++ b/spaghetti-monster/anduril/cfg-noctigon-kr4.h @@ -52,8 +52,8 @@ // the KR4 runs very very hot on turbo, so be extra careful //#define THERM_HARD_TURBO_DROP -// stop panicking at ~70% power or ~600 lm -#define THERM_FASTER_LEVEL 120 +// stop panicking at ~25% power or ~1000 lm +#define THERM_FASTER_LEVEL 100 // respond to thermal changes faster #define THERMAL_WARNING_SECONDS 3 #define THERMAL_UPDATE_SPEED 1 |
