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.1k 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.
  • edsteveE Offline
    edsteveE 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?

    sundberg84S 1 Reply Last reply
    0
    • edsteveE 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?

      sundberg84S Offline
      sundberg84S 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
      • edsteveE Offline
        edsteveE 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.

        sundberg84S 1 Reply Last reply
        0
        • edsteveE 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.

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


          20

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 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