aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster (follow)
Commit message (Collapse)AuthorAgeFilesLines
* KR4-noFET: made candle mode vary more since the ramp is stretched out, ↵Selene ToyKeeper2020-04-191-2/+5
| | | | raised therm faster level
* anduril: made aux RGB rainbow mode speed configurable per build targetSelene ToyKeeper2020-04-191-1/+4
|
* added a Noctigon KR4 219 (75% FET) build targetSelene ToyKeeper2020-03-281-0/+11
|
* Noctigon KR4 needed tighter/faster thermal response, and Hank wants RGB ↵Selene ToyKeeper2020-03-261-1/+3
| | | | rainbow to be default instead of voltage mode.
* made thermal regulation use a smaller target window, and prioritize cooling moreSelene ToyKeeper2020-03-261-3/+3
|
* added dynamic underclocking to KR4 to increase moon runtime, fixed ramp ↵Selene ToyKeeper2020-03-212-15/+11
| | | | milestone levels
* fixed potential eeprom corruption after turning boost/opamp chip on/offSelene ToyKeeper2020-03-211-0/+16
| | | | | (some boost chips can make power unstable for a few ms, so we have to wait before accessing eeprom)
* enabled soft factory reset on KR4, raised default floor to the lowest ↵Selene ToyKeeper2020-03-202-2/+4
| | | | | | | reliable level (moon level 1 flickers or doesn't work at all on some hardware)
* added reboot() support for tiny1634Selene ToyKeeper2020-03-201-8/+10
|
* removed old thermal junk and voltage_lowpass junk from cfg filesSelene ToyKeeper2020-03-163-29/+0
|
* fixed calc_voltage_divider() (use 10-bit calibration values, not 8-bit)Selene ToyKeeper2020-03-161-1/+1
|
* merged fsm branch (to get adc-rework branch with new thermal regulation)Selene ToyKeeper2020-03-1623-401/+358
|\
| * merged adc-rework branch, which rewrote all ADC code (voltage, temperature, ↵Selene ToyKeeper2020-03-1622-399/+356
| |\ | | | | | | | | | | | | | | | | | | and everything touched by those) and seems to greatly improve the thermal regulation
| | * fixed a few things in ramping-ui, rampingiosv3, and werner's UISelene ToyKeeper2020-03-163-14/+13
| | | | | | | | | | | | | | | (just copied a few updates from anduril, particularly regarding FSM's "temperature" variable)
| | * merged some misc fixes from pakutrai, cleaned up comments, removed unused ↵Selene ToyKeeper2020-03-1615-87/+18
| | | | | | | | | | | | symbols
| | * increased blink speed slightly, and added a library function to blink out ↵Selene ToyKeeper2020-03-161-3/+25
| | | | | | | | | | | | 16-bit numbers
| | * deleted commented-out WDT code from previous revisionSelene ToyKeeper2020-03-161-7/+0
| | | | | | | | | | | | | | | (had only saved it so there would be a note in history about why it's gone)
| | * cleaned up WDT ADC timer code slightly, and removed a bit of redundant codeSelene ToyKeeper2020-03-161-6/+8
| | |
| | * reduced regulation jitter by biasing errors toward zero by a constant amount,Selene ToyKeeper2020-03-161-1/+14
| | | | | | | | | | | | | | | | | | | | | which mostly impacts small errors (and reduces jitter during the flat phase of regulation) while leaving large errors pretty much unaffected... also, made acceptable thermal window smaller to make up for this new extra tolerance
| | * the ADC sample count doesn't need to be 16-bit any more, and isn't really a ↵Selene ToyKeeper2020-03-152-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | count any more... ... just a boolean flag for whether this is the first sample or a later sample (so I changed it and reduced the ROM size by ~28 bytes)
| | * removed dead comments and dead codeSelene ToyKeeper2020-03-151-28/+2
| | |
| | * replaced temperature_timer (which wasn't even being used) with a variable ↵Selene ToyKeeper2020-03-151-27/+43
| | | | | | | | | | | | | | | | | | | | | | | | delay between warnings, so large warnings can remain frequent while small warnings are separated by more time, based on a cumulative error counter which must pass a threshold before the next warning is sent (this is producing good test results so far on D4v2 and D4Sv2)
| | * tried to make thermal code a bit less twitchy...Selene ToyKeeper2020-03-133-13/+19
| | | | | | | | | | | | | | | it regulates really fast on D4, but once it's stable, the adjustments are too large
| | * went back to continuous lowpass because it had the best noise reductionSelene ToyKeeper2020-02-282-52/+74
| | | | | | | | | | | | | | | (also, now treating smoothed ADC values as 11-bit, with the lowest 5 bits chopped off to eliminate noise)
| | * brute force method for reducing ADC noise -- average a ridiculous number of ↵Selene ToyKeeper2020-02-052-20/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | samples (because, for some reason, even though 64 samples is plenty in a test program, it ends up being extremely erratic when used inside Anduril... and I'm not sure why) also, use 15-bit ADC values instead of 16 bits, in the temperature logic (to help protect against integer overflows) ... but this code still doesn't work well. It regulates down *very* fast, and then gradually rises until the next extra-fast drop-down. :( ... also, tempcheck mode sometimes changes by 4-5 C between readouts, which is worrisome. ... and factory reset is still broken.
| | * still doesn't work, but at least it's a bit less broken than before...Selene ToyKeeper2020-02-051-8/+12
| | | | | | | | | | | | | | | | | | (ceiling value was all wrong, and the response magnitude was way too big) (also, temperatures here are unsigned, since freezing is about 270 in ADC units)
| | * first pass at a smaller simpler thermal regulation algorithm...Selene ToyKeeper2020-02-051-75/+52
| | | | | | | | | | | | ... doesn't work well, but I'm saving it so I can experiment with other methods and maybe revert back later.
| | * replaced Anduril's gradual adjustment speed code with a smaller simpler versionSelene ToyKeeper2020-02-051-43/+17
| | |
| | * saving state of ADC / WDT refactoring before doing more changes... what ↵Selene ToyKeeper2020-01-305-76/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changed so far: - removed LVP lowpass and thermal regulation lowpass logic; it's probably redundant now - slowed ADC deferred logic timing to 4X per second instead of 16X, because there doesn't seem to be much reason to do it any faster - reduced thermal event rate-limit to just 1 second, for more responsive regulation - added "EV_temperature_okay" signal, to help stop adjustments at an appropriate time instead of going to far - sped up sleep LVP to one measurement every 8 seconds instead of 16, to help the aux LEDs respond to voltage changes faster (effect on standby time is negligible) - make sure the WDT doesn't set the ADC channel or counter... except in standby mode
| | * switched to a pseudo-rolling-average method to reduce noise, set prescaler ↵Selene ToyKeeper2020-01-301-8/+13
| | | | | | | | | | | | back to 64
| | * increased effective ADC resolution by switching from continuous-lowpass to ↵Selene ToyKeeper2020-01-291-64/+43
| | | | | | | | | | | | sum-of-discrete-window method
| | * remove truncation noise by adding 0.5 to each resultSelene ToyKeeper2020-01-291-24/+22
| | | | | | | | | | | | | | | (keeps stable values within ~0.46 to ~0.54 range, so truncated result has no noise)
| | * rewrote ADC code to use a continuous lowpass system on all measurements, to ↵Selene ToyKeeper2020-01-295-130/+194
| | | | | | | | | | | | | | | | | | eliminate noise and maybe increase precision (thermal code still needs to be rewritten though)
| * | mention the maximum allowed temperature in the manualSelene ToyKeeper2020-02-031-1/+1
| |/
* | added FETless KR4 build target, calibrated other KR4 therm faster level betterSelene ToyKeeper2020-03-162-2/+47
| |
* | FET ramp was too steep; slowed it down by 50% (20 steps -> 30 steps)Selene ToyKeeper2020-03-061-11/+10
| |
* | KR4: added FET channel, measured output, calibrated rampSelene ToyKeeper2020-03-061-2/+10
| |
* | initial support for Noctigon KR4Selene ToyKeeper2020-03-053-0/+76
| | | | | | | | | | | | | | | | | | (not complete, but far enough that it installs and runs) New hardware support features: - allow using PCINT other than 0 (PCINT1, PCINT2, etc) - option to ignore voltage ADC while the button is pressed (because my prototype shorts the voltage divider to 0 while the button is down)
* | merged from fsm, mostly to get thermal regulation updatesSelene ToyKeeper2019-12-177-9/+187
|\|
| * fixed too-slow thermal response (was introduced in the irq-refactor branch)Selene ToyKeeper2019-12-171-5/+8
| |
| * added support for Fireflies ROT66 G2 and PL47 G2Selene ToyKeeper2019-12-112-0/+109
| |
| * added a compile-time flag to enable/disable momentary mode (suggested by Agro)Selene ToyKeeper2019-12-041-1/+18
| |
| * fixed compile errors to handle a couple USE_ flags better:Selene ToyKeeper2019-12-041-2/+8
| | | | | | | | | | | | - beacon mode off (suggested by Agro) - tenclick shortcut on with thermal regulation off
| * added a FW3A build with the FET turned off completelySelene ToyKeeper2019-12-031-0/+36
| |
| * adjusted lantern tint ramping power correction again, based on measurements ↵Selene ToyKeeper2019-12-031-1/+1
| | | | | | | | of the previous attempt
| * adjusted BLF Lantern (Sofirn LT1) tint ramping power correction factor to ↵Selene ToyKeeper2019-11-292-1/+8
| | | | | | | | | | | | | | match production units (also made the factor configurable per build target)
* | changed voltage colors to better match Noctigon K1Selene ToyKeeper2019-11-282-5/+5
| |
* | renamed Emisar D1S V2 -> Noctigon K1Selene ToyKeeper2019-11-251-3/+4
| |
* | merged upstream fsm branchSelene ToyKeeper2019-11-259-28/+64
|\|
| * enabled muggle mode again in all build targets, since it fits nowSelene ToyKeeper2019-11-244-23/+0
| |