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! 
 
- 
					
					
					
					
 That ATMega is 16k 
 If you thought that you bought a ATmega with 32k then Yes you bought wrong
 
- 
					
					
					
					
 So it's too small? 
 
- 
					
					
					
					
 Maximum is 16000, with 14336 left i guess that bootloader is using the rest 
 
- 
					
					
					
					
 @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  
 
- 
					
					
					
					
 @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. 
 
 
			
		 
					
				
