Comments (7)
Hi!
Sure, just remove the "LoadCell.start" function in the setup part of your scetch, then tare will not be performed. The powerUp() and powerDown() functions can be usefull to save power if the HX711 is connected all the time.
Keep in mind that the data set will contain old data when you wake up the unit, so you need to fill the data set with fresh conversions if you want to read an updated value that is represents the current load.
from hx711_adc.
Perfect ..thank you
from hx711_adc.
Hi, sorry to come back to this, but I have been away and unable to check until today. Removing the call to Start() gives be bad readings but with start, the value is perfect.
My setup code is:
LoadCell.begin();
long stabilisingtime = 2000;
LoadCell.start(stabilisingtime);
LoadCell.setCalFactor(104510.80);
while (!LoadCell.update());
And my reading code is:
void loop() {
LoadCell.update();
if (millis() > t + 10000) {
outval(LoadCell.getData());
t = millis();
}
}
I have the CalFactor, is it possible to get this to work from startup with a weight on the sensor and to give the correct value at that point. The reason I need this is if there was a power outage, I do not want the load sensor to tare to the weight that is on it.
Any help is greatly appreciated
from hx711_adc.
Hi!
If you by "bad readings" mean that you get a very high value readout, that makes perfect sense as you don't substract the tare value anywhere else in your code. Is this the case? If you put a known mass on the load cell, does the value increase same as the mass?
from hx711_adc.
Ahh.... got it... taking away that'tare value' makes it work perfectly.
Thank you and sorry for the stupid question
from hx711_adc.
You're welcome :)
from hx711_adc.
Hi, this is interesting.
Can you post the sample code how to use this lib without start()?
from hx711_adc.
Related Issues (20)
- Test.ino issue HOT 3
- Load_cell output val: NAN HOT 6
- ESP32 Wroom Pin For CLK HOT 2
- Question on Smoothing HOT 2
- Have problem with starting the code. HOT 2
- Slow data readings HOT 4
- UNITTTTTTTT!!!!!!!!!!!!! HOT 4
- Some error While test HOT 2
- No real issue - pls provide an example on how to use New funtions from v1.2.12 HOT 4
- Read_2x_load_cell example not working - potential issue with calling .begin() on multiple HX711_ADC objects HOT 2
- help wanted: How to set Sampling rate from ESP32 HOT 8
- Understanding Multi Point Calibration HOT 2
- Question about HX711_ADC::start functions HOT 1
- Strange Observation HOT 4
- DOUT and SCK PIN declarations HOT 1
- tare at startup HOT 6
- How , do I set calibration factor for 2 different channels HOT 4
- Compatibility issue with ESP32-S3 Dev Board HOT 3
- Hi, did the mass value needed for the calibration its unit is gram or something else? HOT 1
- How to read the value in setup method HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hx711_adc.