How can read back an arduino analog input ?

조회 수: 1(최근 30일)
Hello everyone, to be honest i am new for using Simulink and i want to know how could i read back the analog input for arduino because i want to use it to determine the position of my actuator. Thank you very much.

채택된 답변

matlabuseraa 2013년 5월 2일
You have to learn how to use serial communication on the arduino and matlab, than you can pass serial data from matlab to arduino and vice versa. Thats atleast one way in which you can do it.
  댓글 수: 1
joshua hadi
joshua hadi 2013년 5월 2일
thanks for your reply, do you mean by using serial transmit and receive in simulink support package for arduino block?

댓글을 달려면 로그인하십시오.

추가 답변(2개)

efrianto tanto
efrianto tanto 2013년 5월 2일
i am interested with this problem and im also new to simulink. right now i think that i am in the same case to monitor the movement of the actuator potentiometer feedback which its wiper go to analog input on arduino support package block, how could i monitor the value of my feedback and how could i make a conditioning (if else for example) after i know the value of my feedback? thanks

matlabuseraa 2013년 5월 2일 This should help you to get started. If i were you i would first be sure to know how to serial communicate with arduino then switch to communicating it with simulink. There are many guides online on how to configure the communication.
  댓글 수: 1
joshua hadi
joshua hadi 2013년 5월 3일
Thanks for your reply matlabuseraa, i will try this out :)

댓글을 달려면 로그인하십시오.


Find more on Simulink Support Package for Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by