@Cognitive5525 said in AIN4-20mA Unit to Arduino Nano Every:
@spectrad said in AIN4-20mA Unit to Arduino Nano Every:
@spectrad have you tried with the M5Stack example here?
No as I am not using an M5Stack, I am trying to use an Arduino Nano Every.
Ah sorry I overlooked that, but even though you're not using a M5stack MC I still believe that you might be able to get some "inspiration" from it. Have a look at the module MODULE_4_20MA in src-folder. As far as I can see it does not rely on any special M5stack libraries at this level.
Although you are not wrong about getting inspiration from it, using the Arduino Wire functions I should get something (and they do detect the device), the M5 library really just decodes the values its reading using the M5 version of the wire library (I assume, I don't know the M5).
I am not reading anything from the module using I2c (a standard protocol), that's the bit I don't understand, if I can read some data back, I can manipulate it from there to get a reading, it's just I don't get data, so I am left scratching my head.