Humidity Sensor Sketch too big for Arduino ProMini?
-
I bought a couple of 3.3v , 8Mhz Arduino clones;
http://www.aliexpress.com/item/Pro-Mini-ATmega168-3-3V-8MHz-Compatible-for-Arduino-ProMini/32579105597.htmlWhen I try to upload the humiditysensor.ino from the samples folder, I get the error, sketch too big.
Sketch uses 19,568 bytes (136%) of program storage space. Maximum is 14,336 bytes.
Global variables use 655 bytes (63%) of dynamic memory, leaving 369 bytes for local variables. Maximum is 1,024 bytes.Have I bought the wrong boards, or can I perhaps clean the code?
Thanks in advance!
-
So it's too small?
-
@Martien-Wijnands yes make sure you have an ATmega326 on your board
Like these
or from the MySensors store 10 Pcs
-
So, no possibility to strip down THE code? I will order the 328, but shipping takes a while :(
-
So, no possibility to strip down THE code? I will order the 328, but shipping takes a while :(
@Martien-Wijnands
What is your code? -
Try commenting out all Serial.println. By doing that, I got the sketch from
Sketch uses 14,350 bytes (100%) of program storage space. Maximum is 14,336 bytes.to
Sketch uses 12,920 bytes (90%) of program storage space. Maximum is 14,336 bytes.Troubleshooting without the debug output will be a real pain though.
You can also try the development branch of MySensors. It consumes less flash space than 1.5.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login