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
HX711 reading RAW A and B Channel
-
- Valued Contributor
- Posts: 771
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 151 times
- Been thanked: 173 times
-
- Matrix Staff
- Posts: 1767
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 449 times
- Been thanked: 610 times
Re: HX711 reading RAW A and B Channel
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 771
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 151 times
- Been thanked: 173 times
Re: HX711 reading RAW A and B Channel
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
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
-
- Valued Contributor
- Posts: 771
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 151 times
- Been thanked: 173 times
Re: HX711 reading RAW A and B Channel
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.
Stefan
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.
regardsPin PD_SCK input is used to power down the HX711. When PD_SCK Input is low, chip is in normal working mode
Stefan