Go Down

Topic: Sketch size small to Thingspeak and SD card writing together :( (Read 700 times) previous topic - next topic

vespapierre

Hi,

I would like to ask your help. I'm not a professional in Arduino. I have created to different skecth. One of it is working with thingspeak. Other one just logging to SD card. (Duemilanove/ATmega328)
My problem is if I try to use them together, sketch size will be small. Now using Arduino 1.0.1. (temp values are still not defined in to write to SD).
I appreciate you help!
Codes are attached. I have tried to check use progmem, but I am not so good after years...

Arrch


sketch size will be small.

That's not usually a problem...

Can you post how you have tried combining them and better explaining your issue?

vespapierre

I will try, sorry for my english. So I'm just arround on a beginner level ( I guess) in programming with Arduino. I have tried to merged the setup and loop parts. After I have tried to remove the serial.print -s as much as I can, not to use float-s but the sketch size was arround 34K.

Arrch


I will try, sorry for my english. So I'm just arround on a beginner level ( I guess) in programming with Arduino. I have tried to merged the setup and loop parts. After I have tried to remove the serial.print -s as much as I can, not to use float-s but the sketch size was arround 34K.


I fail to see how a 34K sketch size would be considered "small"

I also fail to see any code that shows how you tried to merge them.

billroy

You're trying to merge two of the biggest Arduino libraries (SD and Ethernet) so the result is going to be tight.  There is a lot of Serial.print() overhead that is contributing to both ram size and program size -- that's clearly the place to start code reduction.

If you post your combined sketch here you're much more likely to get help.

-br

Go Up