Pages: [1]   Go Down
Author Topic: More MEMORY?  (Read 574 times)
0 Members and 1 Guest are viewing this topic.
Oz
Offline Offline
God Member
*****
Karma: 3
Posts: 659
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks.

Though I am stuck in the problem of not being able to program any more Arduinos, I was wondering about the existing one which IS working.

My sketch has grown and I realized that I am out of memory.

Is there any way to increase the size of the usable memory on a UNO copy?
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 29
Posts: 2244
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/en/Reference/PROGMEM to move large strings into flash. Beyond that you need to move to a Mega, and beyond a Mega's memory size you can add external memory.
Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or post your code (if you can) and see if it can be memory-optimized somehow.
Logged

Offline Offline
Edison Member
*
Karma: 6
Posts: leet
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Bummer that Quadram doesn't work with Uno...
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which memory have you run out of, flash or RAM? It is often possible to change the code to reduce usage of one or other or both, but you need to post your code if you want specific advice. Once you have applied the main techniques, if you are still running out then the best option may be to switch to a processor with more resources, e.g. a Mega or a Teensy.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 437
Posts: 23718
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can move to a board with a '1284P chip if you need more SRAM - 16K, twice what a Mega has.
I offer a 1284P that you assemble. 128K flash, 16K sram, dual serial ports, 32 IO pins.
http://www.crossroadsfencing.com/BobuinoRev17/ for PL and schematic
$5 mailed to US locations. Order parts you need, or scrounge your parts bin.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 149
Posts: 2790
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

These can be mounted on a shield, DIP8, and they work at both 5V and 3.3V too.

http://www.digikey.com/product-detail/en/23LC1024-I%2FP/23LC1024-I%2FP-ND/3543083
http://www.digikey.com/product-detail/en/23LC512-I%2FP/23LC512-I%2FP-ND/3543089
Logged

Pages: [1]   Go Up
Jump to: