WOLFRAM SYSTEM MODELER

ThermometerI2C

Reading a temperature sensor I2C device

Diagram

Wolfram Language

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

Information

Hardware Components Used

  • BMP180 temperature sensor
  • 1 Resistors of 1k
  • 1 1 LED of 1k

Description

This example uses an I2C temperature sensor. It will turn on a LED when the temperature is over 28 degrees celsius.

Components (5)

arduino1

Type: Arduino

Description: Component with default configuration for Arduino boards

sensor

Type: BMP180

Description: I2C driver for the BMP180 temperature sensor

overheating

Type: Greater

Description: Output y is true, if input u1 is greater than input u2

const

Type: Constant

Description: Generate constant signal of type Real

digitalOutput1

Type: DigitalOutput

Description: Writes a digital signal to the specified pin