Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Humidity Sensor Sketch too big for Arduino ProMini?

Humidity Sensor Sketch too big for Arduino ProMini?

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 4 Posters 3.4k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Martien Wijnands
    wrote on last edited by
    #1

    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.html

    When 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!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      flopp
      wrote on last edited by flopp
      #2

      That ATMega is 16k
      If you thought that you bought a ATmega with 32k then Yes you bought wrong

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Martien Wijnands
        wrote on last edited by
        #3

        So it's too small?

        1 Reply Last reply
        0
        • F Offline
          F Offline
          flopp
          wrote on last edited by flopp
          #4

          Maximum is 16000, with 14336 left i guess that bootloader is using the rest

          1 Reply Last reply
          0
          • BartEB Offline
            BartEB Offline
            BartE
            Contest Winner
            wrote on last edited by
            #5

            @Martien-Wijnands yes make sure you have an ATmega326 on your board

            Like these

            or from the MySensors store 10 Pcs

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Martien Wijnands
              wrote on last edited by
              #6

              So, no possibility to strip down THE code? I will order the 328, but shipping takes a while :(

              F 1 Reply Last reply
              0
              • M Martien Wijnands

                So, no possibility to strip down THE code? I will order the 328, but shipping takes a while :(

                F Offline
                F Offline
                flopp
                wrote on last edited by
                #7

                @Martien-Wijnands
                What is your code?

                1 Reply Last reply
                0
                • mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by mfalkvidd
                  #8

                  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.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  12

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular