Jump to content
Pirate

I2C not working?

Recommended Posts

Hi,

Ive upgraded from the Tinkerboard S to the Tinkerboard 2S

My I2C 7 Segment 7 Digit Display doesnt work

I plugged the wires in my 2S the same way as I did for the Tinkerboard S.

However, I am unable to detect any I2C pluugged in.

Ive enabled all the I2C options in tinker-config.

root@Harbormaster:/home/linaro/Adafruit_LEDBackpack# sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

Share this post


Link to post
Share on other sites

I have solved this one after hours of hacking away!

It seems in TinkeBoard 2/2S, the I2C bus has been changed from 1, to 6

So, in any I2C controlling code, make sure you change bus from 1 (Tinkerboard) to 6 (Tinkerboard 2)

root@linaro-alip:/home/linaro/Adafruit_LEDBackpack# sudo i2cdetect -y 6
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --

 

Share this post


Link to post
Share on other sites

Hi, i tryed to connect lcd 2004 20columns, and 4 rows, and i cant detect any device plug on the tinker 2s, can you helpe with something? I tryed with command 

sudo i2cdetect -y 1 

sudo i2cdetect -y 2

And the others to 9, but on mi /dev/ directory, doesn't exist 6, or 7... (like you say on your post)

Thank you for sure!

Share this post


Link to post
Share on other sites

@Albertortor00

          Please reference following information. Thank a lot!

sudo i2cdetect -y 1 

sudo i2cdetect -y 2

--> Tinker Board 2S should use the following command for i2c 6 and 7

sudo i2cdetect -y 6

sudo i2cdetect -y 7

And the others to 9, but on mi /dev/ directory, doesn't exist 6, or 7... (like you say on your post)

--> Could you help to reference the following information to enable i2c 6 and 7 

https://github.com/TinkerBoard/TinkerBoard/wiki/Developer-Guide#tinker-board-2-on-debian-os

WiringPi C library for Debian (Tinker Board 2S)

I2C WiringPi for C library for Debian

  • Firstly, modify the /boot/config.txt file as following and then reboot to enable I2C6 (wiringPi only support 1 I2C interface).
##### Hardware Interface Config #####

## Note: uart4 and spi1 are the same pins. Set the latter one while both on. ##

intf:fiq_debugger=on
#intf:uart0=off
#intf:uart4=off
intf:i2c6=on
#intf:i2c7=off
#intf:i2s0=off
#intf:spdif=off
#intf:spi1=off
#intf:spi5=off
#intf:pwm0=off
#intf:pwm1=off
#intf:pwm3a=off
#intf:test_clkout2=off

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...