MATLAB Answers


ArduinoUno Digital and Analog Inputs Simulink

Asked by Stas Diadechko on 21 Jan 2014
Latest activity Answered by Rolfe Dlugy-Hegwer on 28 Mar 2014
I have a problem(does not work analog and digital inputs in model of Simulink(Arduino Uno)...constantly shows "0" on Scope( What can I do ??

  1 Comment

Which Arduino package are you using? There are several out there. Did you download a package, or are you using the functionality built into Simulink?

Sign in to comment.

1 Answer

Answer by Rolfe Dlugy-Hegwer on 28 Mar 2014

Click the the "Deploy to hardware" button as described in the Run Model on Arduino Hardware topic.
One common error is to click the "Run" button (green triangle), which simulates the model on your host computer. The sensors output zeros because they do not exist on the host computer.


Sign in to comment.