[Solved] Using "setScale" Function

PaulS:

Do I type it into the sketch file?

Typing it in a letter to your boyfriend (or girlfriend) is pointless. Yes, it goes in the sketch.

Actually it is not in the sketch, it is in the *.h file in the library. I found that info finally here:

It is on page 4 and it says:

".Zero adjustment- Open the Hx711 library folder , and find the file Hx711.h, open it. Locate the statement
void setScale(float scale = 1992.f); You only need to adjust the number 1992 to find the appropriate value for weight scale.
Save the h file, and upload the above code again..."

If so, I tried that and it generated errors on verifying.

Ah, well, my crystal ball sees why. Unfortunately, we aren't exactly on speaking terms right now. Seems I pissed it off somehow. Can't imagine what I did to upset it.[/quote]

It is probably withholding that so as to maintain it's superior knowledge position in your life. If it told you too much you wouldn't need it any more... :slight_smile:

I pretty much would like to see exactly what it should read like and where it would go along with with the punctuation or formatting symbols that needed to precede or follow it.

scale.setScale(calValue);

Where calValue is a float, and contains some reasonable value for calibration of YOUR scale.

I managed to find the *.h file and played with the value in the void setScale(float scale = 1992.f); statement and it worked as described to changed the readings. So my question is answered.

Thanks for the help.

Jack