Von English mit KI übersetzt ·
CE0 vs. CE1, natürlich. CS lag an Pin 24, und im Code stand 1. Ich habe es auf spi.open(0, 0) geändert, und Kanal 0 liefert jetzt 412 bei halb vollem Tank, Kanal 1 schwebt wie es sollte. Der Loopback-Test hat ebenfalls bestanden, den behalte ich also. Ich sende jetzt mA und skaliere im Flow, wie twilson vorgeschlagen hat.
CE0 vs CE1, of course. CS was on pin 24 and the code said 1. Changed it to spi.open(0, 0) and channel 0 now reads 412 with the tank half full, channel 1 floats like it should. Loopback test passed too, so I’ll keep that one. Sending mA now and scaling in the flow as twilson said.
If it isn't logged, it didn't happen.

