hi everyone, I start to tell I'm not good at programming but I'm using Simulink very well (Matlab). Many times ago I saw a video on YT where a guy was programming code for Arduino from file simulink. I've tried this tutorial but I've got a clone version of Arduino nano pro (with Atmega too) and this device is not recognised by Simulink.
so I tried to create code with the code button also in Simulink ( and then insert manually the code in my Arduino) but come out with many errors, problems etc. I don't understand why is so difficult to program with this software...
Does your operating system recognise it? Which operating system? Most clones use the CH340 TTL-to-USB converter. If your operating system is Wi dows did you install the drivers?
You will have to provide details e.g. error messages.
Note:
A lot of us (including me) are not familiar with Simulink.
For help with this problem, describe how you connected the Arduino clone, and post the associated error messages.
But first, test the Arduino by using the Arduino IDE to program it. The Blink example is all you need to verify overall correct operation. If that works, Simulink should too.
use this command set serial baudrate ,because Chinese clone arduino board uses ch340g almost,6Mpbs max, take cables and other noise factors thinkinside, so 115200 maybe suitable: