Trouble interfacing with I2C load cell #11332
-
Hi all, I’m having some trouble interfacing with a load cell that I recently bought for a project. It uses the I2C protocol to send data from the cell. I’ve been reading the data sheet and it looks like I need to send a read request to the I2C bus and then read the following two bytes. I’m having a lot of trouble trying to send the read request. I’ve searched the internet for hours but had no luck finding something that applies to my situation. Any code examples or suggestions are welcome. Data sheet here: (page 10) https://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Data+Sheet%7FFX29%7FA3%7Fpdf%7FEnglish%7FENG_DS_FX29_A3.pdf I have followed the data sheet correctly and I have the correct pull up resistors and capacitors in the correct locations Load cell model: FX29K0-100A-0025-L Code I am trying to run:
I do not receive any error message, but instead I get a constant output of 8191 from the load cell. The load cell does not react to any force applied Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
As far as I understand the data sheet, you have to send a read request with 0 data to wake up the device and start measurement,wait at least 8.4 ms, and the a second read request for 2 bytes of data. |
Beta Was this translation helpful? Give feedback.
A delay should be between the first and second read, e.g.: