Reading Loadcell (HX711) with Adafruit I2C IO Expander (MCP23017)

Hi all,

I'm working on a project that requires 10 load cells (I have purchased these: link). I figured a nice solution would be to have all of the load cells attach to this Adafruit I2C IO expander and have it communicate all of the load cell data over I2C to the Arduino Uno.

However, I'm running into issues using the load cell library HX711 with the MCP since all of the writes and reads in the HX711 library aren't the mcp methods. I've managed to replace all of them but I am still running into some strange issues where the mcp.digitalRead/Writes don't work after line 155 ATOMIC_BLOCK(ATOMIC_RESTORESTATE) in HX711.cpp.

I've uploaded my PlatformIO project here:
LoadCell (MCP23017).zip (1.2 MB)

I would love any feedback on solutions or workarounds that might work! Or if I am just approaching this completely wrong. Thank you!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.