{"id":8,"date":"2019-02-09T10:44:05","date_gmt":"2019-02-09T10:44:05","guid":{"rendered":"http:\/\/artbiit.com\/blog\/?p=8"},"modified":"2019-07-06T07:59:59","modified_gmt":"2019-07-06T07:59:59","slug":"simulating-mouse-clicks-with-piezo-footpedals-and-arduino","status":"publish","type":"post","link":"https:\/\/artbiit.com\/blog\/simulating-mouse-clicks-with-piezo-footpedals-and-arduino\/","title":{"rendered":"Simulating Mouse Events With Piezo Foot-pedals and Arduino"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you work hard and\nintensively with a computer mouse and keyboard, you might sometimes\nget sore wrists. I find that my left hand is sensitive to that. I do\na lot copy paste and alt-tab short cut movements. And if you do it\nintensively for hours and days then what is known as \u201cCarpal tunnel\nsyndrome\u201d maybe the unpleasant \u201cunexpected\u201d surprise.<\/p>\n\n\n\n<iframe loading=\"lazy\" width=\"750\" height=\"422.0\" src=\"https:\/\/www.youtube.com\/embed\/XRV5j2B40Ek\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But sometimes you need to work regardless. So here is one solution. Let\u2019s distribute the workload from hands,fingers and wrists to feet. In this project I first experimented with foot switches. The foot switches I found initially were rather noisy so I decided to experiment with piezoelectric sensors and found out that they work excellently. Now I can tap with my feet several shortcuts and these taps are also quite silent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So here is what you need:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Arduino board<\/li><li>piezo sensors<\/li><li>1M\u03a9 resistors<\/li><li>wire<\/li><li>optional: door mat<\/li><li>optional: PCB Circuit Prototype Board for diy Arduino shield<\/li><li>optional: Pin Header Strip Row for Arduino shield<\/li><li>optional: enclosure<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Nice intro for using piezo with Arduino: <a href=\"https:\/\/monctonlife.com\/2018\/01\/piezoelectric-sensor-interfacing-with-arduino.html\">https:\/\/monctonlife.com\/2018\/01\/piezoelectric-sensor-interfacing-with-arduino.html<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my piezo-&#8220;foot pedal&#8221; unit I have 5 piezos to trigger these events in computer:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>left mouse click<\/li><li>windows switcher (Win+Tab)<\/li><li>mouse drag<\/li><li>double-click<\/li><li>right click<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"227\" src=\"http:\/\/artbiit.com\/blog\/wp-content\/uploads\/2019\/02\/piezo-mat-with-icons-20190209_124242.jpg\" alt=\"piezo mat with icons\" class=\"wp-image-19\" srcset=\"https:\/\/artbiit.com\/blog\/wp-content\/uploads\/2019\/02\/piezo-mat-with-icons-20190209_124242.jpg 500w, https:\/\/artbiit.com\/blog\/wp-content\/uploads\/2019\/02\/piezo-mat-with-icons-20190209_124242-300x136.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption>Piezo mat with icons<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Source code: <br><a href=\"https:\/\/github.com\/juyshy\/Foot-pedals-as-pc-controllers\">https:\/\/github.com\/juyshy\/Foot-pedals-as-pc-controllers<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you work hard and intensively with a computer mouse and keyboard, you might sometimes get sore wrists. I find that my left hand is sensitive to that. I do a lot copy paste and alt-tab short cut movements. And if you do it intensively for hours and days then what is known as \u201cCarpal [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":21,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3,4],"tags":[6,5,7],"class_list":["post-8","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-interface","category-python","tag-carpal-tunnel-syndrome-prevention","tag-computer-shortcuts","tag-ergonomics"],"_links":{"self":[{"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":15,"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":46,"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions\/46"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/media\/21"}],"wp:attachment":[{"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artbiit.com\/blog\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}