19c3c7a8f2
Merge pull request 'GUI: Refactor `send_command`' (#4) from gui_dev-refactor-send_command into gui_dev
41abad7aa3
send_command: Remove "activater"
5c8d9c7cce
send_command: Simplify "pid_autotune" parameters
278898fad2
send_command: Switch to thermostat:set_param
dd83daa5d9
send_command: Remove indirect path to parameter
linuswck
deleted branch gui_dev-refactor-send_command from linuswck/thermostat
2024-10-07 13:03:39 +08:00
GUI: Refactor `send_command`
Add command for setting TEC polarity direction
state.polarity_swapped
setting is not applied when settings are loaded from flash.
Add command for setting TEC polarity direction
There is inconsistency in cmd and report json.
Type pwm <0/1> polarity_swapped <false/true>
to swap polarity.
But, the report json uses "current_swapped" to indicate such setting.
`current_…
Add command for setting TEC polarity direction
If I can configure the TEC Polarity via the command pwm <0/1> polarity_swapped <false/true>
,
I would expect I can see the TEC polarity via the pwm
cmd. But it's not.
Fix Incorrect Dac Calibration Algorithm
linuswck
pushed to fix_wrong_current_limit_duty_cycle_cal at linuswck/thermostat
2024-09-19 18:29:19 +08:00
d2a57245b2
Fix wrong current limit duty cycle calculation
linuswck
pushed to fix_wrong_current_limit_duty_cycle_cal at linuswck/thermostat
2024-09-19 17:47:29 +08:00
3932bce9f3
Fix wrong current limit duty cycle calculation
ae4bea0c8a
gitignore: Ignore .bin files and __pycache__
1f2de942e4
flake: Add rlwrap to devShell
1041d3ecbb
Improve the VREF calibration routine
c6040899dd
ItecPin -> ITecPin
linuswck
created branch fix_wrong_current_limit_duty_cycle_cal in linuswck/thermostat
2024-09-19 17:47:29 +08:00
Improve the VREF calibration routine
Yes. It takes longer time and causes the watchdog to trigger. 1.5s does not work. 1.75s works. We chose 2.0s to leave some more margin.
a512614de5
net: add option not to open sock when it is polled
76f7875e3a
gui: await for hard rst and dfu action
0d64d62fb0
gui: Add pd_mon config form
0aeffdbf7b
ld_pwr_exc_protector: disable irq after pwr off
89a1270c02
driver: send cmd err msg to a pyqt sig
1896e2534b
main: Add PrepareForDfu state
6d4b1b0574
driver: end_session if ConnClose & Dfu is recv-ed
0b5fda2cd9
net: close oldest sock if available socks run out
b763350a8b
net: disable IRQ when data is being enqueued
838592c812
gui: Display hw_rev when connected
51913f2e2f
net: fix incorrect poll_iface() calls
c86d67b15c
firmware: do not display smoltcp log
3d2294a90c
driver: fix incorrect recv_response behavior
Photodiode Monitor Current Range should be Selectable
Solution
Instead of using a PGA. Using multiple TIA Stage of different feedback resistor can achieve the goal to save cost.
This circuit structure is obtained from the Art of Electronics…