@LightSwitch :
I do not have Dash nor ADC Exp. Still, going though various docs makes me believe that ADC Exp should work with Dash. As per:
https://onion.io/omega2-dash-guide/
"The Omega2 Dash is compatible with the existing ecosystem of plug-and-play Omega2 expansions."
Please verify that i2c pins are configured for i2c (not for gpio), in the dash.
root@Omega-745F:/tmp# omega2-ctrl gpiomux get
Group i2c - [i2c] gpio (configured for i2c)
Group i2c - i2c [gpio] (configured for gpio)
If is is configure for gpio , change to i2c
root@Omega-745F:/tmp# omega2-ctrl gpiomux set i2c i2c
As per the docs:
https://docs.onion.io/omega2-docs/using-adc-expansion.htm, ADC exp can have 0x48 or 0x49 addresses(settable).
Please see if the i2cdetect reports ADC exp at either 0x48 or 0x49:
root@Omega-745F:/tmp# i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Since Omega2 has only one I2C, trying to access a bus other than 0 fails.
root@Omega-745F:/tmp# i2cdetect 1
Error: Could not open file /dev/i2c-1' or
/dev/i2c/1': No such file or directory
I have connected a device with address 0x27 to the I2C bus. But any compatible I2C device shall respond to the i2cdetect.
From the opkg file listing adc-exp and python3-adc-exp install different files:
root@Omega-745F:/tmp# opkg files adc-exp
Package adc-exp (0.3-2) is installed on root and has the following files:
/usr/bin/adc-exp
root@Omega-745F:/tmp# opkg files python3-adc-exp
Package python3-adc-exp (0.3-2) is installed on root and has the following files:
/usr/lib/python3.6/OmegaExpansion/AdcExp.py
/usr/bin/adc-exp is a script that makes use of the various programs installed by i2c-tools. adc-exp can be tried as the next step.
root@Omega-745F:/tmp# adc-exp -h shall provide various options.
Thanks ..