I wanna control the position of a DC motor with an optical encoder. My idea is to wirte code on arduino for reading the angle from encoder and export the data to simulink, then I can control the motor.
I tried to use Serial receive in simulink arduino support package But when i connected with arduino, there was nothing shown on the scope connecting with serial receive block. Basically, it didn't work at all. Can anybody tell me how to use serial receive in the simulink arduino support?