WOLFRAM SYSTEM MODELER

AccelerometerI2C

Reading an accelerometer I2C device

Diagram

Wolfram Language

In[1]:=
SystemModel["ModelPlug.Examples.AccelerometerI2C"]
Out[1]:=

Information

Hardware Components Used

  • LSM6DS3 acceleration sensor
  • 2 Resistors of 2.2k

Description

This example uses a LSM6DS3 acceleration sensor connected through the I2C bus.

Components (4)

arduino1

Type: Arduino

Description: Component with default configuration for Arduino boards

lSM6DS3_1

Type: LSM6DS3

Description: I2C driver for the LSM6DS3 acceleration and gyroscope sensor

signalArrow1

Type: SignalArrow

Description: Visualizing an arrow with dynamically varying size in frame_a based on input signal

world

Type: World

Description: World coordinate system + gravity field + default animation definition