Giter VIP home page Giter VIP logo

hx711-lopy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hx711-lopy's Issues

RP2040 - OSError: [Errno 12] ENOMEM

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.

Excessive long positive clock pulses

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.

Calibration process

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.

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.