KanoMaster22
Posts: 196
Joined: Wed Oct 05, 2016 6:06 pm

i2c OLED remote i/o error and i2c device not found error

Wed Sep 12, 2018 3:25 pm

I have been using a i2c OLED successfully recently. However, I now get a Remote I/O error when I run the Adafruit library for it and if I try luma.oled instead I get an error saying

Code: Select all

error: I2C device not found on address: 0x3C
However when I run

Code: Select all

i2cdetect -y 1
the device is clearly shown to be using the i2c address 0x3C. Can anyone help?

Thanks for any help,
LouisP

KanoMaster22
Posts: 196
Joined: Wed Oct 05, 2016 6:06 pm

Re: i2c OLED remote i/o error and i2c device not found error

Wed Sep 12, 2018 3:51 pm

Okay I literally just did nothing for five minutes ran the program again and it worked! The only thing I did was run

Code: Select all

sudo apt-get install i2c-tools
but it read package lists, built dependency tree, read state information and then said that it was already the newest version with 0 upgraded, 0 newly installed, 0 to remove and 124 not upgraded. Surely that couldn't of fixed it though.

DirkS
Posts: 10310
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: i2c OLED remote i/o error and i2c device not found error

Wed Sep 12, 2018 3:56 pm

How is your device wired? I saw a post somewhere where the device was detected with i2cdetect, but the same error message when the script was run.
The problem was a dodgy ground connection.

KanoMaster22
Posts: 196
Joined: Wed Oct 05, 2016 6:06 pm

Re: i2c OLED remote i/o error and i2c device not found error

Wed Sep 12, 2018 4:24 pm

Wow! This just got stranger. I got the same errors again all of a sudden and in between running the scripts all I had ran was the text I wanted printed! Again I entered to install i2c tools and the program started working again! Anyone have any idea why this happens and how to fix it?

KanoMaster22
Posts: 196
Joined: Wed Oct 05, 2016 6:06 pm

Re: i2c OLED remote i/o error and i2c device not found error

Wed Sep 12, 2018 4:28 pm

DirkS wrote:
Wed Sep 12, 2018 3:56 pm
How is your device wired? I saw a post somewhere where the device was detected with i2cdetect, but the same error message when the script was run.
The problem was a dodgy ground connection.
Dirk thank you for your help. I also saw this post and checked my ground wire but it looked fine so I didn't change it.

KanoMaster22
Posts: 196
Joined: Wed Oct 05, 2016 6:06 pm

Re: i2c OLED remote i/o error and i2c device not found error

Wed Sep 12, 2018 6:43 pm

Grrrr! Now I just keep getting the Remote I/O error and I can't fix it. Can anyone help?

KanoMaster22
Posts: 196
Joined: Wed Oct 05, 2016 6:06 pm

Re: i2c OLED remote i/o error and i2c device not found error

Thu Sep 13, 2018 9:41 am

Actually Dirk maybe you were right. I just though maybe the pins I soldered on have a dodgy connection or have been shorted. I will check when I get back.

Thanks,
Louis P

KanoMaster22
Posts: 196
Joined: Wed Oct 05, 2016 6:06 pm

Re: i2c OLED remote i/o error and i2c device not found error

Thu Sep 13, 2018 5:13 pm

Nope no dodgy connection :(

Return to “General discussion”