Commit Graph

11 Commits

Author SHA1 Message Date
Ben V. Brown
b63f02d033 Reset some encodings 2020-12-11 19:11:23 +11:00
Ben V. Brown
40cf09a910 Add support for dual speed PWM 2020-10-13 20:23:43 +11:00
Paul Fertser
30be5e0de4 Introduce PWM freq switching so that power could be averaged on shorter intervals
With this a TS-I tip is usable with a small netbook 19 V / 30 W PSU with
power limit set to 40 W (38.9 W is reported during the heating up
stage). Without this the device just reboots on attempt to turn on the
heater (unless the power limit is set to 10 or even 5 W).

This code doesn't affect maximum power available and allows up to 73 W
when a beefy 24 V / 96 W PSU is used.

Should be useful for all models, not just TS100.

The fixed comments are based on calculations, not measurements!

Fixes #693.
2020-09-29 19:02:55 +03:00
Ben V. Brown
6bb56c28ba Drivers + Threads 2020-05-29 21:49:13 +10:00
Ben V. Brown
fd700aecb9 Beginnings of the shuffle 2020-05-29 21:39:06 +10:00
Ben V. Brown
329f6fdbe7 Fix battery voltage not updating when not soldering 2019-12-23 13:19:48 +11:00
Ben V. Brown
3fea95c6b1 Fix calibration, move to exp moving average 2019-10-08 21:50:50 +11:00
Ben V. Brown
6a39e4bcc8 Work in progress
Working, but has temp offset issue slightly.

Could have slightly wrong gain values
2019-10-07 21:11:31 +11:00
Ben V. Brown
1cf88b2cd6 Rough refactor main control loop to C 2019-10-07 18:58:51 +11:00
Ben V. Brown
bc38132f31 Merge branch 'master' into TweakTS80 2019-10-07 16:40:42 +11:00
Ben V. Brown
7ca613e22b Migrate :O 2019-08-18 22:24:01 +10:00