Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random values on Jetson nano #55

Open
Gitanjali-apet opened this issue Dec 8, 2023 · 1 comment
Open

Random values on Jetson nano #55

Gitanjali-apet opened this issue Dec 8, 2023 · 1 comment

Comments

@Gitanjali-apet
Copy link

@tatobari hx711 for raspberryPi working Fine.
Same code with hx711 -for jetson nano getting random values on adding or removing weight.
I am stuck here. Could you please help?
board used - Jetson nano developer kit, load cell -5kg, HX711

@tatobari
Copy link
Owner

I don't have a Jetson Nano so I can't test it, sorry. I've updated the code to improve a few things, maybe you could take a look at the new README.md file and test using the new version, which has its own example file.

However, bare in mind that connecting the HX711 directly to a CPU that's running an multi-threaded OS is not a good idea. Polling the bytes is a very time sensitive process and if the OS needs to do something else while polling the bytes from the HX711, it will and then the polling could go wrong because the timing between pulling a pin up and then down could vary too much, generating unexpected behavior from the HX711.

The best is to use an MCU such as an Arduino, Raspberry Pico or any RP2040 based, an ATTiny, a PIC, etc, and connect them to the Raspberry Pi, Jetson Nano or any other multi-threaded OS through an I2C interface.

To keep is small, I'd recommend using an ATTiny85 with SpenceKonde/ATTinyCore and bogde/HX711 or queuetue/Q2-HX711-Arduino-Library.

I'm trying to find time to make my own implementation with this the Raspberry Pi -> MCU -> HX711 schema. I might have some free time to do this in a couple weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants