MJ5
Posts: 9
Joined: Tue Oct 18, 2016 9:21 am

I2C error using ADDA module

Tue Nov 08, 2016 11:35 am

Hi guys, I have a problem with my I2C connection with this Raspberry Pi ADC-DAC Module . I have enabled the I2C and edited the config in the boot folder and module as read on the website.
Also on raspi-config I enabled the I2C connection.

Image

Image

I have been trying different things for a while with different configurations like this but in the end it doesn´t detect anything when I write down

Code: Select all

sudo i2cdetect -y -a 1
Thank you very much

Edit: PCF8591T is the mc used in the ADC
Last edited by MJ5 on Tue Nov 08, 2016 12:50 pm, edited 1 time in total.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: I2C error using ADDA module

Tue Nov 08, 2016 12:16 pm

Remove the lines i2c-bcm2708 and snd-bcm2835 from /etc/modules.

Edit /boot/config.txt and add the line dtparam=i2c_arm=on.

Reboot.

Does /dev/i2c-1 exist?

MJ5
Posts: 9
Joined: Tue Oct 18, 2016 9:21 am

Re: I2C error using ADDA module

Tue Nov 08, 2016 12:27 pm

joan wrote:Remove the lines i2c-bcm2708 and snd-bcm2835 from /etc/modules.

Edit /boot/config.txt and add the line dtparam=i2c_arm=on.

Reboot.

Does /dev/i2c-1 exist?
Thank you. Done but still doesn´t work. It does exist but is empty.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: I2C error using ADDA module

Tue Nov 08, 2016 12:28 pm

If i2cdetect -y 1 shows an empty grid the device is not connected properly.

A photo of the connections will help.

Have you connected the grounds?

MJ5
Posts: 9
Joined: Tue Oct 18, 2016 9:21 am

Re: I2C error using ADDA module

Tue Nov 08, 2016 12:45 pm

joan wrote:If i2cdetect -y 1 shows an empty grid the device is not connected properly.

A photo of the connections will help.

Have you connected the grounds?
This is it. Supposed to be well connected.
Attachments
IMG_20161108_133735.jpg
IMG_20161108_133735.jpg (55.37 KiB) Viewed 1577 times
i2cdoesntdetect.png
i2cdoesntdetect.png (43.58 KiB) Viewed 1577 times

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: I2C error using ADDA module

Tue Nov 08, 2016 12:50 pm

Must be a poor connection or incorrect jumper somewhere. Otherwise the device would be seen.

MJ5
Posts: 9
Joined: Tue Oct 18, 2016 9:21 am

Re: I2C error using ADDA module

Tue Nov 08, 2016 1:01 pm

Thank you for your help joan, I will tell again if find a solution. It seems that the problem is from the ADDA.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: I2C error using ADDA module

Tue Nov 08, 2016 1:12 pm

Is it me or is that header connected off by one?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

MJ5
Posts: 9
Joined: Tue Oct 18, 2016 9:21 am

Re: I2C error using ADDA module

Thu Nov 10, 2016 2:13 pm

DougieLawson wrote:Is it me or is that header connected off by one?
No, it isnt, its properly connected.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: I2C error using ADDA module

Fri Nov 11, 2016 5:31 pm

MJ5 wrote:
DougieLawson wrote:Is it me or is that header connected off by one?
No, it isnt, its properly connected.
Are you absolutely sure? It's got a lot of overlap at the top of the board.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

MJ5
Posts: 9
Joined: Tue Oct 18, 2016 9:21 am

Re: I2C error using ADDA module

Fri Nov 11, 2016 8:37 pm

Yeah, completely sure, thank you. In the end I prefer to get another ADDA because it doesnt work. Thank you guys!

Return to “Interfacing (DSI, CSI, I2C, etc.)”