The pressure sensor is on i2c-3. About the MADC I believe it is on i2c-1 because the output of "i2cdetect -l" is
i2c-1    i2c           OMAP I2C adapter                    I2C adapter
i2c-3    i2c           OMAP I2C adapter                    I2C adapter

I'm reading it throught the twl4030 driver:

fd = open("/dev/twl4030-madc", O_RDWR | O_NONBLOCK);
struct twl4030_madc_user_parms *par;
par = malloc(sizeof(struct twl4030_madc_user_parms));
par->channel = 4;
ioctl(fd, TWL4030_MADC_IOCX_ADC_RAW_READ, par);
res = par->result;

The pressure I'm reading it throught the i2c-dev:
fd = open("/dev/i2c-3", O_RDWR);

Date: Wed, 1 Jun 2011 16:05:11 +1000
Subject: Re: [Gumstix-users] Cannot get ADC and I2C together

Howdy Mathias,


OMAP has 3 distinct i2c controllers, which line have you got your pressure sensor hooked up to? I believe the MADC is on i2c-1. 




From: Mathias Kriebel []
Sent: Wednesday, 1 June 2011 6:33 AM
Subject: [Gumstix-users] Cannot get ADC and I2C together



I am using an I2C pressure sensor that works fine alone. I also have an analog ambient light sensor, that I was using at ADCIN4.

The problem is that when I put them together I can't read the I2C sensor anymore, that is, the reading is not updated.


I think that this has something to do to the fact that the TWL4030 is accessed via I2C but I don't know where is the problem.





------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today.
_______________________________________________ gumstix-users mailing list