Hello, can you help me solve a problem in Simulink, please?

1 visualización (últimos 30 días)
Dan Maria
Dan Maria el 9 de Nov. de 2017
I need to read a ds18b20 temperature sensor, connected to Raspberry Pi 3 model B, using Simulink. Do you have any idea how can I do this?

Respuestas (2)

Walter Roberson
Walter Roberson el 9 de Nov. de 2017
  2 comentarios
Dan Maria
Dan Maria el 9 de Nov. de 2017
Alright, so I have to install an Raspberry Pi Library, "OneWire" for DS18B20. Where can I find it? All examples are for Arduino.

Iniciar sesión para comentar.


Edwin Kemper
Edwin Kemper el 28 de En. de 2019
hi Dan Maria, i have exactly the same problem, but i am working on a STM32-E407 board.
i still havent been able to solve the problem, the Arduino code should be possible to implement in the “s-function builder” block.
hopefully by now someone has solved it?
  1 comentario
Christopher Harness
Christopher Harness el 7 de Ag. de 2019
I'm having similar issues developing a MEX code to use in the S-Function builder. I keep using sample code from both the OneWire and DallasTemperature Arduino libraries as a basis, but I still keep getting errors in return, especially with how the code is structured. I have posted a recent question about using the "Legacy 1-Wire" Matlab Add-on and how to implement it into simulink.

Iniciar sesión para comentar.

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by