Comments (5)
Hi,
After you installed the HX711 library did you run ldconfig
?
from hx711-rpi-py.
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)
- `calibrate.py` error on RPi 4b HOT 3
- Cannot run calibrate.py HOT 1
- error while using options in .weight, .read HOT 3
- convert raw values from hx.read HOT 9
- Numbers are jumping too much HOT 1
- HX711 and stepper driver simultaneously - jagged/jerky drive HOT 2
- Scale functionality to be removed
- Install problem HOT 6
- Install problem using python 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-rpi-py.