{"id":10735,"date":"2015-08-26T09:37:09","date_gmt":"2015-08-26T13:37:09","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=10735"},"modified":"2015-08-26T09:37:09","modified_gmt":"2015-08-26T13:37:09","slug":"controlling-servos-hand-motion","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/controlling-servos-hand-motion\/","title":{"rendered":"Controlling servos with hand motion"},"content":{"rendered":"<p><strong>Justin Platz<\/strong> and\u00a0<strong>Kurt Clothier<\/strong> from <strong><em>Pubnub<\/em><\/strong> illustrates <a href=\"http:\/\/www.pubnub.com\/blog\/motion-controlled-servos-with-leap-motion-raspberry-pi\/\" target=\"_blank\"><strong>how to control a physical object with the motion of two hands<\/strong><\/a>. They used Raspberry Pi and the Leap Motion controller for this purpose.<\/p>\n<div id=\"attachment_10736\" style=\"width: 590px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/08\/raspberry-pi-leap-motion-controller.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10736\" class=\"size-full wp-image-10736\" alt=\"Controlling servos with hand motion\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/08\/raspberry-pi-leap-motion-controller.jpg\" width=\"580\" height=\"475\" \/><\/a><p id=\"caption-attachment-10736\" class=\"wp-caption-text\">Controlling servos with hand motion<\/p><\/div>\n<p>&nbsp;<\/p>\n<blockquote><p>The two servos mirror the movement of the user\u2019s two individual hands. Attached to the servos are 8\u00d78 RGB LED Matrices, which react to each finger movement on your hand. The Leap Motion communicates directly with the Raspberry Pi via PubNub Data Streams with minimal latency, and the Raspberry Pi then drives the servos.<\/p>\n<p><a href=\"https:\/\/www.leapmotion.com\/\" target=\"_blank\">Leap Motion<\/a>\u00a0is a powerful device equipped with two monochromatic IR cameras and three infrared LEDs. In this\u00a0project, the Leap Motion is just going to capture the pitch and yaw of the user\u2019s hands and publish them to a channel via PubNub. Attributes like pitch, yaw and roll of hands are all pre-built into the\u00a0<a href=\"https:\/\/developer.leapmotion.com\/documentation\/java\/index.html\" target=\"_blank\">Leap Motion SDK<\/a>.<\/p>\n<p>To recreate realtime mirroring, the Leap Motion publishes messages 20x a second with information about each of your hands and all of your fingers to PubNub. On the other end, our Raspberry Pi is subscribed to the same channel and parses these messages to control\u00a0the servos and the lights.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Justin Platz and\u00a0Kurt Clothier from Pubnub illustrates how to control a physical object with the motion of two hands. They used Raspberry Pi and the Leap Motion controller for this purpose. &nbsp; The two servos mirror the movement of the user\u2019s two individual hands. Attached to the servos are 8\u00d78 RGB LED Matrices, which react to each finger movement on your hand. The Leap Motion communicates directly with the Raspberry Pi via PubNub Data Streams with minimal latency, and the Raspberry Pi then drives the servos. Leap Motion\u00a0is a powerful device equipped with two monochromatic IR cameras and three infrared<\/p>\n","protected":false},"author":1,"featured_media":10736,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[602],"tags":[1292,419],"class_list":["post-10735","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pie","tag-hand-motion-control","tag-servo-control"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=10735"}],"version-history":[{"count":1,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10735\/revisions"}],"predecessor-version":[{"id":10737,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10735\/revisions\/10737"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/10736"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=10735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=10735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=10735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}