I2C
#1
After a lot of Google and trouble shooting I can't seem to enable I2C on the board. Does anyone know of any tutorials or anything that can help me set it up?

Thanks!

Also I'm using Debian XFCE from https://www.pine64.pro/downloads/
#2
(07-22-2016, 03:18 PM)puddles Wrote: After a lot of Google and trouble shooting I can't seem to enable I2C on the board. Does anyone know of any tutorials or anything that can help me set it up?

Thanks!

Also I'm using Debian XFCE from https://www.pine64.pro/downloads/

I'm using debian-mate, and I2C on the Pi bus works fine with nothing done by me to enable it..it was good to go by default.

If you're using the expansion board, thats a different story, take a look at this thread: http://forum.pine64.org/showthread.php?tid=1813
#3
(07-22-2016, 07:28 PM)DonFL Wrote:
(07-22-2016, 03:18 PM)puddles Wrote: After a lot of Google and trouble shooting I can't seem to enable I2C on the board. Does anyone know of any tutorials or anything that can help me set it up?

Thanks!

Also I'm using Debian XFCE from https://www.pine64.pro/downloads/

I'm using debian-mate, and I2C on the Pi bus works fine with nothing done by me to enable it..it was good to go by default.

If you're using the expansion board, thats a different story, take a look at this thread: http://forum.pine64.org/showthread.php?tid=1813

OK thanks for the feedback; that helps a lot. What libraries do you use to program it? I've been trying to get python code I wrote for Raspberry Pi to work, but just get a IOError (121 remote io error).
#4
(07-25-2016, 12:35 PM)puddles Wrote:
(07-22-2016, 07:28 PM)DonFL Wrote:
(07-22-2016, 03:18 PM)puddles Wrote: After a lot of Google and trouble shooting I can't seem to enable I2C on the board. Does anyone know of any tutorials or anything that can help me set it up?

Thanks!

Also I'm using Debian XFCE from https://www.pine64.pro/downloads/

I'm using debian-mate, and I2C on the Pi bus works fine with nothing done by me to enable it..it was good to go by default.

If you're using the expansion board, thats a different story, take a look at this thread: http://forum.pine64.org/showthread.php?tid=1813

OK thanks for the feedback; that helps a lot. What libraries do you use to program it? I've been trying to get python code I wrote for Raspberry Pi to work, but just get a IOError (121 remote io error).

First would suggest you use i2c-tools to see if you your i2c device is being seen. Since the i2c expansion board has issues, you'll need to connect directly to the pi bus SDA/SCL pins.

Also make sure you've installed the python smbus.

If you've got working python code used on the pi, and you know the i2c device address, should be an easy port over to the Pine.
#5
I think I see the issue now. I ran i2cdetect (-y 0 and 1) and it could't find the lcd in either case. Originally I thought this was because the I2C functions weren't enabled. I'm connected directly to the pins (using this guide http://joey.hazlett.us/pine64/pine64_pins.html) and I used a simple GPIO and LED setup to verify that they work. SMbus is installed it just seems that I2C tools can't see the LCD screen. I'll see if I can find another I2C device to test it on for comparison.


Forum Jump:


Users browsing this thread: 2 Guest(s)