Can I read voltage and current measurement from simulink model that containts a model of connections in Arduino Uno?

I had done the connections on simulink for the attachment of the pins in Arduino to the dc motor. But i dont know how to take the measurements for the voltage and current used when the dc motor starts to turn.

 Respuesta aceptada

Use the Analog Input block froo the Simulink Support Package for Arduino.

4 comentarios

nope. i already successfully connected the pins and declare in the matlab simulink. the motor were running but how to measure the current an voltage and rpm of the motor in the simulink model ?
You sent commands to the Arduino OUTPUT pins. You need to feed the volatge to an Aruino INPUT pin and read it with the Analog Input block. Current and rpm readings are more complicated. You can't get them directly.
what should be added to get the rpm and current if it cant get directly?
https://forum.arduino.cc/t/reading-current-values-with-arduino/612862 talks about some issues with high voltage, and some with reference voltage for Nano that should be checked in case they apply to Uno.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Arduino Hardware en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 2 de Ag. de 2022

Editada:

el 8 de Ag. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by