Skip to content

Question: Limited GPIO's #21

Description

@yanshay

My understanding is that hx711 requires two GPIO's.
Well, on the device I'm using I'm left with just one, where the rest are used for SPI using another device.
With standard SPI device this may have worked using CS, but I understand hx711 is not really a SPI device.

So my question is, would it be possible to use single GPIO I have left for the PD_SCK to power down the device (which I understand is what it's doing if held high for enough time), and then share another pin of the other SPI device when PD_SCK is pulled down?

So:
to use HX711, I will:

  • Disable that other device using it's CS
  • At that time use HX711 using the extra GPIO connected to PD_ SCK, and DOUT using one of the other SPI gpios.

When I want to use that other SPI device, I will:

  • turn high the PD_SCK and wait for it to power down.
  • use that other SPI

This relies on that when the HX711 is powered down I can use the DOUT for whatever I want and it doesn't hold it high/low or impacted by changes on that line.

Will it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions