Hey what's up guys, I have bought my new arduino nano every like a month back now and still can't figure why are libs not working at all with it. I know that some of them are not updated yet for this new board, but there are problems with some basic ones too. I thought that some updates of the pack with this board in arduino ide might help, but still nothing and i would really like to get it running. I am little confused if it's just me, or other people too, cause I couldn't find any problems like this.
Compilation error is in attachment and btw, if it needs to solve some macro or files changes, I do not care and know how to do it - I am not a begginer
If you care, just quote me, thanks a lot for any reactions
Appears to be some direct register manipulation, so its not going to work with the atmega4809 processor used in the Nano Every.
To the original poster, you might want to look through the forum for the Uno WiFi rev 2 board, that board uses the same processor and you may find some suggestions there. You can also try some of the other OLED libraries, you may find one that will work.
pert:
This is some strange looking output. What software are you using?
It is an arduino extension for microsoft visual studio on win10. It works the same, but i prefer it more and it has more accurate error output. If you need error output from arduino IDE, i'll make one, but I have been testing it and it doesn't work too
I would prefer the output from the Arduino IDE because I'm familiar with it. I'm having trouble interpreting that output from Visual Studio because I have only used it for a very short period of time years ago. Others here may be experienced with VS and be able to work with that output easily.
Thank you guys, but it does not solve the problem with the oled library, which is still giving error outputs. There are some undefined macros and that is little strange, isn't it?
That's probably because the atmega4809 has an internal RTC, although I'm not sure how accurate it is.
The accuracy of the RTC will be that of the main oscillator.
Arduino made the (very bad) choice not to use quartz or external resonators, unlike in his other cards, probably to save money.
The accuracy of the internal oscillator is only ± 2% between 0 C and +70 C.
pert:
By "installing by trial and error", do you mean the process of installing a potential library, uploading to the Nano, and seeing if it works?
Yes that is the case, my application has three NANO's at the limit of their capacity talking to a MEGA through RF24Network. When verified for and EVERY they fail on almost all libraries I use. So yes I accept the invitation to report about my findings, later in a different post.
Replacing the NANO with an EVERY is possible but requires a more work than moving to a MEGA where I had no issues.
Maybe I should abandon the idea of using an EVERY and move to a NANO IoT instead and a full re-design of my application.
The NANO-EVERY is just a board with the same pinout as the popular NANO
The NANO-EVERY uses an ATmega4809 instead of the NANO's ATmega328P
You get 48kB vs 32kB Flash
You get 6kB vs 2kB SRAM
You get 256B vs 1024B EEPROM
The Arduino pinout may be identical but it maps to different MCU Port pins on the mega4809.
The regular Arduino functions and classes e.g. digitalWrite(), SPI.begin(), ... work the same.
If a library dives into the mega328P hardware it will not be the same on a mega4809.
Hence you need to report any problems.
The mega4809 peripherals are "better" than mega328P but don't expect them to work any faster.
The extra Flash and SRAM is handy. The smaller EEPROM might be awkward.
It is generally easier to put everything on one big MCU than to use many small MCUs.
i.e. single-chip design if possible.
If I select Genuine UNO and go to files, examples and scroll down I can find the examples for keypad, LiquidCrystal I2C, RF24 and RF24Network.
When I select NANO EVERY and go to files, examples and scroll down I find a folder INCOMPATIBLE with, guess what, LiquidCrystal I2C, RF24 and RF24Network. So no wonder my application will not run on an Every.
They missed Keypad, the Hello Keypad does not verify.
This is a start and will help to determine whether I can use a library for a specific board. Still you can only see this after you installed a library.
I would love to see a filter on board in the software library manager.
Keypad can be replaced with Adafruit Keypad
LiquidCrystal_I2C can be replaced with hd44780
RF24 and RF24Network are classified as INCOMPATIBLE by Arduino, I assumed raising an issue would be useless.
So on my project, 4 libraries need work to get things going again. For me that is not worth the trouble. In order to move forward I decided to go for the Arduino NANO IoT and start from skratch to rebuild my application together with the possibility to publish the results on the web.
Anything that can be done on Uno or Nano should be possible on NANO-EVERY board.
The authors just need to be told. After all, the RF24 libraries were written before the ATmega4809 was invented.
The GitHub site seems to have some activity. So it is simply a question of raising an Issue or offering a Pull Request.
The author might want you to do some testing. That is how the world benefits from OPen Source.