Page 1 of 1

HX711 reading RAW A and B Channel

Posted: Fri Apr 01, 2022 11:20 am
by stefan.erni
Hi Ben

HX711 is 24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales with two channel. It's working fine with Flowcode.
Only the support for both channels (A and B) is not easy.

Would it be possible to add 3 additional commands to the HX711 component?
These should only read the Raw values without having to reconfigure the HX711 in the Flowcode component propertis.
Scale Factor and Zero Set would not be needed.

Like this:
RawsampleA64
RawsampleA128
RawsampleB32

Or just add the command RawsampleB32 for the second channel.
So I can use the B channel additionally with the A channel

regards

Stefan

Re: HX711 reading RAW A and B Channel

Posted: Mon Apr 04, 2022 1:13 pm
by BenR
Hi Stefan,

I've added a new macro for you called SetChannelAndGain that allows you to override the channel and gain specified by the properties. The new version of the component should now be available via the component updates.

Re: HX711 reading RAW A and B Channel

Posted: Tue Apr 05, 2022 2:41 pm
by stefan.erni
Hi Ben

It's working in a way but with a big problem.
Sometimes it reads swapping the A channel, sometimes swapping the B channel. It switches from A to B in a way. But I have to be able to rely on every measurement to be on the correct channel.

regards

Stefan
hx_send_2022-04-05_14-37-01.jpg
hx_send_2022-04-05_14-37-01.jpg (28.01 KiB) Viewed 1613 times

Re: HX711 reading RAW A and B Channel

Posted: Wed Apr 06, 2022 5:16 pm
by stefan.erni
Hi Ben

I still have a small wish more.
Would it be possible to add another command?
A command for power down (on/off)?
It's easy to do via the clock pin. Advantage: if not measured, you can switch off the IC and you save power (battery). Especially with a low-impedance bridge circuit you can save up to 40mA because the bridge supply is also switched off.

Pin PD_SCK input is used to power down the HX711. When PD_SCK Input is low, chip is in normal working mode
regards

Stefan