• LOG IN
  • REGISTER
  • ISSUES

Make, Hack, Void

  • home
  • projects
  • news
  • community
Home › Projects › Saving Memory on the Arduino using PROGMEM

Group Projects

  • AVR Starter Schematics
  • Emiglio Refit
  • Emiglio's Head now slightly less firmly attached.
  • MHV AVR Tools - A WinAVR Replacement
  • MHV Space Probe
  • MHVBoard - an Arduino Clone
  • MHVLib - An Efficiency Oriented Runtime Library for AVR Microcontrollers
  • PCB Engraver

Members' Projects

  • ASync-Firefly
  • Ammo Counter for Nerf Gun
  • Arduino Powered Orbit CD Duplicator
  • Arduino controlled robotic hand
  • Battery management module
  • Breadboard Helper
  • Cameras in the space!
  • DDR board for the Dreamcast.
  • GBA upscaled to larger TFT screen
  • HT1632-AVR : A library to interface HT1632 LED Driver ICs and AVR micro controllers
  • Hacking the Foscam FI8903W Linux Based IP Camera
  • Laser Engraver G-CODE conversion
  • Lenz2 Wind Turbine Prototype
  • Level shifting with transistors.
  • PC to PCB in under 30 minutes - Quick 'n Easy PCB Fabrication
  • PCB Modification and SMD Rework
  • PCC4[N]: An Arduino controlled lighting display
  • Pictures of some MattProjects on axio.ms
  • Polymorphachord Keyboard
  • RFID Access For Locker - Journal
  • Robosapien w/ Bluetooth remote control
  • SMD Reflow Oven
  • SMS via Ubuntu
  • Saving Memory on the Arduino using PROGMEM
  • What's in a cheap RC helicopter?

Saving Memory on the Arduino using PROGMEM

deece — Sat, 12/12/2009 - 1:14pm

Getting stuck into my LED matrix project, I soon ran into memory problems on the Arduino.

It turns out you can stick constant data into program memory using the PROGMEM directive, with macros provided to get it back out without having to have everything residing in RAM simultaneously.

There is a good tutorial on how to use it on the AVRFreaks forums.

  • Member Projects
  • arduino
  • Login or register to post comments
  • Printer-friendly version

a patch to free up some SRAM

Adam — Sat, 12/12/2009 - 7:57pm

The hardware serial library uses a fairly large amount of ram for the receive buffer. You can save ~100Bytes by cutting it down.

http://www.adafruit.com/blog/2008/04/17/free-up-some-arduino-sram/

  • Login or register to post comments

Search

Recent Comments

Request
1 week 20 hours ago
more

Member Tweets

evildeece
1 hour 59 min ago — Spray on clothing! http://t.co/djQzAie7 #mhv
MakeHackVoid
2 hours 6 min ago — Space is closed (was open 7 hours)
evildeece
2 hours 22 min ago — 3D printed RC plane http://t.co/8LCfuR3C #mhv
evildeece
2 hours 26 min ago — 21 more MHVBoard #arduino clones packed up and ready to go to local school & uni #mhv
MakeHackVoid
9 hours 11 min ago — Space is open until 22:00 (estimate)
projectgus
12 hours 32 min ago — Club Mate induced madness MT @dev_dsp @MakeHackVoid It tastes like ground! and like tea! and like ground! Pretty much the best thing ever.
dev_dsp
13 hours 14 min ago — @MakeHackVoid It tastes like ground! and like tea! and like ground! It's pretty much the best thing ever.
MakeHackVoid
13 hours 16 min ago — Also there are rumours of @dev_dsp's "weird European hacker juice"
MakeHackVoid
13 hours 18 min ago — Rumour has it that tonight's Maker Meetup will include an electric motorcycle, RepRap 3d printer, and SMD oven! Come! http://t.co/vmahKECz
evildeece
17 hours 47 min ago — OK Go's new music vid, using a car to play over 1000 instruments: http://t.co/Qca3G1Eu #mhv
  •  
  • 1 of 12
  • ››
more