From a1a8efd51a3dad93b6265427db1f66ddbb3326d9 Mon Sep 17 00:00:00 2001 From: topquark12 Date: Mon, 25 Jan 2021 13:11:55 +0800 Subject: [PATCH] readme: update docs on max_i_neg command and heat flow directions --- README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 89dc63a..3c82e70 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ formatted as line-delimited JSON. | `report mode ` | Set report mode | | `pwm` | Show current PWM settings | | `pwm <0/1> max_i_pos ` | Set PWM duty cycle for **max_i_pos** to *ampere* | -| `pwm <0/1> max_i_neg ` | Set PWM duty cycle for **max_i_neg** to *ampere* | +| `pwm <0/1> max_i_neg ` | Set PWM duty cycle for **max_i_neg** to *- ampere* | | `pwm <0/1> max_v ` | Set PWM duty cycle for **max_v** to *volt* | | `pwm <0/1> i_set ` | Disengage PID, set **i_set** DAC to *ampere* | | `pwm <0/1> pid` | Set PWM to be controlled by PID | @@ -176,9 +176,13 @@ postfilter rate can be tuned with the `postfilter` command. ## Thermo-Electric Cooling (TEC) -- Connect Peltier device 0 to TEC0- and TEC0+. -- Connect Peliter device 1 to TEC1- and TEC1+. -- The GND pin is for shielding not for sinking Peltier currents. +- Connect TEC module device 0 to TEC0- and TEC0+. +- Connect TEC module device 1 to TEC1- and TEC1+. +- The GND pin is for shielding not for sinking TEC module currents. + +When using a TEC module with the Thermostat, the Thermostat expects the thermal load (where the thermistor is located) to heat up with a positive software current set point, and cool down with a negative current set point. + +Testing heat flow direction with a low set current is recommended before installation of the TEC module. ### Limits @@ -199,6 +203,16 @@ Example: set the maximum voltage of channel 0 to 1.5 V. pwm 0 max_v 1.5 ``` +Example: set the maximum negative current of channel 0 to -3 A. +``` +pwm 0 max_i_neg 3 +``` + +Example: set the maximum positive current of channel 1 to 3 A. +``` +pwm 0 max_i_pos 3 +``` + ### Open-loop mode To manually control TEC output current, omit the limit parameter of