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...
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.
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.
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.
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.
Thanks for the update. You did some good cutting. I took a hard look and I don't see any further reductions that would make up the 3k difference. I'm surprised.
You are wedged between two big libraries. An Arduino Mega would solve your flash problem, as well as the ram problems you haven't run into yet.
Oh ...said news. Are there any other possibility? Maybe completely rebuild the temp monitor sketch side...or use other solution instead of thingspeak? I would be very happy if I could manage to do this with your or any other help.
Maybe rebuild the code to put things to flash ( I'm not familiar with it )... ??
I have moved to Mega 2560. I did the hack found below here: http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/
Result: Just trying to connect to network, but nothing happens. I did the 4 pin hack and the 3 pin hack too...now it is on 4 pin modification...
Help me plz
Thanks!
Oh and I'm using Arduino 101. Because I did not found exactly the code what the hacking said, I have put the code to the sketch: #define SPI0_SS_BIT BIT0 #define SPI0_SCLK_BIT BIT1 #define SPI0_MOSI_BIT BIT2 #define SPI0_MISO_BIT BIT3 #define IINCHIP_CS_BIT BIT0
Even tried it before Setup() and in setup() ...doesn't working...