HX711 reading RAW A and B Channel

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 738
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

HX711 reading RAW A and B Channel

Post 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

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: HX711 reading RAW A and B Channel

Post 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.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: HX711 reading RAW A and B Channel

Post 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 1570 times

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: HX711 reading RAW A and B Channel

Post 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

Post Reply