geda / hx711-lopy Goto Github PK
View Code? Open in Web Editor NEWThis is a hx711 librairie for the lopy. The hx711 is an electronic module used to measure load cells.
This is a hx711 librairie for the lopy. The hx711 is an electronic module used to measure load cells.
Hey thank you for the library.
I have been running into an error when I run a script that calls your library.
here is a copy of the error:
Traceback (most recent call last):
File "", line 45, in
File "hx711_pio.py", line 44, in init
OSError: [Errno 12] ENOMEM
Here is my line 45:
hx711 = HX711(pin_SCK, pin_OUT)
The script works if I reset the machine or run it the first time power has been connected, but then if i run it more than once I get the error.
Any ideas how to solve this?
Thanks,
Tray S.
This is a very well set-up class for the HX711. However, the clock timing seems odd. Looking at the clock signal with an logic analyzer, I've seen excessive long positive clock pulses, like 130µs. A clock pulse of 50µs and longer will however put the device to sleep. Better change the few lines of method read into:
state = disable_irq()
self.pSCK.value(True)
dataBits[j][i] = self.pOUT()
self.pSCK.value(False)
enable_irq(state)
and change the first line of the script into
from machine import Pin, enable_irq, disable_irq
That avoids interrupts during the high cycle of the clock. Maybe then the "all true" events are gone.
Hi
Can you help me with the process for calibration and use for the script scale.py
Im using hx711_spi.py on esp32 microcontroller.
thanks in advanced.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.