Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FMU2: Enable second ADC instance (2/2) #817

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

FMU2: Enable second ADC instance (2/2) #817

wants to merge 1 commit into from

Conversation

t-salminen
Copy link

@t-salminen t-salminen commented Nov 19, 2024

FMU2 has two ads1115 ADC chips on the I2C 0 bus. Addresses are 0x48 and 0x49.

Testing with the change in FMU2:

saluki> listener adc_report

TOPIC: adc_report 2 instances

Instance 0:
 adc_report
    timestamp: 55398998 (0.031816 seconds ago)
    device_id: 9455625 (Type: 0x90, I2C:1 (0x48))
    raw_data: [2456, -2, 2417, 12990, 0, 0, 0, 0, 0, 0, 0, 0]
    resolution: 32768
    v_ref: 6.14400
    channel_id: [0, 1, 2, 3, -1, -1, -1, -1, -1, -1, -1, -1]


Instance 1:
 adc_report
    timestamp: 55387974 (0.051546 seconds ago)
    device_id: 9455881 (Type: 0x90, I2C:1 (0x49))
    raw_data: [8793, 8819, 8788, 8798, 0, 0, 0, 0, 0, 0, 0, 0]
    resolution: 32768
    v_ref: 6.14400
    channel_id: [0, 1, 2, 3, -1, -1, -1, -1, -1, -1, -1, -1]

saluki> 

Sub PR: https://github.com/tiiuae/saluki-pi/pull/102

@t-salminen
Copy link
Author

Submodule must be updated after sub PR is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant