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. [SOLVED] SensebenderMicro restarts/crashes triggered by D3

[SOLVED] SensebenderMicro restarts/crashes triggered by D3

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 1.4k Views 2 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.
  • t3chieT Offline
    t3chieT Offline
    t3chie
    wrote on last edited by Yveaux
    #1

    I have a weird problem with a sensebender micro.
    Loaded the standard sensebender sketch and all works fine.
    Then I added a switch between 3.3V and D3 and initialized this with:
    setup()
    ...
    pinMode(MOTION_PIN, INPUT);
    digitalWrite(MOTION_PIN, HIGH);
    ...

    Now comes the weird part:
    Whenever I press the D3 button, the sketch restarts. No matter if I sleep with interrupt or without etc.
    If the serial console is NOT attached, it looks like the sketch continue to run.

    I would assume some power issue, but for this test the board is powered over the USB-serial converter with 3.3V and everything else is working with or without opening the serial monitor in the Arduino Application.

    Any idea what I am doing wrong?

    According to this thread (https://forum.mysensors.org/topic/1573/my-generic-room-senser-sensebender-with-motion-and-light) I have tried to put a 25k resistor between D3 and ground, but without difference.

    Y 1 Reply Last reply
    0
    • t3chieT t3chie

      I have a weird problem with a sensebender micro.
      Loaded the standard sensebender sketch and all works fine.
      Then I added a switch between 3.3V and D3 and initialized this with:
      setup()
      ...
      pinMode(MOTION_PIN, INPUT);
      digitalWrite(MOTION_PIN, HIGH);
      ...

      Now comes the weird part:
      Whenever I press the D3 button, the sketch restarts. No matter if I sleep with interrupt or without etc.
      If the serial console is NOT attached, it looks like the sketch continue to run.

      I would assume some power issue, but for this test the board is powered over the USB-serial converter with 3.3V and everything else is working with or without opening the serial monitor in the Arduino Application.

      Any idea what I am doing wrong?

      According to this thread (https://forum.mysensors.org/topic/1573/my-generic-room-senser-sensebender-with-motion-and-light) I have tried to put a 25k resistor between D3 and ground, but without difference.

      Y Offline
      Y Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @t3chie Shot in the dark, but you're not accidently shorting Vcc and Gnd by pressing the switch?

      http://yveaux.blogspot.nl

      t3chieT 1 Reply Last reply
      1
      • Y Yveaux

        @t3chie Shot in the dark, but you're not accidently shorting Vcc and Gnd by pressing the switch?

        t3chieT Offline
        t3chieT Offline
        t3chie
        wrote on last edited by
        #3

        @Yveaux Thanks for that - I checked my cabling again and discovered a "hairline connection" between D3 and DTR. It is working better now.

        Y 1 Reply Last reply
        1
        • t3chieT t3chie

          @Yveaux Thanks for that - I checked my cabling again and discovered a "hairline connection" between D3 and DTR. It is working better now.

          Y Offline
          Y Offline
          Yveaux
          Mod
          wrote on last edited by
          #4

          @t3chie said in SensebenderMicro restarts/crashes triggered by D3:

          It is working better now.

          You mean the issue has been solved?

          http://yveaux.blogspot.nl

          t3chieT 1 Reply Last reply
          0
          • Y Yveaux

            @t3chie said in SensebenderMicro restarts/crashes triggered by D3:

            It is working better now.

            You mean the issue has been solved?

            t3chieT Offline
            t3chieT Offline
            t3chie
            wrote on last edited by
            #5

            @Yveaux Yes, it works now.

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            14

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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