iMX233-OLinuXIno-MAXI interface MOD-SMB380 3-axis accelerometer both in I2C and SPI mode demo example


Image

Accelerometers are used to measure the acceleration in three axes X, Y and Z. These devices are very handy when you want to measure how objects move.

MOD-SMB380 is UEXT module with digital SMB380 accelerometer from Bosch. as it have UEXT interface it’s easy to interface it to any board with UEXT, SMB380 supports both SPI and I2C interface, so the demo example can use both as both interfaces are present on UEXT connector.

Download the code from GitHub and build it: https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/iMX233/MOD-SMB380

# ./mod-smb380 -spi

switch to SPI reading

# ./mod-smb380 -i2c

switch to I2C reading

1 Comment (+add yours?)

  1. meca soft
    Jan 06, 2014 @ 22:39:52

    Hello,

    I am looking for a SBC with a fast SPI and an efficient OpenGL GPU.
    Currently, I am comparing your OLinuXino Axxx products and with
    the BeagleBone Black.

    Your UEXT interface is very convenient, but in your file spi.c (published
    by TsvetanUsunov) the output/input sequence uses bit banging.

    In order to perform fast SPI I/O transfers on your OLinuXino Axxx SBC,
    is it possible to access the UEXT interface with a hardware-accelerated
    SPI driver, able to read six ADC 16-bit registers
    and to write 6 DAC 16-bit registers, in less than 1ms ?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: