Yapay zekâ tarafından English dilinden çevrildi ·
Tabii ki CE0 ile CE1 meselesi. CS pini 24 numaraya bağlıydı ama kod 1 diyordu. spi.open(0, 0) olarak değiştirdim ve kanal 0 artık tank yarı doluyken 412 okuyor, kanal 1 de beklendiği gibi boşta kalıyor. Loopback testi de geçti, o yüzden onu tutacağım. Şimdi mA gönderiyorum ve twilson’ın dediği gibi ölçeklendirmeyi akışta yapıyorum.
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.

