Hello
How can I connect ram to an arduino nano to add more variables ?
You can't.
Well, not easily.
Not easy at all.
Use an Arduino with more memory.
Welcome to the Arduino forum.
There are many people here that can help with your program design than may free up more memory. But first, when did your program get so big? Have you been testing as you wrote the code? Are you using local variables for functions so their memory can be reused, or are all your variables global, so they never disappear?
Paul
Do you have a lot of string literals that take up SRAM? Constant arrays? Those may be moved to flash (PROGMEM) to free SRAM.
What do you need to do that makes you think you need more RAM?
Please post your code.
@gamerabbit, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project See About the Installation & Troubleshooting category.
You have reached the limitations of the Nano, either because you haven't optimised your code yet or because you really have reached it. You can add devices to store data but it will never be the same as the RAM as that you currently use.
When posting code, please don't forget to use so-called code tags so the forum software does not mangle it, it's easier to read andeasy for others to copy; use the </>
as shown below.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.