1
0
forked from M-Labs/thermostat
Commit Graph

350 Commits

Author SHA1 Message Date
718ef99609 update docs 2022-06-30 14:25:56 +08:00
3f6419835f add autotune 2022-06-07 13:54:18 +08:00
8d3a7292e3 WIP: adding autotune 2022-06-06 23:18:44 +08:00
c52cdceec5 fix docs, fix i_set, fix GUI param ranges 2022-06-06 21:28:30 +08:00
1940367dc8 fix whitespace error 2022-06-06 15:25:37 +08:00
cdb78094ca bi-dir sync, minimum working prototype 2022-06-06 15:24:58 +08:00
24cc7dd2b7 sync tree param from TEC 2022-06-06 13:49:58 +08:00
d74e806de8 add sync from TEC 2022-06-06 12:38:44 +08:00
1083af1266 add param tree, param tree inactive 2022-06-05 18:59:05 +08:00
da415e6da6 add voltage monitoring 2022-06-05 17:21:50 +08:00
1d8bd99038 fix typo 2022-06-05 16:04:46 +08:00
09f58f4202 refactor with classes 2022-06-05 16:03:33 +08:00
06625d0716 add graph legends 2022-06-05 14:58:42 +08:00
da8948a166 add more graphs in 2x2 grid 2022-06-02 20:08:18 +08:00
81cc23a452 plot both channel temperatures 2022-06-01 17:47:31 +08:00
07f73bed41 fix pyqtgraph on nixos 2022-06-01 13:09:01 +08:00
7b15ee004d add pyqtgraph 2022-06-01 12:32:18 +08:00
5688b2f1bb flake: update stm32-eth sha256 hash 2022-03-02 17:21:17 +08:00
1b2f2f3888 update code to use stm32f4xx-hal 0.10.1 API 2022-03-02 17:21:17 +08:00
e6f63ec940 cargo/nix: update rustc, stm32-eth, smoltcp 2022-03-02 17:21:17 +08:00
67446ae99e cargo/flake: update package versions 2022-03-02 17:21:17 +08:00
26ad2f0119 rewrite PID
Rewrite of PID according to https://hackmd.io/IACbwcOTSt6Adj3_F9bKuw PID implementation.

To migrate:
- TEC+/- pin polarity has to be reversed.
- Some saved settings might be wiped upon flashing of new firmware, back up settings before upgrade
- Min / Max integral parameters no longer exist
- kp, ki, kd will likely need to be retuned

The software has been tested on hardware with good temperature control stability.

Reviewed-on: 
Co-authored-by: topquark12 <aw@m-labs.hk>
Co-committed-by: topquark12 <aw@m-labs.hk>
2022-02-24 20:16:47 +08:00
Alex Wong
69dabf5aa1 update hash 2022-01-24 17:20:32 +08:00
a26cdfabb1 readme: update CI links 2022-01-19 11:37:01 +08:00
4d43709f76 nix flakes support ()
Reviewed-on: 
Co-authored-by: mwojcik <mw@m-labs.hk>
Co-committed-by: mwojcik <mw@m-labs.hk>
2022-01-19 11:13:47 +08:00
1c00e732fa README: minor corrections 2022-01-05 08:22:43 +08:00
09082b24a5 README: update build instructions 2022-01-05 08:04:25 +08:00
85e8273d51 shell.nix: follow nix-scripts 2022-01-05 07:54:07 +08:00
e81c6d1692 README: fix objcopy command 2022-01-05 07:50:53 +08:00
1f644fd62c README: fix nix-scripts folder 2021-07-14 08:43:59 +08:00
4f1d865d2b README: fix Hydra links 2021-07-14 08:42:53 +08:00
e6a5c31db6 main.rs refactor to reduce length ()
Move command handling to command_handler.rs to shorten main.rs

Reviewed-on: 
Co-authored-by: topquark12 <aw@m-labs.hk>
Co-committed-by: topquark12 <aw@m-labs.hk>
2021-06-07 10:07:05 +08:00
a5d8661b10 main: fix handling of incomplete data received ()
Reviewed-on: 
Co-Authored-By: topquark12 <aw@m-labs.hk>
Co-Committed-By: topquark12 <aw@m-labs.hk>
2021-01-29 16:18:07 +08:00
7cb0ed70be Reset all TCP sockets before MCU reset ()
Co-Authored-By: topquark12 <aw@m-labs.hk>
Co-Committed-By: topquark12 <aw@m-labs.hk>
2021-01-26 17:45:14 +08:00
6b9d61737e docs: update docs to reflect improved stability performance 2021-01-25 13:51:50 +08:00
16844a1dc1 dac: fix inconsistent current output behavior due to repeated sampling of noisy vref 2021-01-25 13:51:50 +08:00
96f52ace8b pytec: simpler default graphs in plot 2021-01-25 13:51:50 +08:00
a1a8efd51a readme: update docs on max_i_neg command and heat flow directions 2021-01-25 13:51:50 +08:00
8eb3cc4307 dfu: style 2021-01-18 16:59:13 +08:00
f3661ac8e3 dfu: refactor 2021-01-18 16:45:01 +08:00
c4e3be1d05 fix pid.rs test, exclude dfu from test 2021-01-16 11:04:24 +08:00
cf3ace4d2d flash_store: get addresses from linker
Reviewed-on: 
Co-Authored-By: topquark12 <aw@m-labs.hk>
Co-Committed-By: topquark12 <aw@m-labs.hk>
2021-01-13 17:30:12 +08:00
f6802635a4 add command to reboot into DFU
Co-Authored-By: topquark12 <aw@m-labs.hk>
Co-Committed-By: topquark12 <aw@m-labs.hk>
2021-01-13 11:59:06 +08:00
9e4d06fdbc clarify comment 2021-01-11 16:24:43 +08:00
3433881d0f remove dead code 2021-01-11 14:10:50 +08:00
193d54a0a6 pid: anti-windup when compliance voltage reached 2021-01-11 14:00:52 +08:00
3067b356c5 channels: add methods to retrieve actual voltage and current of TEC 2021-01-08 16:18:20 +08:00
3ba2cc9ddc channels: voltage measurement refalect actual voltage across TEC 2021-01-08 15:52:35 +08:00
1539b624bd pid: more sensible default parameters 2021-01-08 11:31:33 +08:00
5c84b7438b Integral rescaling 2021-01-08 11:25:01 +08:00