JochiSt / OpenFlowMeter

Measuring Flow
GNU General Public License v3.0
6 stars 0 forks source link

Implementation of the optimised gain settings #20

Closed JochiSt closed 1 year ago

JochiSt commented 1 year ago

In #18 a optimised gain setting has been found, which needs to be implemented in hardware (exchange of resistors) and software (configuration values).

The results from #18 are: U channel:

I channel:

JochiSt commented 1 year ago

TODOs:

Software / Firmware:

PCB changes: (only population)

JochiSt commented 1 year ago

There is a problem with reading back the gain settings see #21.

This problem has been solved.

JochiSt commented 1 year ago

I've implemented sending out the measured and calculated temperatures.

These are the values, the PID is working on. It seems, that this needs a bit of tuning to get the best results. Especially in the region, where two different gain settings are used, the behavior can be better.

A current calibration in order to determine the real gain of the amplifier seems a good next step.

JochiSt commented 1 year ago

The pink curve is the internal used temperature, the wiggles at about 100s might be a problem for the PID controller.

20230103_PID_testing_calc_temperature_CH1

JochiSt commented 1 year ago

The gain setting resistors listed in https://github.com/JochiSt/OpenFlowMeter/issues/20#issue-1516488905 are by a factor of 10 to large.

Those values cause might cause the amplifier to cause strange effects in the unity gain setting. (see https://github.com/JochiSt/OpenFlowMeter/issues/22#issue-1518569229)

This problematic was solved in https://github.com/JochiSt/OpenFlowMeter/issues/22#issuecomment-1371897907.

The correct gain setting resistors are (Ch0):

And same for Ch 1.

JochiSt commented 1 year ago

From the HG to the LG of the current section, there is some slight mismatch, which causes the temperature to be negative. (Means, that a too high current is measured)

20230108_PID_test_gain_switching_offset

JochiSt commented 1 year ago

The gain switching is working. Although it needs some improvements. (There is always room to improve things)

20230109_PID_test