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.

 Accepted Answer

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

4 Comments

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.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!