Giter VIP home page Giter VIP logo

Comments (5)

endail avatar endail commented on June 9, 2024

Hi,

After you installed the HX711 library did you run ldconfig?

from hx711-rpi-py.

herbbetz avatar herbbetz commented on June 9, 2024

I had no idea, I had to run this. Obviously updates the linker cache 'etc/ld.so.cache'. Now 'import HX711' is working in the python REPL, despite I cannot find the module in 'pip list'. Somewhat confusing, but thanks ... Your HX711 python examples are now working! How is this explained?

After the setup of liblgpio (abyz.me.uk) there was 'import lgpio' possible (this is used in their DHT.py), also despite not being in 'pip list', but it now no longer works in the python REPL (even after ldconfig). So I cannot read the DHT22 sensor using liblgpio any more? This would have been very useful ...

Similarly there was 'import hx711' possible after installing https://github.com/endail/hx711 from source, but not in 'pip list' and now no longer working either.
Then after the instructions on https://github.com/endail/hx711-rpi-py, there is this hx711-rpi-py in 'pip list', which python 3.9.2 and VSCode mark as invalid dash syntax. What is it for?

For me this is a lot of python confusion. I was relieved that at least the CPP compilings worked as expected. Therefore I was considering linking a CPP-lib (CPP-code for DHT22 and HX711) and importing that into python using 'import ctypes'. I need these sensors to work with Picamera on a single core RPiZero2W cpu. But I did not find the time yet to try this nerdy solution, which might have its own disadvantages ...

Another question: How could I keep your SimpleHX711.py example from hanging and driving the cpu load to 100%, when there is no hx711 sensor connected? A try...except loop maybe?

Greetings from Germany and many thanks for any help... My main concern would now be, how to read the DHT22 sensor using liblgpio?

from hx711-rpi-py.

Related Issues (10)

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.