How do I build a temperature sensor model in Simulink?

55 vues (au cours des 30 derniers jours)
Johanna Nilsson
Johanna Nilsson le 1 Déc 2020
I am a part of a student group, which is going to create a simulation of an electrical car in Simulink. My subproject is a BLDC motor and I am responsible for the temperature sensor in the motor. My task is to have a temperature as an input and deliver a voltage as an output so that my classmates can get the output voltage on a MyRio. I have never used Simulink before and would like to get some piece of advice and some guidelines of how to do this.
First of all, should I use a Blank Model or Blank Subsystem, or something else?
Which components or elements should I include on my canvas?
How do I change the temperature to a voltage output?
Thanks,
Kind Regards,
Johanna

Réponses (1)

Joel Van Sickel
Joel Van Sickel le 1 Déc 2020
Hello Johanna,
you should start with a blank model and create a subsystem in it that will be your sensor. You likely only need to use gain blocks and add bocks to scale the appropriate temperature to a voltage. Use constant blocks to feed in a constant temperature to test it first, and a scope block to look at the output. The values will all be numeric at first so you can start by ignore units. just implement the arithmetic to match the sensor behavior, aka, y = mx + b or something similar.
Here is free Simulink training that i would recommend: https://www.mathworks.com/learn/tutorials/simulink-onramp.html
Regards,
Joel

Community Treasure Hunt

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

Start Hunting!

Translated by