Few things to consider :
Each variable in your program take memory, try to use the smallest datatype ( don't use a float if you need an int for example).
Reduce the usage of array
Reduce your code size by using function for redudant task
Avoid using digital and analog red/write. Use port manipulation instead (link here)
Modify library to ...
Researching a little and found the solution! In addition to capacitor 104, its necessari need to add a 10k resistor by connecting the 5 volts to pin 1.
This is the link of the GitHub project where I found the solution with the assembly scheme, I hope this helps somebody else!
A Nano and some ProMinis have all 8 analog input pins available from the 32-pin TQFP Atmega328P package. An Uno only has 6 of the 8 available in the 28-pin DIP package. Instead of the bare 28-pin DIP, use one of the 32-pin TQFP parts, on a breakout board, or as a packaged 'system' board; a Promini is the 328P with resonator and voltage regulator, connect to ...
No, this is not possible. The datasheet of the ATmega328P
states it has:
8-channel 10-bit ADC in TQFP and QFN/MLF package
6-channel 10-bit ADC in PDIP Package
If you want to use a bare chip, it won't be possible with a PDIP