Hello Prasanth,
Thank you very much for your kind answer. I have just tried your solution and I am going to comment the results.
1) The i2c-3 bus appears as available, but there is a warning about detecting bus speed:
>> rpi = raspi
Warning: Cannot query I2C bus speed.
> In raspi.internal.raspiBase/getAvailablePeripherals (line 899)
In raspi.internal.raspiBase (line 172)
In raspi.internal.raspiDesktop (line 98)
In raspi (line 72)
rpi =
raspi with properties:
DeviceAddress: '169.254.0.2'
Port: 18734
BoardName: 'Raspberry Pi 3 Model B+'
AvailableLEDs: {'led0'}
AvailableDigitalPins: [4,5,6,12,13,14,15,16,17,18,19,20,21,22,25,26,27]
AvailableSPIChannels: {'CE0','CE1'}
AvailableI2CBuses: {'i2c-1','i2c-3'}
AvailableWebcams: {'mmal service 16.1 (platform:bcm2835-v4l2):'}
I2CBusSpeed:
Supported peripherals
By default it should be the same as for i2c-1 bus
2) If a scan the bus from MATLAB, no device is detected:
>> scanI2CBus(rpi,'i2c-3')
ans =
0×0 empty cell array
But if I open a shell window and use i2ctools, I get:
$ i2cdetect -y -r 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --
Best regards,
Rafael
Best Answer