Skip to content

Sensor12 - Expanded documentation for ADS1115 Modes #15514

Answered by barbudor
phinnay asked this question in Q&A
Discussion options

You must be logged in to vote

As of today there is no more than PR #15001 from @FransOv

If I remember the discussion the command is Sensor12 mg
Where mg is a combination of mode and gain:

  • m = S : single-ended mode, each channel 0, 1, 2, 3 match idependently each input from AIN0 to AIN3
  • m = D : differential mode, present only 2 channels where channel 0 is AIN0 - AIN1 and channel 1 in AIN2 - AIN3
  • g sets the gain/range with
    • 0 : 6.144V full range
    • 1 : 4.096V full range
    • 2 : 2.048V full range
    • 3 : 1.024V full range
    • 4 : 0.512V full range
    • 5 : 0.256V full range

For exemple Sensor12 S2 set single-ended mode with 2.048V full range while Sensor12 D1 set differential mode with 4.096V full range

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@phinnay
Comment options

Answer selected by ascillato2
Comment options

You must be logged in to vote
9 replies
@Failx92
Comment options

@sfromis
Comment options

@FransOv
Comment options

@sfromis
Comment options

@Failx92
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants