"Knock, Knock!" Arduino Escape Room Puzzle

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 เม.ย. 2024
  • This is a video tutorial explaining how to create a "knock, knock" puzzle as seen in some escape rooms, in which players need to tap out a particular rhythm (such as a secret doorknock), to activate a relay and unlock a maglock. Two versions are demonstrated - one using a Piezo sensor which is activated by vibration, and one using a microphone input which can detect any percussive sound.
    The secret knock pattern required to solve the puzzle can be set to any rhythm you want, and the player's input is normalised before comparison to make it tempo-independent. There are also configurable settings for input sensitivity and error tolerance.
    To download the Arduino code, wiring diagram, and list of components used in this video or any of my other tutorials, please see my Patreon at / posts - thanks!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 50

  • @wolfgangscholl7233
    @wolfgangscholl7233 4 ปีที่แล้ว +2

    Great video and awesome explanation! The way of explaining with your visual match perfectly. Best wishes!

  • @jeremyflusin1232
    @jeremyflusin1232 4 ปีที่แล้ว +1

    You are so bloody inspiring !

  • @supercables251
    @supercables251 5 ปีที่แล้ว +1

    Such beautiful code! AWESOME!

    • @maxistarling
      @maxistarling 4 ปีที่แล้ว

      Could you share it to me?

    • @yossifayman3331
      @yossifayman3331 4 ปีที่แล้ว

      Me too

    • @eladsinay6914
      @eladsinay6914 4 ปีที่แล้ว

      Sorry, i know everyone is asking you this but if you do have the code, can you please share it with me as well, im trying a big ambitious project with this. Promise to show it off once its done but the code is very necessary for it

  • @ThePamelitaD
    @ThePamelitaD 4 ปีที่แล้ว +3

    Thank youuu :'v i learnd so much here... you inspired me to learn :3

    • @dariustristen6263
      @dariustristen6263 2 ปีที่แล้ว

      Pro trick: watch series at flixzone. Been using it for watching loads of movies recently.

    • @kameronkayson7120
      @kameronkayson7120 2 ปีที่แล้ว

      @Darius Tristen yup, I have been watching on flixzone for since december myself :)

  • @HacksterIo
    @HacksterIo 5 ปีที่แล้ว

    Love this!

  • @ScoobyDios
    @ScoobyDios 7 หลายเดือนก่อน

    Very clever code

  • @peggynorton9146
    @peggynorton9146 2 ปีที่แล้ว

    Thank you!

  • @dlepierres
    @dlepierres 2 ปีที่แล้ว +1

    Really great

  • @KoenvanDommelen
    @KoenvanDommelen 3 ปีที่แล้ว

    Hi @Playful Technology, I'm trying to extend the wires on the piezo, but after extending the puzzle does not work anymore (I used good quality 2 meter wire) I tried to do it before and after the diode/resistor combo, but with no result. Could you help?

  • @trexnfabianndenis
    @trexnfabianndenis 3 ปีที่แล้ว

    What relay is it you're using and where can i order it? Does this have an inbuild transistor and diode? How come this isn't included in the circuit? Im very new to this so..

  • @Anonymous-vh6kp
    @Anonymous-vh6kp 3 ปีที่แล้ว

    Why is the resistor (next to the zenor) between line and ground? Shouldn't it be just on the positive? I don't understand.

  • @jonnyzinn3782
    @jonnyzinn3782 3 ปีที่แล้ว

    Would a arduino nano work for this project?

  • @coasterollie
    @coasterollie 5 ปีที่แล้ว +1

    Going to ask a noob question now (completely new to electronics). I assume I need a 12v (UK) plug to power the 12v maglock. But how many amps does it need to be as there's lots of different options when trying to purchase one.
    Also I have this all set up (minus the plug for the maglock) and it detects the incorrect knocks. But when I do the correct knock to "shave and a haircut" it still beeps like it's incorrect. Is there something I may have missed or done wrong?

    • @PlayfulTechnology
      @PlayfulTechnology  5 ปีที่แล้ว

      Hi! Not a daft question at all. So, UK mains power is 240V AC. This style of maglock wants 12V DC. So you need an 240VAC-12VDC power convertor. Those might look like the sort of black adaptors you might plug into your laptop, or they might be a bit more industrial looking. Maglocks typically draw somewhere between 500mA-1A current, so that would require *at least* a 12W power adaptor (1A@12V = 12W). Note that it doesn't do any harm to use a 12V adaptor that has a higher rating (e.g. a 2A@12V = 24W) - devices only draw as much current as they need. So this one will work fine, for example: www.ebay.co.uk/itm/AC-DC-12V-2A-POWER-SUPPLY-ADAPTER-CHARGER-FOR-CAMERA-LED-STRIP-LIGHT-CCTV/253871141500

    • @PlayfulTechnology
      @PlayfulTechnology  5 ปีที่แล้ว

      Or here's the slightly more "industrial" style I was describing which simply has screw terminal connections which makes it a bit easier to wire direct to the terminals of your maglock: www.ebay.co.uk/itm/DC12V-Top-Quality-LED-Driver-Power-Supply-Transformer-LED-Strip-Light-MR16-CCTV/162283920873

    • @coasterollie
      @coasterollie 5 ปีที่แล้ว

      @@PlayfulTechnology Thank you for the help and the links. :)

  • @servicetech1661
    @servicetech1661 3 ปีที่แล้ว

    hello, I need your help to make a design to replay a knocking on door and add extra knock or random knock,to prank my friend on Halloween, do you mind to let me know what I need , Im very new to this THANKS IN ADVANCE

  • @triciadenice6907
    @triciadenice6907 4 ปีที่แล้ว

    What are the materials used???

  • @dragoplayz25
    @dragoplayz25 3 ปีที่แล้ว

    @Playful Technology Can i use latch lock instead of maglock .plese reply as i want to make this lock for my science exhibition

    • @sonuguru143
      @sonuguru143 2 ปีที่แล้ว

      U can use any lock
      Depend on your relay capacity

    • @dragoplayz25
      @dragoplayz25 2 ปีที่แล้ว

      @@sonuguru143 I was asking that can I use a servo or not instead of maglock

    • @sonuguru143
      @sonuguru143 2 ปีที่แล้ว

      @@dragoplayz25 yes u can,
      U need to edit codes for servo.

  • @lazou01
    @lazou01 5 ปีที่แล้ว +1

    can i buy u as my dad pls ? THIS IS AWESOME ! Defintly will do one. Thanks mate that helps me so much !
    Actually instant bought while writin this comment

    • @lazou01
      @lazou01 5 ปีที่แล้ว

      i made it !!!!
      will send u a video on fb :D

  • @harshitsrivastava5559
    @harshitsrivastava5559 4 ปีที่แล้ว

    Sir can I use 19.4v 3.3amps laptop adaptor for power supply???

    • @sonuguru143
      @sonuguru143 2 ปีที่แล้ว

      Power supply for ur lock is depend on type of ur lock..
      For EM lock use 12V 2A power supply
      19.4V may work with few em locks

  • @k0in0kl
    @k0in0kl 5 ปีที่แล้ว

    Hi, What is the PC emulator you are using?

    • @DBTechYT
      @DBTechYT 5 ปีที่แล้ว

      From what I can tell, he's using Windows as his operating system and he's using Fritzing to lay out his ideas on the computer. It's available for Windows, Linux, and Mac. If you search for Fritzing, it should be the first search result.

    • @k0in0kl
      @k0in0kl 5 ปีที่แล้ว

      @@DBTechYT Thank you very much. Fritzing is what i looking for😊

  • @manudidier1207
    @manudidier1207 4 ปีที่แล้ว +1

    not able to find the code

  • @mmlgamer
    @mmlgamer 2 ปีที่แล้ว

    If I were rich and idle enough to do all this, I’d have a timing setup where the player has to knock in sync with a radio playing music like that “Knock three times at the door if you want me, twice on the pipe…” song.

    • @PlayfulTechnology
      @PlayfulTechnology  2 ปีที่แล้ว +1

      I do have some separate code that is a BPM detector rather than a knock pattern recognition. I could probably make a video of that in the future if you'd like

  • @azhansukri8294
    @azhansukri8294 4 ปีที่แล้ว

    can you give link to download
    library for microphone tq

  • @eladsinay6914
    @eladsinay6914 4 ปีที่แล้ว

    is the code to this free or do you have to pay for it?

    • @PlayfulTechnology
      @PlayfulTechnology  4 ปีที่แล้ว +1

      You're very welcome to copy the code out from the video and use it however you wish - I show you every line as I step through it. If you support me on Patreon for $10, you're able to download the code as an .ino file together with the wiring diagram and list of where I purchased the parts etc. (for this and every other project I've done)

  • @alexk6585
    @alexk6585 2 ปีที่แล้ว

    can by this code without subscribed membership?

    • @PlayfulTechnology
      @PlayfulTechnology  2 ปีที่แล้ว +1

      Sure - you can just copy it from the video.

  • @servicetech1661
    @servicetech1661 3 ปีที่แล้ว

    Only if its possible can be wireless

  • @harshitsrivastava5559
    @harshitsrivastava5559 4 ปีที่แล้ว

    How to use code for different knock pattern???

  • @HiHello-xx5dt
    @HiHello-xx5dt 4 ปีที่แล้ว +1

    can you give the code file?

    • @TomLambert
      @TomLambert 3 ปีที่แล้ว

      I think it's on patreon

  • @sander4000
    @sander4000 5 ปีที่แล้ว +10

    Love your vids, however it's sad you put you code behind a Patreon lock. Patreon should be optional... cant'do patreon to al youtubers

    • @MarkThomas-ej2nh
      @MarkThomas-ej2nh 5 ปีที่แล้ว +2

      It doesn't matter since I haven't been able to get his Patreon page to work for over three weeks and I pay for it.

    • @TomLambert
      @TomLambert 3 ปีที่แล้ว +1

      If the codes valuable to you, why not support the guy who made it? You have the option to cancel if you only want short term access to get the code.