Thanks for the reply/follow-up.
-
I do ultimately want things in oz (ounces) vs grams... but wasnt clear what for unit type was to be entered.. but I guess doesnt matter the unit type. Just use the known mass/weight of the object itself.
-
Interesting.. I am using the HX711-ADC lib.. (even when I just clicked update).. the Calibration script states its from... 2017? Where as your example is from 2021?)
RE: Speed. First Ive heard about a RATE pin? (this from the sensor to the HX711? or from Arduino to HX711 board?) How can I tell if it is 10hz vs 80hz? Is there any control over that aspect of things?)
I guess I'm not sure how to answer the last question (sorry). As fast as possible I guess?
When using this to 'measure/weight' (control) the output of liquid to create drink recipes... I would think faster the better? To be more accurate on the output? This whole topic is more or less a 'band-aid' fix to a completed/running project that was converted over to using pumps. Pumps are not very accurate, especially when compared to other pumps of same brand/model. Timing of pressurized solenoid valves does not work same (repeatability) as trying ti time the on/off time for a pump (output is not consistent)
So if a recipe has an ingredient of say 0.25oz of juice... pump needs to -accurately- output only 0.25 of liquid. I'll be altering the snippet/loop of code now to: (more or less)
tare scale/weight
turn on pump
start weighing glass (stuck in this linear 'loop' until target weight has been measure, and then move on,....once certain ingredient amount has been reached, turn pump off. Nice part of this project is everything is linear, one behavior at a time..)
- of course a little planning ahead of turning if off BEFORE 0.25 is actually reach will be needed (since output will still happen after pump is off,, so planning for overflow..etc).. but thats just code/adoption
I'll upload the latest sketch you posted...
Send 't' from serial monitor to set the tare offset.
Tare complete
Now, place your known mass on the loadcell.
Then send the weight of this mass (i.e. 100.0) from serial monitor.
Known mass is: 170.00
New calibration value has been set to: 2235.52
- put my phone on an old scale.. stated 170g. put it on calibration Arduino/scale..
- did TARE
- type 170, hit enter (are we supposed to save to eeprom each time?)
Now I'm not clear is 'rifting/drifting' is what I'm seeing? But I see more or less same numbers.. maybe off/different by a couple 0.0x values? if I remove phone..sometimes stays @ 0.01 or 0.02.. then maybe goes to 0 or not.
If I place phone again.. sometimes it shows 169.98 or something..
Watching each value output to the serial monitor, reveals things are sloooow. I do understand that serial put also adds time. (but I'm not sure how the default lcd screens/board that were in these scales are so fast? If I take one of the default scales.. drop something on it.. under 1 second you have a final weight displayed. Where as Arduino/serial monitors takes many many seconds.
So I guess at this point, summary: (thanks you and everyones posts)
- HF scale does work with Arduino/HX711 boards
- HF scale does seem that it will cover my max weight needs (so far)
- physical set-up is more beneficial with a smaller load cell bard sensor and the re-purposed scale housing/metal platform
Whats left?
- not sure if calibration is legit? Needs more work? Fine tuning? (nor how to apply it)
- is this still worth the R&D is speed is not very very quick
I'm not worried about implementing things in my current sketch/project... but I def need to get more up to speed on the class/lib options (function/methods available)....and should be used for my needs/project...etc
Suggestions on next steps? Anything to try/test out for feedback?
Thanks.
Off of work in like 2.5 hours.. so I can focus more and provide more info if needed!