eez-open / modular-psu-firmware

Firmware for EEZ Bench Box 3 (BB3)
https://www.envox.eu/eez-bb3/
GNU General Public License v3.0
94 stars 42 forks source link

MIO168 add RMS option for AIN1 and AIN2 on analog input screen #303

Open fietser28 opened 2 years ago

fietser28 commented 2 years ago

When using the AFE3 a common use case is to measure the efficiency of a mains powered power supply directly with the BB3 only. This currently doesn't work because the Analog Inputs screen shows the DC values of AIN1 and AIN2 and uses these to calculate the P1 and efficiency between P1/P2

  1. I would like to be able to select between DC and RMS values for AIN1 and AIN2 in the Analog Inputs screen of the MIO168 (current RMS values in AC analysis are including DC so they should not be called AC). This would also show the proper P1 and calculate efficiency in relation to AIN3/AIN4 DC measurements. When AC analysis is enabled the appropriate Urms and Irms values are available and seem accurate enough for this purpose.

  2. This should also work in DLOG (select additional values or use the setting for the channel DC/RMS)

  3. This should also wok in SCPI. With SCPI commands DC and RMS can be separate commands?

For AIN3 and AIN4 AC is not really necessary: most power measurements go from mains AC to some DC value.

It's currently also confusing. In the screenshots below: The AC analysis shows 60W and the DC shows 0W at the same time: image image

PS. I like it the AC analysis runs on the MIO168 processor.