Skip to content

PGA (Programmable Gain Amplifier) is confusing to many #6

Description

@tomjoro

The PGA is confusing a lot of folks. Maybe we could update the readme to explain it a little more clearly.

Firstly, the range of the number never changes for the chip, i.e 12bits in 2's complement. The gain number changes the actual voltage range that is "zoomed" in.

For example if the gain is at 2048, then +-2.048 is the maximum voltage that can be measured. Anything beyond that will be clipped according to the specification. The actual 12 bit range covers that voltage range so that the maximum positive 12bit number is 2.048 volts.

So, if you want to measure 5V then you have to set the PGA to 6144.

If you are converting the FSR reading that is returned to voltage, then you need to know what gain was used when the value was read.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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