SIMULINK Arduino Nano Every Support

18 views (last 30 days)
Hugo Mack
Hugo Mack on 24 Feb 2021
Commented: Hugo Mack on 22 Mar 2021
Hello,
I’m working on a project that will explore the use of HIL (Hardware In the Loop) simulation for a rocket flight control system. I want to make use of Simulink’s hardware support for Arduinos by developing the flight control model in Simulink and uploading it to an Arduino. I then want to have a model of the simulated environment running in Simulink that communicates with the Arduino and spoofs the sensor data that the flight controller would have access to when in a real flight.
I was planning on using the Arduino Nano Every for my project but discovered that Simulink doesn’t seem to support it. It does however support the Nano 3. I believe the Nano Every uses the ATMega4809 processor while the Nano 3 uses the ATMega328. I’ve tried searching for a community made hardware support package within Simulink but to no avail.
I’m willing to downgrade from the Every to the Nano 3 if necessary, but I’m really keen to hear anyone’s suggestions as to how I can get Simulink to communicate with the Every. Alternatively, if someone has information relating to if/when Simulink will have support for the Every I would really appreciate it.
Thanks very much,
Hugo

Answers (1)

Arun Kumar
Arun Kumar on 22 Mar 2021
Hi Hugo,
Nano Every is not supported by Simulink support package for Arduino Hardware and there is no simple way to add support as well.
My suggestion would be to use Arduino Nano 3.0.
Is there any reason for preferring Nano Every over Nano 3.0?
Thanks,
Arun
  1 Comment
Hugo Mack
Hugo Mack on 22 Mar 2021
Hi Arun,
Thanks for your reply.
I have been in discussion with Mathworks and they have indicated that they may be adding support for the Every over the next few months, but for the time being it isn't possible.
I intended to use the Every due to it's larger program memory, higher processing power and multiple hardware serial ports. I have already purchased some custom circuit boards designed around the Every but luckily the Nano 3 has a very similar pinout and is compatible for the most part. For the time being I am resigned to the fact that the Nano 3 is the only option.
All the best,
Hugo

Sign in to comment.

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!