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. Hardware
  3. Knock sensor keeps knocking. Alternative?

Knock sensor keeps knocking. Alternative?

Scheduled Pinned Locked Moved Hardware
4 Posts 2 Posters 1.5k Views 1 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.
  • E Offline
    E Offline
    edsteve
    wrote on last edited by
    #1

    Hi,

    i was posting this issue at the Secret knock sensor under announcements. But maybe better here.

    I tried to get the secret knock sensor working. I connected only a radio and this sound sensor on a Arduino Mini Pro:
    alt text

    After uploading the example code from Arduino IDE the serial monitor shows me constant knocks. Seven knocks per second. On and on and on. This keeps going on even i unplug the Digital pin 5 which is connected to the DO of the sound sensor.
    Yes. I adjusted the sound sensor that the LED only blinks, when i knock on the mic. I tried a different Arduino and a different sound sensor and different wire.

    What else can i try? Are there any similar solutions out there?

    S 1 Reply Last reply
    0
    • E edsteve

      Hi,

      i was posting this issue at the Secret knock sensor under announcements. But maybe better here.

      I tried to get the secret knock sensor working. I connected only a radio and this sound sensor on a Arduino Mini Pro:
      alt text

      After uploading the example code from Arduino IDE the serial monitor shows me constant knocks. Seven knocks per second. On and on and on. This keeps going on even i unplug the Digital pin 5 which is connected to the DO of the sound sensor.
      Yes. I adjusted the sound sensor that the LED only blinks, when i knock on the mic. I tried a different Arduino and a different sound sensor and different wire.

      What else can i try? Are there any similar solutions out there?

      S Offline
      S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #2

      @edsteve - you did connect it do the digital output and not the analog?

      If so I would guess its a debonce... add a wait();

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • E Offline
        E Offline
        edsteve
        wrote on last edited by
        #3

        I just found out that i adjusted the sound sensor the wrong way. I thought the LED should go ON when i knock on the mic and should be OFF if no sound is detected.
        Instead the knob on the sound sensor has to be turned left till the LED goes OFF. And then turn half round back to the right side so that the LED is ON. It will stay on. With or without a knock.

        But then it works with the sketch.

        As usual: Problem is the noob user ;) Maybe i am not the only one.

        S 1 Reply Last reply
        0
        • E edsteve

          I just found out that i adjusted the sound sensor the wrong way. I thought the LED should go ON when i knock on the mic and should be OFF if no sound is detected.
          Instead the knob on the sound sensor has to be turned left till the LED goes OFF. And then turn half round back to the right side so that the LED is ON. It will stay on. With or without a knock.

          But then it works with the sketch.

          As usual: Problem is the noob user ;) Maybe i am not the only one.

          S Offline
          S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #4

          @edsteve - thanks for reporting back - it might help someone else in the future :)
          Great you solved it.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          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


          13

          Online

          11.9k

          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