Problem with Arduino Nano Every and Mozzi library

218 views
Skip to first unread message

Milan Guedec

unread,
Feb 23, 2020, 4:53:03 AM2/23/20
to Mozzi-users
Hello to all ! 

I recently bought a Nano Every and I tried to make it work but I keep having the same message and it seems like there is some sort of compatibility issue. (I'm a beginner)
My board works fine if I upload basic code, when I want to use Mozzi library, I get errors.

Here's the error message (I shortened it because it's verryyyyy long):

Arduino: 1.8.12 (Mac OS X), Board: "Arduino Nano Every, ATMEGA328"

WARNING: library Mozzi claims to run on avr architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s).
/Users/milanguedec/Documents/Arduino/libraries/Mozzi/mozzi_analog.cpp: In function 'void setupFastAnalogRead(int8_t)':
/Users/milanguedec/Documents/Arduino/libraries/Mozzi/mozzi_analog.cpp:31:3: error: 'ADCSRA' was not declared in this scope
   ADCSRA |= (1 << ADPS2);
   ^~~~~~
...

Anyone has any idea what's going on ? I tried to run my board on ATMEGA4809 and ATMEGA328.  I thought that Arduino Nano and Nano Every were compatible with the same libraries but it doesn't seems to be the case..

Thanks for your help

Tim Barrass

unread,
Feb 23, 2020, 7:17:45 AM2/23/20
to mozzi...@googlegroups.com
Hi, the boards which Mozzi runs on are listed on the Mozzi front page: https://sensorium.github.io/Mozzi/

Some differences between the Nano and Nano Every are outlined here: https://forum.arduino.cc/index.php?topic=650297.0

It looks like it might take some time with the manual for the ATmega4809 to port Mozzi to Nano Every.  You're welcome to contribute!

Tim



On 23 Feb 2020, at 8:53 pm, Milan Guedec <milan....@gmail.com> wrote:

Arduino Nano Every

Milan Guedec

unread,
Feb 23, 2020, 11:45:45 AM2/23/20
to Mozzi-users
Thank you for your answer ! Ok I see it's not yet compatible, I'd love to contribute but as I said I'm a beginner so I don't if I could really help :/
Tim



On 23 Feb 2020, at 8:53 pm, Milan Guedec <milan...@gmail.com> wrote:

Arduino Nano Every

Martin Gerken

unread,
Feb 24, 2020, 4:33:53 AM2/24/20
to Mozzi-users

Hi Milan,
the "classic" Arduino Nano and the new Arduino Nano Every have a different CPU which is not 100% identical regarding the inner workings like registers. Maybe it's a simple issue, but without further knowledege you just cannot use Mozzi. Suggestion:get yourself a bunch of cheap "old" Nanos (I pay aorund 1 € from China and 3 € from German seller) and be happy. For more processing power use the ESP8266...
Best, Martin

snafu...@gmail.com

unread,
Feb 24, 2020, 9:29:45 PM2/24/20
to mozzi...@googlegroups.com
Just to chime in... if you need processing power or I/O you could try a cheap ‘blue pill’ or ‘maple mini’ clone STM32. I know only the blue pill is shown as supported but I’ve been successful with the maple mini (same chip series but more memory).

Regards 
--
You received this message because you are subscribed to the Google Groups "Mozzi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozzi-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mozzi-users/8b8db6eb-a433-490b-9eea-cd92d6a6871b%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages