Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Merged
merged 1 commit into from
Nov 20, 2024
Merged

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

merged 1 commit into from
Nov 20, 2024

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

Signed-off-by: Tero Salminen <tero.salminen@unikie.com>
@t-salminen
Copy link
Author

Sub PR merged and submodule updated

@t-salminen t-salminen merged commit 87d267a into main Nov 20, 2024
27 checks passed
@t-salminen t-salminen deleted the fmu2_adc branch November 20, 2024 10:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant