Giter VIP home page Giter VIP logo

Comments (5)

olkal avatar olkal commented on June 7, 2024

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.

layaannj avatar layaannj commented on June 7, 2024

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.

olkal avatar olkal commented on June 7, 2024

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.

Gennadwed avatar Gennadwed commented on June 7, 2024

//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.

mdroberts1243 avatar mdroberts1243 commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.