Skip to main content

Questions tagged [memory-usage]

Use this tag for questions about memory usage on the Arduino.

Filter by
Sorted by
Tagged with
1 vote
0 answers
117 views

I have created a sketch that updates 195 variables : 16xString variables, 34xfloat, 52xint, 107xbool. Notice : I'm using the IDE tool instead of the included Cloud IoT compile (because I have a pb ...
christophe Hanotte's user avatar
0 votes
1 answer
89 views

I've written a sketch that uses TimeLib to display elapsed time. I'm measuring how long it takes to drain a battery. The goal is to display the time as hh:mm:ss. The code I use works well when I ...
Hobbes's user avatar
  • 146
0 votes
1 answer
196 views

Hey all I have a sketch that takes up 99% of my storage space since I am using a Arduino Nano. Although everything in my code fits as-is, there seems to be an issue with me sending a json string over ...
StealthRT's user avatar
  • 259
0 votes
2 answers
132 views

I've read that it is bad practice to use dynamic memory allocations on a microcontroller and I have a pretty good grasp of why. I am developing a custom PCB around an ATMega2560 and in my situation, I ...
MattD's user avatar
  • 3
1 vote
1 answer
356 views

Just discovered this. When I cast an int to a char inside a Serial.print statement it costs way less program memory. I'm not sure why. Could someone explain this to me? In the following example the ...
Gaai's user avatar
  • 55
-3 votes
1 answer
102 views

I'm trying to run a Fuzzy Logic MPPT Algorithm in Arduino UNO, here's the Simulink File However when I try to upload the code, I get the following error Is this project possible with UNO, if yes, ...
Aravindh Vasu's user avatar
1 vote
0 answers
363 views

I'm working on a stage (this is my first bigger Arduino project), and I want to create an initializer for it, and for this, I want to store some variables in the memory of ESP32 WROVER-B. For this, I ...
gabor aron's user avatar
3 votes
2 answers
915 views

I've designed a circuit controlled by an Arduino Mega 2560 involving a number of external components all running on and sending out 5V signals. I'm now realizing that the 8Kb of SRAM on the Mega 2560 ...
Daniel Williams's user avatar
1 vote
1 answer
1k views

Disclaimer: I just started using C++ and I'm a bit of a beginner. Keep that in mind as your answering. So I recently bought my first Arduino. It's a customized one and it has an 8x8 display attached ...
gurkensaas's user avatar
3 votes
3 answers
950 views

I'm building a final project for a class that involves playing an audio file of a wave shield every time I scan an amiibo with an RFID scanner. I'm a pretty new programmer, so I'm not very familiar ...
Ethan Braun's user avatar
1 vote
1 answer
300 views

(This question is specific for the Arduino Due, but maybe there's a general answer to the question) I'm using DueFlashStorage to store application data in the flash memory of my Arduino Due. That ...
PMF's user avatar
  • 1,306
2 votes
4 answers
331 views

Since I'm very used to object oriented programming, I would like to use this into my design. My application will have 4 led strips and each led strip will have a 'pattern' running on it. For this I ...
Michel Keijzers's user avatar
3 votes
2 answers
681 views

I'm working on a project that uses quite a bit of RAM to store and analyze data that is sent from the PC. The program heavily relies on malloc/free, which normally works just fine. However, if the ...
PMF's user avatar
  • 1,306
4 votes
1 answer
984 views

I have recently been working on a project that I had initially been designing with an Arduino Nano, and I was able to create functioning code for my application, but for cost / space reduction I ...
Kevin Sullivan's user avatar
1 vote
2 answers
101 views

I'm inspecting where the memory is used in an application which runs on Arduino. To my surprise, there are several locations where 100 to 200 bytes are consumed by simply calling a function. Example: ...
Arseni Mourzenko's user avatar
1 vote
0 answers
316 views

I'm trying to create SMS alarm using Twilio, Firebase and Arduino IDE. Using sensors I am measuring the temperature. If the temperature is higher than a specified value (ESP reads that value from ...
Nina's user avatar
  • 185
0 votes
1 answer
538 views

i'm trying to use an external flash memory Winbond 25q64jvsiq for my Arduino Nano based project for audio recording purposes, to have extra memory for recording 1 byte audio samples, since Arduino ...
DSP_engineer's user avatar
1 vote
0 answers
524 views

I finally understand why people do not allocate memory when it comes to micro-controllers. The reason is because as you allocate different objects on the heap of various sizes and then you delete them ...
Tono Nam's user avatar
  • 986
0 votes
1 answer
601 views

This tutorial shows how to put the arduino to sleep and use a watchdog to wake up at intervals: https://youtu.be/urLSDi7SD8M I been studding c++ and as I am getting better I am instantiating objects ...
Tono Nam's user avatar
  • 986
-3 votes
1 answer
2k views

I am writing an Arduino code with 3 arrays. Two of those are double and other one is int. Further first two arrays have nearly 420 elements for each. Now I noticed that with more that 89 elements on ...
e1065273's user avatar
8 votes
4 answers
4k views

While doing big projects using Arduino boards (Uno, Atmega328P MCU). I used to get warnings like this Sketch uses 13764 bytes (44%) of program storage space. Maximum is 30720 bytes. Global variables ...
Mayoogh Girish's user avatar
1 vote
2 answers
4k views

I have been testing various techniques on an Arduino Uno for serial printing from flash memory instead of RAM. At the same time, I have been using the freeMemory() function from Adafruit. I created a ...
NickG's user avatar
  • 163
5 votes
4 answers
1k views

Is it possible for a function/method to know if a constant array that has been passed in is in flash or RAM? If I have a method or function that receives a constant array that is in RAM, the array is ...
Casey's user avatar
  • 151
1 vote
2 answers
109 views

Let's take a very simple sketch, any simple one-.ino sketch. Say, just a led blinker like this void setup() { pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); } void loop() { ...
AnT stands with Russia's user avatar
1 vote
1 answer
838 views

I dont know what to do? Sketch uses 3712 bytes (12%) of program storage space. Maximum is 30720 bytes. Global variables use 210 bytes (10%) of dynamic memory, leaving 1838 bytes for local variables. ...
Salvador Adrián León Chávez's user avatar