Play + Mikrobus + Click Pressure 4

I realize I’m probably jumping on this a little early, because the Mikrobus expansion section here is not finished.

I was eager to try the new board and wanted a barometric pressure sensor for some code I’m working on.

I figured this expansion board would be easier to get working because i2c is pretty straightforward?, but I haven’t been able to get it working. I was able to boot the new system w/ the Click Pressure 4. Dmesg output shows the mikrobus bus:

[    2.104381] mikrobus:mikrobus_port_register: registering port mikrobus-0 
[    2.104446] mikrobus mikrobus-0: mikrobus port 0 eeprom empty probing default eeprom

I loaded the bmp280_i2c kernel module:

$ lsmod | grep bmp
bmp280_i2c             16384  0
bmp280                 24576  1 bmp280_i2c

I ran i2cdetect on each of the i2c buses, since I’m not sure which number to use. For example:

$ sudo i2cdetect -y 0
Warning: Can't use SMBus Quick Write command, will skip some addresses
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                                                 
10:                                                 
20:                                                 
30: UU -- -- -- -- -- -- --                         
40:                                                 
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60:                                                 
70:                                                 

or

$ i2cdetect -y 1
Warning: Can't use SMBus Quick Write command, will skip some addresses
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                                                 
10:                                                 
20:                                                 
30: -- -- -- -- -- -- -- --                         
40:                                                 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60:                                                 
70:                                                 

Starting to think the QWIIC or Grove expansion path is easier for now. Thanks, josh

I was able to use a QWIIC pressure sensor on i2c bus 5 no problem, so … not sure about mikrobus, but I remain excited. Thanks.

I had similar problems getting an OLED-B click working on mikroBUS, which I assume was down to the appropriate enable pins not being in use so nothign was detected over I2C. I managed to get it detected over I2C by creating a manifest for it. This is what worked for me:

~/$ git clone https://git.beagleboard.org/beagleconnect/manifesto
~/$ cd manifesto
~/manifesto$  ./manifesto -s ./manifests/OLEDB-CLICK.mnfs -o ./manifests/OLEDB-CLICK.mnfb
~/manifesto$ sudo -i
root@BeaglePlay:~#  cd /home/debian/manifesto/manifests
root@BeaglePlay:/home/debian/manifesto/manifests#  cat ./OLEDB-CLICK.mnfb >  /sys/class/mikrobus-port/mikrobus-0/new_device

After doing this it appear on I2C bus 1 - i.e. using “i2cdetect -y -r 1”.

I notice that there is a PRESSURE-4-CLICK.mnfs in the repo, so perhaps something similar will work for you.

1 Like