Comments (5)
I have not tested the library with ESP8266, but it should work. I think the problems you see is related to the ESP pin mapping and pin usage (that I'm not very familiar with myself). I did some tests now with a nodeMCU (ESP12-E), but without any HX711 connected;
This will not work:
//HX711 constructor (dout pin, sck pin)
HX711_ADC LoadCell_1(4, 5); //HX711 1
HX711_ADC LoadCell_2(6, 7); //HX711 2
This seems to work:
//HX711 constructor (dout pin, sck pin)
HX711_ADC LoadCell_1(D2, D1); //HX711 1
HX711_ADC LoadCell_2(D8, D7); //HX711 2
from hx711_adc.
hi,
I am also getting the similar issue when connected to nodemcu .
⸮Wait...
Soft WDT reset
ctx: cont
sp: 3ffef220 end: 3ffef430 offset: 01b0
stack>>>
3ffef3d0: 3ffe84a0 00000000 3ffee3e4 40202139
3ffef3e0: 3ffe8425 feefeffe 3ffee2ac 40201ea6
3ffef3f0: feefeffe feefeffe 3ffee2ac 40201ed3
3ffef400: 3fffdad0 3ffee2ac 3ffee3e4 40201c2b
3ffef410: feefeffe 00000000 3ffee400 402025f4
3ffef420: feefeffe feefeffe 3ffee410 40100114
<<<stack<<<
⸮⸮b !⸮⸮d
Wait...
`
how will i connect a 4 wire load cell to nodemcu without using HX711 breakout board???
Thank you
from hx711_adc.
Hi
This suggests that the wiring between ESP8266 and HX711 is wrong, with an endless loop as a result. Please check your wiring and check correspondence with the assigned pins in your code.
I will include a fix in the next update of the library to avoid WDT reset of the ESP8266.
You can not use the load cell without the HX711, a microcontroller is not able to read the load cell without an AD converter/amplifer like the HX711.
from hx711_adc.
//HX711 constructor (dout pin, sck pin)
HX711_ADC LoadCell_1(D2, D1); //HX711 1 здравствуйте ,запускаю так ,ругается на строку " float oldCalibrationValue = LoadCell.getCalFactor();" в начале скетча :
//pins:
const int HX711_dout = 4; //mcu > HX711 dout pin
const int HX711_sck = 5; //mcu > HX711 sck pin
//HX711 constructor:
//HX711_ADC LoadCell(HX711_dout, HX711_sck);
HX711_ADC LoadCell_1(D4, D5); //HX711 1
как исправить, исползую esp8266?
from hx711_adc.
Changing the calibration example to define:
//pins:
const int HX711_dout = D2; //mcu > HX711 dout pin
const int HX711_sck = D1; //mcu > HX711 sck pin
Worked great! There should be a way to put this in the example code in a generic/compatible form... it would save a lot of time!
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 4
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.