Page 1 of 1

HX711 Do not work

Posted: Fri Jan 07, 2022 8:30 am
by B2CAP-V6
Hello everyone,
I would like to use the HX711 and for that I took the flowchart which is given in the help.
I am using a PIC 18F26K22 and under Proteus it does not work.
Has anyone ever encountered this problem?
I have tried several modifications but the result is always the same.
Thank you in advance for your feedback
HX711_Example2.fcfx
(11.88 KiB) Downloaded 91 times

Re: HX711 Do not work

Posted: Fri Jan 07, 2022 9:20 am
by medelec35
Hi.
A post in Dec 2021 states HX711 works on PIC32.
Although It's not the same family as 18F26K22 so there may or may not be an issue?
I would recommend trying on real hardware first, to eliminate possible bugs with proteus.
If it does not work on hardware, then we can take it from there.

Re: HX711 Do not work

Posted: Fri Jan 07, 2022 10:28 am
by BenR
Hello,

We use the HX711 device on a lot of our in house hardware so I'm very surprised you're having problems.

I've have a look at your program and it looks ok so I think I agree with Martins view to try on some real hardware. It could be the proteus sim is somehow flawed or incompatible.

As a test you could try disabling the SetSampleCount and SetScaling macro calls to try a really simplified version just in case these are causing the problem.

Re: HX711 Do not work

Posted: Sat Jan 08, 2022 2:53 am
by B2CAP-V6
Hi,
Thank you very much for your answers.
I tried disabling the two macros and it is the same.
To try in real hardware, I have to wait to receive the components I ordered.
When I receive them I will be sure to keep you informed.
Thanks again for your answers
Luc

Re: HX711 Do not work

Posted: Fri Jan 21, 2022 9:06 am
by B2CAP-V6
Hi Martins and Ben,
good news I received the HX711 and it works in real.
I now have to work on the program to improve all that.
Many thanks again for your support
Luc

Re: HX711 Do not work

Posted: Fri Jan 21, 2022 9:19 am
by medelec35
Hi Luc.
Thanks for the update.
I'm glad the HX711 is working on your hardware.