You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to read the values in differential mode using the code and library provided by you. But using adc.SetChannel(2,3) for differential values gives me some absurd negative values(like: -175, -291 and sometimes it gives nan). Also when using your adc.readCurrentChannel() gives values as:
16:14:13.076 -> Current Channel: 0 MUX: 1000 ADC Value: inf
16:14:13.076 -> Current Channel: 1 MUX: 11000 ADC Value: inf
16:14:13.076 -> Current Channel: 2 MUX: 101000 ADC Value: inf
16:14:13.123 -> Current Channel: 3 MUX: 111000 ADC Value: inf
16:14:13.123 -> Current Channel: 4 MUX: 1001000 ADC Value: inf
16:14:13.123 -> Current Channel: 5 MUX: 1011000 ADC Value: inf
16:14:13.123 -> Current Channel: 6 MUX: 1101000 ADC Value: inf
16:14:13.123 -> Current Channel: 7 MUX: 1111000 ADC Value: inf
when using single-ended mode, while with adc.readCurrentChannelRaw() and manually converting this i am getting correct values. So can you tell me why I am getting voltage as infinite in single and differential ended using adc.readCurrentChannel() ?
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to read the values in differential mode using the code and library provided by you. But using adc.SetChannel(2,3) for differential values gives me some absurd negative values(like: -175, -291 and sometimes it gives nan). Also when using your adc.readCurrentChannel() gives values as:
16:14:13.076 -> Current Channel: 0 MUX: 1000 ADC Value: inf
16:14:13.076 -> Current Channel: 1 MUX: 11000 ADC Value: inf
16:14:13.076 -> Current Channel: 2 MUX: 101000 ADC Value: inf
16:14:13.123 -> Current Channel: 3 MUX: 111000 ADC Value: inf
16:14:13.123 -> Current Channel: 4 MUX: 1001000 ADC Value: inf
16:14:13.123 -> Current Channel: 5 MUX: 1011000 ADC Value: inf
16:14:13.123 -> Current Channel: 6 MUX: 1101000 ADC Value: inf
16:14:13.123 -> Current Channel: 7 MUX: 1111000 ADC Value: inf
when using single-ended mode, while with adc.readCurrentChannelRaw() and manually converting this i am getting correct values. So can you tell me why I am getting voltage as infinite in single and differential ended using adc.readCurrentChannel() ?
The text was updated successfully, but these errors were encountered: