[{"data":1,"prerenderedAt":206},["ShallowReactive",2],{"i-lucide:menu":3,"i-lucide:arrow-up-right":8,"i-lucide:moon":10,"i-lucide:sun":12,"i-lucide:rss":14,"i-simple-icons:github":16,"i-simple-icons:linkedin":18,"post-\u002F2016\u002Fapril-fools-annoying-laughter-machine":21,"surround-\u002F2016\u002Fapril-fools-annoying-laughter-machine":193,"i-lucide:arrow-left":202,"i-lucide:arrow-right":204},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16\"\u002F>\u003Ccircle cx=\"5\" cy=\"19\" r=\"1\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19,"hidden":20},"\u003Cpath fill=\"currentColor\" d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z\"\u002F>",true,{"id":22,"title":23,"body":24,"category":179,"comments":180,"date":181,"description":182,"excerpt":180,"extension":183,"image":184,"meta":185,"navigation":20,"path":186,"readingTime":187,"seo":188,"stem":189,"subtitle":190,"tags":180,"wordCount":191,"__hash__":192},"posts\u002F2016\u002Fapril-fools-annoying-laughter-machine.md","April Fools: Annoying Laughter Machine",{"type":25,"value":26,"toc":176},"minimark",[27,45,48,61,68,76,97,103,106,112,118,121,130,133,143,146,152,155,161,164,170],[28,29,30,31,38,39,44],"p",{},"I was in a shopping center and a cheap children's toy - they call them \"",[32,33,37],"a",{"href":34,"rel":35},"https:\u002F\u002Fwww.photopoint.ee\u002Fen\u002Funusual-gifts\u002F359605-laughter-bag-keyring-orange",[36],"nofollow","laughter bags","\" - caught my eye. It is an electronic audio player in a \"cute\" bag. You press on the bag and it plays a loud ",[32,40,43],{"href":41,"rel":42},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=O2Hemd_FUzw",[36],"laughing sound",". The first of April was almost upon us and I decided to use this to prank my colleagues.",[28,46,47],{},"The bag contained some padding foam and a white box which housed the electronics. I took the box apart to get at the internals:",[49,50,51,55,58],"ul",{},[52,53,54],"li",{},"A 3x1.5V battery pack",[52,56,57],{},"An integrated circuit with the prerecorded sound",[52,59,60],{},"A small speaker",[28,62,63],{},[64,65],"img",{"alt":66,"src":67},"All the parts","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fparts.jpg",[28,69,70,71,75],{},"The trigger for the bag was a mechanical pressure switch. I quickly identified that I could remove the switch and achieve the \"activation\" of the circuit by feeding a ",[72,73,74],"code",{},"HIGH"," signal into one of the input leads of the IC, rendering any mechanical stimuli useless and allowing me to use digital logic to activate the laughter.",[28,77,78,79,82,83,86,87,90,91,93,94,96],{},"I added a small motion sensor module and hooked everything up with alligator clips to test my new setup. The motion sensor had three pins: ",[72,80,81],{},"VCC",", ",[72,84,85],{},"GND"," and ",[72,88,89],{},"OUT",". The ",[72,92,89],{}," pin would go ",[72,95,74],{}," for a second or two whenever the sensor discovered movement. This matched perfectly with the expectations of my sound module.",[28,98,99],{},[64,100],{"alt":101,"src":102},"Proof of concept solution","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fpoc.jpg",[28,104,105],{},"The prototype was a working motion-detecting circuit that would play a very loud, very annoying sound whenever motion was detected.",[28,107,108,109,111],{},"Next, I soldiered everything together with a couple of extra wires: the motion sensor and the sound module would both draw VCC and GND from the battery pack and the output of the ",[72,110,74],{}," signal from the PIR sensor would go to the mechanical switch pin on the sound IC.",[28,113,114],{},[64,115],{"alt":116,"src":117},"All parts, connected","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fconnected.jpg",[28,119,120],{},"For the packaging, I took the first suitable enclosure I could find, which turned out to be the box for an Apple Trackpad.",[28,122,123,127],{},[64,124],{"alt":125,"src":126},"Making the case","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fholes1.jpg",[64,128],{"alt":125,"src":129},"\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fholes2.jpg",[28,131,132],{},"I cut a hole for the PIR sensor and taped all components to to the inside of the box. I superglued four rubber legs to the top of the box to make deployment easier. I've learned some things; no body parts were accidentally superglued to one another this time.",[28,134,135,139],{},[64,136],{"alt":137,"src":138},"PIR sensor","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fpir.jpg",[64,140],{"alt":141,"src":142},"Completed device","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fcompleted.jpg",[28,144,145],{},"The project took two hours to complete. The next day - the first of April -, I went to the office early and installed the device under my target's desk, with the motion sensor facing her way. She would sit down and hear a loud laughter whenever she moved.",[28,147,148],{},[64,149],{"alt":150,"src":151},"Installing the device","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Finstalled.jpg",[28,153,154],{},"Unfortunately, it misfired: I think I had configured the motion sensor to be too sensitive and it triggered while people were walking by. Another colleague discovered the prank. The box was returned to me soon after - under my own table, of course.",[28,156,157],{},[64,158],{"alt":159,"src":160},"","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Ffleep.png",[28,162,163],{},"Nevertheless, I consider this to be a quick and easy prank - and well executed, too.",[165,166,167],"blockquote",{},[28,168,169],{},"Trolling game strong.",[28,171,172],{},[173,174,175],"em",{},"No code or schematics for this project.",{"title":159,"searchDepth":177,"depth":177,"links":178},2,[],"Projects",null,"2016-04-03","I was in a shopping center and a cheap children's toy - they call them \"laughter bags\" - caught my eye. It is an electronic audio player in a \"cute\" bag. You press on the bag and it plays a loud laughing sound. The first of April was almost upon us and I decided to use this to prank my colleagues.","md","\u002Fcontent\u002F2016\u002F04\u002Ffools\u002Fheader.jpg",{},"\u002F2016\u002Fapril-fools-annoying-laughter-machine","about 2 minutes",{"title":23,"description":182},"2016\u002Fapril-fools-annoying-laughter-machine","Building a simple motion-activated April Fools prank",498,"VXKWN8iYN3KtuxTqSN1lmAX28X7O8-7j7mcZPt_e-EM",[194,198],{"title":195,"path":196,"stem":197,"children":-1},"Beware - I'll Make Your Desk Vibrate","\u002F2016\u002Fbeware-ill-make-your-desk-vibrate","2016\u002Fbeware-ill-make-your-desk-vibrate",{"title":199,"path":200,"stem":201,"children":-1},"Securing SSH Keys","\u002F2016\u002Fsecuring-ssh-keys","2016\u002Fsecuring-ssh-keys",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":203},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":205},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",1790886933621]