{"id":2222,"date":"2023-06-06T18:47:14","date_gmt":"2023-06-06T18:47:14","guid":{"rendered":"https:\/\/hughqelliott.com\/blog\/?p=2222"},"modified":"2023-06-06T18:47:15","modified_gmt":"2023-06-06T18:47:15","slug":"simply-spiked","status":"publish","type":"post","link":"https:\/\/hughqelliott.com\/blog\/simply-spiked\/","title":{"rendered":"Simply Spiked: Lie Detector in a Can!"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.simplyspiked.ca\/sites\/simplyspiked\/files\/2023-05\/Simply_Spiked_keepitreal.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"554\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630-1200x554.png\" alt=\"\" class=\"wp-image-2224\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630-1200x554.png 1200w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630-744x343.png 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630-420x194.png 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630-768x354.png 768w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630-1536x709.png 1536w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IMG_8630-2048x945.png 2048w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><figcaption class=\"wp-element-caption\">from the promo video<\/figcaption><\/figure>\n\n\n\n<p>My career is strange. No doubt about it (say that in as Canadian a voice as you can). I get requests that sound like I&#8217;m being punked. &#8220;Hey can you make a lie detector in a can?&#8221; is up there. I was sent a single image with a bunch of labels of what they wanted and a can with a light on the bottom. Not pictured because I don&#8217;t think I can share it. The client in question was Molson. The agency, <a href=\"https:\/\/www.citizenrelations.com\/en\">Citizen Relations<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>I mean, the answer is &#8220;sure, I can&#8221; right?<\/strong><\/p>\n\n\n\n<p>After investigating lie detectors (polygraphs, etc) I figured I could make something that reacts to biometric input. Trick is, they wanted one in a week&#8217;s time! After working out the details, I set to work. First thing was to determine what I could actually accomplish a week. When I agreed to take on the project, I stipulated that V1 would be only using a heart rate sensor. I decided to add fries with that and offered to include haptic feedback in addition to the lighting. I had a vibration motor on hand and determined I could trigger it easily using a micro-controller.<\/p>\n\n\n\n<p><strong>What&#8217;s in the can?<\/strong><\/p>\n\n\n\n<p>So glad you asked. For the controller I used an ESP32 S3 <a href=\"https:\/\/learn.adafruit.com\/adafruit-esp32-s3-feather\/overview\">Adafruit Feather<\/a>. This has a lot of capabilities and, most importantly, on-board Wi-Fi.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cdn-learn.adafruit.com\/assets\/assets\/000\/118\/373\/original\/adafruit_products_FESPS3_top.jpg?1675965407\" alt=\"\"\/><\/figure>\n\n\n\n<p> <\/p>\n\n\n\n<p>For the heart rate, I found a great breakout from <a href=\"https:\/\/www.dfrobot.com\/product-2164.html\">DFRobot<\/a>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/dfimg.dfrobot.com\/store\/data\/SEN0344\/211213Update\/SEN0344.jpg?imageView2\/1\/w\/564\/h\/376\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The lighting on the bottom was a NeoPixel strip.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold-1200x675.png\" alt=\"\" class=\"wp-image-2231\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold-1200x675.png 1200w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold-744x419.png 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold-420x236.png 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold-768x432.png 768w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold-1536x864.png 1536w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/BottomRing_Gold.png 1920w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This first version was a little rough but it was a learning experience.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V9.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1112\" height=\"749\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V9.jpg\" alt=\"\" class=\"wp-image-2236\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V9.jpg 1112w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V9-744x501.jpg 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V9-420x283.jpg 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V9-768x517.jpg 768w\" sizes=\"auto, (max-width: 1112px) 100vw, 1112px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To communicate with the can, I had it launch its own web-server and server pages for an administrator to tell the can when a question was asked and then answered. Then I designed lighting effects for all portions of the experience. Golden orbit meant the can was waiting for commands. Blue pulse it found a heartbeat. Green flash was truth. Red flash and vibration meant false.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"512\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin-1200x512.jpg\" alt=\"\" class=\"wp-image-2237\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin-1200x512.jpg 1200w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin-744x317.jpg 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin-420x179.jpg 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin-768x328.jpg 768w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin-1536x655.jpg 1536w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/canAdmin.jpg 2000w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IdleLoop.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"338\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/IdleLoop.gif\" alt=\"\" class=\"wp-image-2238\"\/><\/a><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/PulseLoop.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"338\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/PulseLoop.gif\" alt=\"\" class=\"wp-image-2239\"\/><\/a><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/TrueLoop.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"338\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/TrueLoop.gif\" alt=\"\" class=\"wp-image-2240\"\/><\/a><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/FalseLoop-1.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"338\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/FalseLoop-1.gif\" alt=\"\" class=\"wp-image-2242\"\/><\/a><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>I designed the internal component structure in Fusion360 and 3D printed all the parts on my <a href=\"https:\/\/eryone3d.com\/en-ca\/collections\/eryone-printers\/products\/eryone-thinker-se-3d-printer-eu-only\">Eryone Thinker SE<\/a>.<br><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0252\/0412\/9841\/products\/1_a81f2825-66cf-4eec-872f-4a8170e88840_1296x.jpg?v=1681799096\" alt=\"\"\/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>I joked in meetings that the components were held together with &#8220;hope and tape&#8221;. I was very happy with the locking mechanism I designed, everything but the sensor was integrated into a central post that was unscrewed to turn on and charge. It was not a good long-term solution.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Charging.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1123\" height=\"1500\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Charging.jpg\" alt=\"\" class=\"wp-image-2229\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Charging.jpg 1123w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Charging-744x994.jpg 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Charging-420x561.jpg 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Charging-768x1026.jpg 768w\" sizes=\"auto, (max-width: 1123px) 100vw, 1123px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><strong>Why a week?<\/strong><\/p>\n\n\n\n<p>I was told they were shipping the can to the set of Love Island Qu\u00e9bec in the Dominican Republic to shoot with the contestants. I actually think this happened and when I have video of it or a post to link to, I will.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Version 2?<\/strong><\/p>\n\n\n\n<p>Yes! So they liked version 1 so much, they wanted more cans. This time it was explained that they wanted a second data point. Galvanic Skin Response (GSR). I needed to reconfigure the design and code to accommodate this. I found a breakout with two nickel pads from <a href=\"https:\/\/wiki.seeedstudio.com\/Grove-GSR_Sensor\/\">seeedStudio<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/files.seeedstudio.com\/wiki\/Grove-GSR_Sensor\/img\/GSR.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>The modifications to the pads was to cut away the elastic covers and shorten the wires to the breakout. Then to remodel the component structure to include the pads to the external area.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1112\" height=\"749\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V11.png\" alt=\"\" class=\"wp-image-2232\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V11.png 1112w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V11-744x501.png 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V11-420x283.png 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_V11-768x517.png 768w\" sizes=\"auto, (max-width: 1112px) 100vw, 1112px\" \/><\/a><\/figure>\n\n\n\n<p>In addition I lowered the height of the lighting by replacing the LED strip with a ring.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cdn-shop.adafruit.com\/970x728\/1463-00.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Version 3?<\/strong><\/p>\n\n\n\n<p>Finally with V3 (my internal V16) of the cans, I redesigned the internal structure again. This time, to enclose the components and make the entire system more secure. I also changed the surrounding cylinder into a two-part container. I also swapped the large vibration motor for a small cell-phone vibration motor that could sit on the sensor strip and made the haptic sensations work just as well with a smaller footprint. This allowed me to remove the main centre stem.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_ExplodedView_0.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"709\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_ExplodedView_0-1200x709.png\" alt=\"\" class=\"wp-image-2233\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_ExplodedView_0-1200x709.png 1200w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_ExplodedView_0-744x440.png 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_ExplodedView_0-420x248.png 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_ExplodedView_0-768x454.png 768w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/Can_ExplodedView_0.png 1387w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n\n\n\n<p>I wanted a repeatable system that I could <em>quickly<\/em> implement with a pre-determined set of components. The bottom now unlocks and reveals a power switch and USB-C charging port. No more &#8220;hope and tape&#8221;. I am confident in the construction and no longer worried if some random person decides to fiddle with the can.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"1138\" src=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1-1200x1138.jpg\" alt=\"\" class=\"wp-image-2235\" srcset=\"https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1-1200x1138.jpg 1200w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1-744x706.jpg 744w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1-420x398.jpg 420w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1-768x728.jpg 768w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1-1536x1457.jpg 1536w, https:\/\/hughqelliott.com\/blog\/wp-content\/uploads\/2023\/06\/can_bottom-1.jpg 2000w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n\n\n\n<p>Psst. Don&#8217;t stare at the LED ring when you turn it on. It&#8217;s pretty bright (read: blinding)<\/p>\n\n\n\n<p>Anyway, the project <a href=\"https:\/\/www.simplyspiked.ca\/en-CA\/KeepItReal\">launched<\/a> and it&#8217;s very cool to see in the world. I hope you like it. Here&#8217;s the promo video they made.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Introducing: The Keep It Real Can\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/a_Q71sCLPHk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Special thanks to Nicole St. Jean for being a kick-ass producer. And thank you to the team at Citizen Relations for their faith in the process. Not to mention their willingness to listen to my nutty ideas.<\/p>\n\n\n\n<p>Yelp review: 10\/10 would can with them all again.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"entry-summary\">\nMy career is strange. No doubt about it (say that in as Canadian a voice as you can). I get&hellip;\n<\/div>\n<div class=\"link-more\"><a href=\"https:\/\/hughqelliott.com\/blog\/simply-spiked\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &ldquo;Simply Spiked: Lie Detector in a Can!&rdquo;<\/span>&hellip;<\/a><\/div>\n","protected":false},"author":1,"featured_media":2223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[17,18,5,21,16,11],"tags":[],"class_list":["post-2222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3d-modelling","category-3d-printing","category-build","category-creative-technology","category-electronics","category-user-experience","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/posts\/2222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/comments?post=2222"}],"version-history":[{"count":4,"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/posts\/2222\/revisions"}],"predecessor-version":[{"id":2245,"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/posts\/2222\/revisions\/2245"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/media\/2223"}],"wp:attachment":[{"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/media?parent=2222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/categories?post=2222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hughqelliott.com\/blog\/wp-json\/wp\/v2\/tags?post=2222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}