saversklion.blogg.se

Stmicroelectronics nucleo f401re
Stmicroelectronics nucleo f401re




stmicroelectronics nucleo f401re
  1. STMICROELECTRONICS NUCLEO F401RE HOW TO
  2. STMICROELECTRONICS NUCLEO F401RE CODE

During simulation, the Display block displays the temperature reading from the TMP102 sensor in degree celsius. Click the Run button on the toolbar of the model to run it in Normal mode.

STMICROELECTRONICS NUCLEO F401RE HOW TO

Enable Simulink IO as described in How to Enable Connected IO.Ģ. To simulate the model in Normal Mode with Simulink IO:ġ.

STMICROELECTRONICS NUCLEO F401RE CODE

In this task you will simulate the model in Normal mode with Simulink IO to validate the design before generating code and deploying the model on the Nucleo board.For more information see Communicate with Hardware Using Connected IO. Run the Model in Normal Mode with Simulink IO Apply a temperature change to the sensor to observe this behavior. This glows the STMicroelectronics Nucleo board LED at pin 13 when the TMP102 sensor reading exceeds the specified temperature threshold. The two Constant blocks with values of 1 and 0 are used with a Switch block to compare the temperature reading against a threshold of 27 degree Celsius. In this task, you will configure the model to read data from the TMP102 sensor using the I2C Master Read block. Configuring the Model to Read Temperature Using the I2C Read Block Select the Hardware Implementation pane and select your required STMicroelectronics Nucleo board from the Hardware Implementation > Hardware board parameter list. In your Simulink model, open the Modeling tab and press CTRL+E to open Configuration Parameters dialog box.ģ. Open the Read temperature from an I2C based sensor using STMicroelectronics Nucleo board model.Ģ. In this task, you configure the model for the supported STMicroelectronics Nucleo boardġ.

stmicroelectronics nucleo f401re

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Configuring the Model for Supported STMicroelectronics Nucleo Board TMP102 pin | STMicroelectronics Nucleo F031K6 pin This example shows how to program the STMicroelectronics Nucleo board to: For more details about the device, refer to the ADX元45 datasheet and ITG-3200 datasheet. These sensors need to be configured separately and acts as two different I2C slave registers. It will send X,Y, and Z axis data for the accelerometer and gyrometer sensor present in the sensor board. This sensor is interfaced with the STMicroelectronics Nucleo board using the I2C bus. In this example you will also learn how to communicate to the Sparkfun Digital 6DOF accelerometer and gyrometer sensor. For more details about the device, refer to the TMP102 datasheet. You can configure this sensor to an Extended mode that provides 13-bit temperature measurements. By default, it sends a 12-bit temperature value with a resolution of 0.0625 degree Celsius. In this example, you will learn how to communicate to the Sparkfun digital temperature sensor TMP102. Simulink® Coder™ Support Package for STMicroelectronics® Nucleo Boards enables you to use the I2C interface to communicate with I2C based devices. This example shows how to use the Simulink® Coder™ Support Package for configuring and reading data from an I2C-based sensor using an STMicroelectronics® Nucleo board.






Stmicroelectronics nucleo f401re