Coder Social home page Coder Social logo

Random Values on the raspberry pi about hx711py HOT 3 OPEN

tatobari avatar tatobari commented on August 29, 2024
Random Values on the raspberry pi

from hx711py.

Comments (3)

james-e-morris avatar james-e-morris commented on August 29, 2024

This isn't my repo, but you should first check all your wiring matches the GPIO pins you have set. You should have the clock/sck pin and GPIO input pin wired to the HX711, and then the 5v power and ground. Make sure you've configured your GPIO properly as well.

Over on my similar repo, I have a raw GPIO test you can use to see exactly how the GPIO is interacting with the hx711.

https://github.com/Morrious/hx711-multi/blob/prod/tests/raw_gpio.py

from hx711py.

programmeddeath1 avatar programmeddeath1 commented on August 29, 2024

Hey yes I have assigned data and sck to gpio 5 nd 6 as mentioned in the repo demo. I have checked the GPIO configuration is set as per the two tutorials mentioning this repu, not the connections towards the sensor side I am not sure if the pin connections to the given sensors and hx711 are proper. The sensor has 4 cables of red,white,black and green. I have attached the red and black to excitiation(E+,E-) and green and white to A+ and A-(tried both) I am still getting random values from the hx711. I tried with another weight sensor and still the resut is the same. Is it a fault with the code, is it sending data differentl to the rpi than what the code in the repo ismeant to handle?

Thank you for your code, Ill test and check the raw GPIO values from your code once and see if theres some pattern there.

from hx711py.

james-e-morris avatar james-e-morris commented on August 29, 2024

Here's a wiring diagram I have of the HX711s I use.
image

from hx711py.

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.