Example Sketches not compiling on Arduino Nano Every

Works great on Arduino Uno and Arduino Nano (classic) boards. But, can’t get it to compile on Arduino Nano Every. Is the SimpleFoc library not compatible? Any quick fixes for this? :wink:

Arduino Nano Every

Hey @Scott885 ,

The every uses the ATMega4809, I’m not sure we support it. In fact, you might be the first person to try it…

In principle it’s an ATMega so it should not be too hard to make it work. The question is whether it is worth it - you’re the first person to ask about this MCU on the one hand, and I don’t foresee a long future for 8bit MCUs on the other hand…

Most ESP32 modules cost much less than an every, and even Arduino’s new UNO boards now use a 32bit ARM processor…

1 Like

Thanks Runger!,

Seems to compile for the Arduino Nano Iot board. And, it has an Arm® Cortex®-M0 32-bit SAMD21. Would that work do you think? Or, is the STM32 Nucleo-32 the way to go? Is there a better option for that form factor? Thanks again.

Hey,

Yes the SAMD21 on the Nano33 IoT is supported, as are most of the Nucleo32 boards (F1,F4,G0,G4,L4).

Please check that these MCUs have enough pins for your needs… but for running one motor it should be enough.

1 Like

Hey guys,

I’ve actually bought one nano every board some time ago with the 4809 chip planning to support it.
It was a bit more complicated than I thought so I’ve created a topic asking if everyone is interested

As there was litereally no one who repriled I did not bother at the end, but this might be a nice addition to the lib in the next release :smiley:

2 Likes

I have an Every and am happy to test, but I’m going to focus more on the new UNO R4 myself, I think.

I had a thought the other day, I wonder whether all the Nanos have a compatible 3PWM pinout and we could change the shape of the SimpleFOC mini a bit to make it a Nano sized shield?

2 Likes

I’d use that. That’d be so cool!

Slightly off topic… does running it with a faster 32 bit MCU make for a quieter gimbal motor?

It can - it depends a bit on the system setup and what sensor type is used. But if the MCU was the limiting factor in the systems bandwidth then switching to a faster one can help to run more smoothly and more quietly.