forked from M-Labs/thermostat
Compare commits
No commits in common. "b234e9fe1449c0cd3b045357e46388dd35732bee" and "adc25c9b2afc26f55383f1ae92106938087efa80" have entirely different histories.
b234e9fe14
...
adc25c9b2a
27
README.md
27
README.md
@ -189,30 +189,31 @@ Testing heat flow direction with a low set current is recommended before install
|
||||
|
||||
### Limits
|
||||
|
||||
Each channel has maximum value settings, for setting
|
||||
Each MAX1968 TEC driver has analog/PWM inputs for setting
|
||||
output limits.
|
||||
|
||||
Use the `output` command to see them.
|
||||
Use the `output` command to see current settings and maximum values.
|
||||
|
||||
| Limit | Unit | Description |
|
||||
| --- | :---: | --- |
|
||||
| `max_v` | Volts | Maximum voltage |
|
||||
| `max_i_pos` | Amperes | Maximum positive current |
|
||||
| `max_i_neg` | Amperes | Maximum negative current |
|
||||
| `i_set` | Amperes | (Not a limit; Open-loop mode) |
|
||||
|
||||
Example: set the maximum voltage of channel 0 to 1.5 V.
|
||||
```
|
||||
output 0 max_v 1.5
|
||||
```
|
||||
|
||||
Example: set the maximum negative current of channel 0 to -2 A.
|
||||
Example: set the maximum negative current of channel 0 to -3 A.
|
||||
```
|
||||
output 0 max_i_neg 2
|
||||
output 0 max_i_neg 3
|
||||
```
|
||||
|
||||
Example: set the maximum positive current of channel 1 to 2 A.
|
||||
Example: set the maximum positive current of channel 1 to 3 A.
|
||||
```
|
||||
output 1 max_i_pos 2
|
||||
output 0 max_i_pos 3
|
||||
```
|
||||
|
||||
### Open-loop mode
|
||||
@ -239,20 +240,6 @@ of channel 0 to the PID algorithm:
|
||||
output 0 pid
|
||||
```
|
||||
|
||||
### PID output clamping
|
||||
|
||||
It is possible to clamp the PID algorithm output independently of channel output limits. This is desirable when e.g. there is a need to keep the current value above a certain threshold in closed-loop mode.
|
||||
|
||||
Set PID maximum output of channel 0 to 1.5 A.
|
||||
```
|
||||
pid 0 output_max 1.5
|
||||
```
|
||||
|
||||
Set PID minimum output of channel 0 to 0.1 A.
|
||||
```
|
||||
pid 0 output_min 0.1
|
||||
```
|
||||
|
||||
## LED indicators
|
||||
|
||||
| Name | Color | Meaning |
|
||||
|
@ -1,4 +1,3 @@
|
||||
import time
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.animation as animation
|
||||
@ -48,8 +47,7 @@ quit = False
|
||||
|
||||
def recv_data(tec):
|
||||
global last_packet_time
|
||||
while True:
|
||||
data = tec.get_report()
|
||||
for data in tec.report_mode():
|
||||
ch0 = data[0]
|
||||
series_lock.acquire()
|
||||
try:
|
||||
@ -63,7 +61,6 @@ def recv_data(tec):
|
||||
|
||||
if quit:
|
||||
break
|
||||
time.sleep(0.05)
|
||||
|
||||
thread = Thread(target=recv_data, args=(tec,))
|
||||
thread.start()
|
||||
|
Loading…
Reference in New Issue
Block a user