TAP/KNOCK SENSOR EXPLAINED | KY-031 ARDUINO TUTORIAL

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 30

  • @steveswoodworking2504
    @steveswoodworking2504 Рік тому +1

    Your 50ms delay was making it so the taps were happening during the delay, and it wasn't catching it in the loop. You could put the delay inside the if statement, so it would only delay if it catches a tap. You can also get the millisecond time a tap occurred, and save the last tap time, and when you get another one within so many milliseconds, ignore additional taps. This does answer my question I was wondering about, in does this latch the output for a specific amount of time - NO, it does not.

    • @MikaelAbehsera
      @MikaelAbehsera  Рік тому

      yeah unfortunatly these electronics arent asynchronus, so gotta do some wierd stuff to make it work

  • @Feisar777
    @Feisar777 Рік тому +1

    How would you get it to express in numerical value?

    • @MikaelAbehsera
      @MikaelAbehsera  Рік тому

      im not sure you can, if i remember correctly its on or off, no analog output

  • @electroboyIND
    @electroboyIND 11 місяців тому +1

    add delay inside the IF statement, or add an debounce time with multiple IF

  • @roote4k154
    @roote4k154 2 роки тому

    THANKS YOU FOR SHARING THIS VIDEO

    • @MikaelAbehsera
      @MikaelAbehsera  2 роки тому

      Glad it helped, what else would you like to see?

  • @walteravila4753
    @walteravila4753 6 місяців тому

    I keep getting "Compilation error: 'tapstatus' was not declared in this scope". What am I doing wrong

  • @rafaellopesluthier4400
    @rafaellopesluthier4400 Рік тому +1

    you can use "if" to deals with threshhold

  • @BrickTamlandOfficial
    @BrickTamlandOfficial Рік тому +1

    can you recommend a sensor that measures loudness? my use case is my neighbor likes to hit the wall so I wanted to put an alarm up so the alarm blares back at him for 14mins when he hits the wall.

    • @MikaelAbehsera
      @MikaelAbehsera  Рік тому

      Check my big sound sensor video ua-cam.com/video/Ghjg4D66J7o/v-deo.html

    • @BrickTamlandOfficial
      @BrickTamlandOfficial Рік тому

      @@MikaelAbehsera that project is awesome! i think i will mod that ones code and try to bring in the vibration sensor and a stereo speaker. thanks! subscribed too!

  • @technophile01
    @technophile01 2 роки тому +2

    hello unfortunately code unreadable on smartphone : we can't easily follow

    • @MikaelAbehsera
      @MikaelAbehsera  2 роки тому

      Check this out, videos aren't always made for mobile but I always have the video in text format !www.mikaelabehsera.ca/post/knock-tap-sensor-explained-tutorial

  • @SujanSunar-f9k
    @SujanSunar-f9k 9 місяців тому +1

    Can you help me about my project i have some question can you make me clear about sensor plz 🙏

  • @ramast4881
    @ramast4881 8 місяців тому +1

    you should've placed "delay(50)` inside the if statement not outside.

    • @MikaelAbehsera
      @MikaelAbehsera  8 місяців тому

      will fix on the next time we go back to this, thanks

  • @campsidesocial406
    @campsidesocial406 5 місяців тому

    Can any one help me with a project? I need to detect knocks but it needs to be like .5 inch big and wireless and able to connect to a photo app ideally flutter Is that even possible?

  • @Curiousitydriven
    @Curiousitydriven Рік тому

    Bro, can I use it to turn off the angle grinder when it's kick back. The problem is angle grinder vibrates constantly but I want to turn off only when angle grinder kicks back

    • @MikaelAbehsera
      @MikaelAbehsera  Рік тому

      probably would be better to use a IMU angle sensor

  • @SebastianHermansen-h7c
    @SebastianHermansen-h7c Рік тому

    thanks bro

  • @MikeMcRoberts
    @MikeMcRoberts 3 місяці тому

    Try focusing your camera

  • @sapienff2140
    @sapienff2140 Рік тому +1

    bro can you pls give the code link ,that will be very helpfull
    nice videos kepp it up

    • @MikaelAbehsera
      @MikaelAbehsera  Рік тому

      join the discord idk why its not working discord.gg/GygvSdf