eez-open / psu-firmware

Firmware for programmable bench power supply EEZ H24005
https://www.envox.eu/bench-power-supply/psu-firmware/
GNU General Public License v3.0
167 stars 60 forks source link

Channel coupling #35

Closed prasimix closed 7 years ago

prasimix commented 7 years ago

Implement channel coupling in series and parallel using built in power relays. That require new SCPI commands INSTrument:COUPle:TRACking and introducting some sort of command dispatcher that more then one channel can be controlled as single entity. Also we need a new set of main pages where only one set of output programming and measured values will be displayed with new ranges (up to 80 V and up to 10 A). When channels are coupled in series, output voltage on each channel will be set to half of the programmed value. The same is true for setting current when channels are couple in parallel. Defining coupling mode via local display we can make a wizard with the following steps:

  1. Coupling type (series or parallel)
  2. Display instruction that connected load has to be disconnected (We can test that by measuring current on both channel. When test passed set VOLT and CURR on both channel to zero, and disable both outputs)
  3. Display instruction which binding posts will be used when channels are coupled (CH1-, CH2+)
  4. Finished (power relay and SP_LED are activated, down-programmer on CH2 is unconditionally disabled when coupled in parallel and enable both outputs)

As indication when channels are coupled in series and output voltage is set over 40 V the SP_LED could flash. Additional indication could be warning sign on the local display in that mode.

Special case is entering CC mode when channels are couple in series. It's possible that output voltage on one of the channels become negative. To avoid such condition output voltage leveling is required.

prasimix commented 7 years ago

Tested with 212293d

  1. When enter stand-by mode relay is switched off what is fine, but on next power on it's not switched on again
  2. When powered on or hard reset relay will be switched on and off
  3. Cannot set current if uncoupled (INST:COUP:TRAC? NONE):
volt?
12.00
curr?
0.02
curr:lim?
4.99
pow:lim?
160.00
curr 1
**ERROR [2016-11-17 17:02:26]: 150,"Power limit exceeded"
mvladic commented 7 years ago

Fixed!

prasimix commented 7 years ago

Add "Not allowed" state for options (as R/O text) that cannot be used while channels are coupled:

prasimix commented 7 years ago

We have to find a way how to display channel specific information while channels are coupled:

  1. Current temperature on channels sensors in OTP settings on Protection settings page
  2. Total on time, last on time and temperature on Info page

Info page when channels are coupled could looks completely different. We do not need info about calibration and remaining params could be enumerated/listed one after other.

prasimix commented 7 years ago

OVP trip level cannot be set correctly if channels are coupled in parallel. Saved value will be cut in half (e.g. 25 V is recorded as 12.5 V)

prasimix commented 7 years ago

Waking up from stand-by mode when channels are coupled will not be correct if one of the channel was previously in error mode (e.g. powergood signal failure is detected). Step to reproduce this problem:

  1. Couple channels in parallel, set voltage and current, connect load
  2. Remove power cable from one Power board, when PSU should go into stand-by
  3. Wake it up from stand-by and no current will be sourced to the connected load