circuitar / Nanoshield_LoadCell

Arduino library to measure weight using load cells with the ADS1230 IC from Texas Instruments.
MIT License
16 stars 10 forks source link

Offset auto calibration proccess #15

Open Dpineda1996 opened 3 years ago

Dpineda1996 commented 3 years ago

Hi,

I am using the ADS1230 device developed by circuitar (https://www.circuitar.com/nanoshields/modules/load-cell/ ) to convert the measurements to weight from a load cell. Recently I discovered that by disconnecting and connecting back electrically to the source supply after some seconds, the stability of the system is even better than only reading and switching the SPI interface during the time (weeks). As I am using the reference library for this converter (https://github.com/circuitar/Nanoshield_LoadCell) I have a question. What do I need to do in the library or example program ("ReadWeight") for what after each restarting the system doesn't go to the calibration function and just set the initial parameters (OFFSET...) previously saved and continues just reading the current weight normally as if it had not been restarted?.

Thank you so much for your attention and I will be looking forward to your answers.

Greetings,

Duvan.

alexsartin commented 3 years ago

Hi,

Try calling loadCell.begin(false); and comment below lines https://github.com/circuitar/Nanoshield_LoadCell/blob/7340a875b9268cfde2648584bfaa4f0aa7c0781c/examples/ReadWeight/ReadWeight.ino#L23-L24 in the example.

Maybe just the comment part is enough.

Dpineda1996 commented 3 years ago

Hi,

Try calling loadCell.begin(false); and comment below lines

https://github.com/circuitar/Nanoshield_LoadCell/blob/7340a875b9268cfde2648584bfaa4f0aa7c0781c/examples/ReadWeight/ReadWeight.ino#L23-L24

in the example. Maybe just the comment part is enough.

Hi,

Thanks for your answer. I tested your idea but there is one issue more (it is not something significant), in my case, I am using a 10kg load cell 1mv/V, and always the measurements began 1100 gr upper than the real weight. Do you know to solve this (not only using Real weight - 1100)?.

Thanks.

alexsartin commented 3 years ago

I guess that's why you would calibrate the cell first. To remove this offset.

But since the built-in offset feature is for zeroing the measure, if you always have this 1.1kg difference you could subtract it from the value read.

Regards. Alex.

On Jan 20, 2021, at 13:02, Duvan09 notifications@github.com wrote:

 Hi,

Try calling loadCell.begin(false); and comment below lines

https://github.com/circuitar/Nanoshield_LoadCell/blob/7340a875b9268cfde2648584bfaa4f0aa7c0781c/examples/ReadWeight/ReadWeight.ino#L23-L24

in the example. Maybe just the comment part is enough.

Hi,

Thanks for your answer. I tested your idea but there is one issue more (it is not something significant), in my case, I am using a 10kg load cell 1mv/V, and always the measurements began 1100 gr upper than the real weight. Do you know to solve this (not only using Real weight - 1100)?.

Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.