EdgePi-Cloud / edgepi-python-sdk

Python SDK to control EdgePi, an industrial PC/PLC/IoT device powered by Raspberry Pi CM4
MIT License
6 stars 3 forks source link

Computing expected voltages off by 20 mV instead of 1 mV #297

Open jarell-santella opened 1 year ago

jarell-santella commented 1 year ago
{"metric": "dac/ch_1_V", "value": 0.01786939052180969, "timestamp_ms": 1682727409391}
{"metric": "dac/ch_2_V", "value": 1.0191911188376253, "timestamp_ms": 1682727409391}
{"metric": "dac/ch_3_V", "value": 2.0145833401038544, "timestamp_ms": 1682727409391}
{"metric": "dac/ch_4_V", "value": 3.0189993435888027, "timestamp_ms": 1682727409391}
{"metric": "dac/ch_5_V", "value": 4.016552426852286, "timestamp_ms": 1682727409391}
{"metric": "dac/ch_6_V", "value": 5.017014901990478, "timestamp_ms": 1682727409391}
{"metric": "dac/ch_7_V", "value": 1.5185030747306882, "timestamp_ms": 1682727409391}
{"metric": "dac/ch_8_V", "value": 4.516235735696682, "timestamp_ms": 1682727409391}

Expecting for channels 1-8: 0.0 V, 1.0 V, 2.0 V, 3.0 V, 4.0 V, 5.0 V, 1.5 V, 4.5V.

Receiving these outputs. As we can see, value is off by almost up to 20 mV. It should only be off by < 1 mV.

jarell-santella commented 1 year ago

Actually, I suspect this to be a calibration error.