Storage space please help

Hey, Im EXTREMELY new to Arduino and I keep trying to verify example code for the obstacle detecting glasses but it keeps saying I don't have enough storage. I have a USB if I can connect it on there (I have no idea how that would work but my bro suggested it) I'm really confused rn plz

For help, post some information about your project. Instructions can be found in the "How to get the best out of this forum" post.

You would be less confused if you read pages on the main site arduino.cc and click on LEARN.

It is not as direct and easy as it used to be though, Arduino Central seem to have forgotten how to do that and throw everything in your face in Marketing Fashion rather than teaching fashion, to put the simple first. (They need some butts kicked good and hard IMO.)

Over halfway down the Arduino Guide Page there is a heading: Learn Arduino with links to do that. The New Way is dig for what you need!

Here is the actual Learn Page. Yup, easy to get lost in since ding-a-lings took over.

Well to be honest, there is a lot of stuff to wade through and more honesty, it's same amount with the forum or without. LINK the Learning stuff as you go, it's quicker than waiting for answers here and you will need to refer to it a few times before you can absorb all the implications as well as explications.
Don't worry. Give it time and it will begin to make sense! This ain't no cartoon.

BTW, Storage Space on your chip is flash memory that holds your program and data that does not change. The program runs from flash, the biggest memory space on the chip compared to RAM and EEPROM (if your chip has the latter, it's usually the smallest).
Just guessing, your program must be awfully big for a Beginner... we usually start learning on small stuff so as to have less to learn on step one. Just thinking, you have some totally unreal expectations to lose!

2 Likes

Which board are you using?

Please post your sketch so people can have a look and possibly advise on optimisations. Please do not forget to use code tags as described in https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#posting-code-and-common-code-problems.

There are two types of memory that are reported by the IDE, flash and RAM. Are you running out of program storage space or out of dynamic memory. Please post the report (example shown below).

Sketch uses 5088 bytes (2%) of program storage space. Maximum is 253952 bytes.
Global variables use 383 bytes (4%) of dynamic memory, leaving 7809 bytes for local variables. Maximum is 8192 bytes.

@weirdscience_2024_2025

You never reply, abandon these responses, start another topic on the same subject, and never reply on that topic?

https://forum.arduino.cc/t/obstacle-detecting-glasses/1327564/

Hey, I'm creating Obstacle detecting glasses using ultrasonic sensors and a standard buzzer. I'm using the example code to try and test it right off the bat, unaltered. I've never done anything of this sort so I might be missing the point here but everytime I try to 'verify' it and test, it says that I don't have enough storage. I don't know what to get rid of and I'm highkey stressing out. I've done research but I'm still confused. :confused:

As you may already know, since you are not a new user, in order for us to help you,

we need information about your project. Using the tags,
post your code and a schematic of your project.

You should follow the advice from your other post instead of making a new one.

Hi, @weirdscience_2024_2025

Have you googled;

arduino ultrasonic glasses

Is this what you want to build;

Tom.. :smiley: :+1: :coffee: :australia:

@weirdscience_2024_2025 ,

Your two or more topics on the same or similar subject have been merged.

Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.

Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.

Repeated duplicate posting could result in a temporary or permanent ban from the forum.

Could you take a few moments to Learn How To Use The Forum

It will help you get the best out of the forum in the future.

Thank you.

Do you realise that we do not know what that example code is? From our perspective it could be the blink sketch.