I have read piles of doc's and different threads but I'm unable to be sure of which i2c bus to use and what pins to use when hooking up my i2c device.
looking in the hookup guide for the board http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edisonarduino_hg_331191007.pdf http://www.intel.com/content/dam/support/us/en/documents/edison/sb/edisonarduino_hg_331191007.pdf
I have followed the configuation of the ports which gives me that 18/19 should be used
Initiating the i2c according to intel PDF breakoutboard for Io18,Io19
echo low > /sys/class/gpio/gpio214/direction
echo high > /sys/class/gpio/gpio204/direction
echo high > /sys/class/gpio/gpio205/direction
echo in > /sys/class/gpio/gpio14/direction
echo in > /sys/class/gpio/gpio165/direction
echo low > /sys/class/gpio/gpio236/direction
echo low > /sys/class/gpio/gpio237/direction
echo in > /sys/class/gpio/gpio212/direction
echo in > /sys/class/gpio/gpio213/direction
echo mode1 > /sys/kernel/debug/gpio_debug/gpio28/current_pinmux
echo mode1 > /sys/kernel/debug/gpio_debug/gpio27/current_pinmux
echo high > /sys/class/gpio/gpio214/direction
enclosed are the two ways I've tried first to the "SCL/SCA" which is the most obvious, The second using "A4/A5"
the board I use is the https://learn.sparkfun.com/tutorials/ms5803-14ba-pressure-sensor-hookup-guide?_ga=1.229762649.498544... MS5803-14BA Pressure Sensor Hookup Guide - learn.sparkfun.com from spark fun.
it has the default adress 0x76, end a byte reset command 0x1E
python exampel failing
>>> import mraa
So to the question:
Which I2C bus should i use? 0,1 or 6?
Which of the connections should I use for i2c? (SCL/SCA" or AI4/AI5)
The sparkfun sensor board has two pullup resistors on it. With the config above described in the edison documentation the edison itself shouldn't have pullup activated right?
It's easy. There is (in newest kernel, but in BSP you may find it as well) a pin mappings in the pinctrl-merrifield.c driver, from which we can see the I2C pins:
/* Family 7: I2C (14 pins) */
/* Family 12: MSIC (15 pins) */
Bus 0 is dedicated for MSIC and can't be accessed.
The rest has a GPIO number prefix, and according to the schematics http://www.intel.com/content/www/us/en/support/boards-and-kits/000005829.html http://www.intel.com/content/www/us/en/support/boards-and-kits/000005829.html (page 10) the buses are 1 and 6:
I2C1_SCL <span style="font-family: mon...