Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4387

C/C++ • HX711 SimpleHx711Test Hanging

$
0
0
Hi, I have been spinning my wheels on this and am hoping someone can point me to the right direction.

I have a RaspberryPi 5 and am using c++. Having installed https://github.com/endail/hx711 and the prerequisite lgpio (http://abyz.me.uk/lg/lg.zip). I then build all the standard libraries and executables. When I try to run the SimpleHx711Test (and also the Advanced test) it just hangs.

I have used wiringPi to test that I am accessing the GPIO ports and can turn a LED on and off.

This is the error message I get when running in debug mode:
terminate called after throwing an instance of 'std::runtime_error'
what(): no samples obtained

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)


I also tested the output from the hx711 on an Arduino and it works fine with expected results. I have data connected to 2 and the clock to 3. Calibrate also hangs when it starts to measure a weight.

I just don't know where to start to figure this out. Thanks in advance for your help.

Statistics: Posted by gettingstronger — Wed May 01, 2024 11:09 am — Replies 0 — Views 2



Viewing all articles
Browse latest Browse all 4387

Trending Articles