{"id":4389,"date":"2020-03-09T21:04:02","date_gmt":"2020-03-10T04:04:02","guid":{"rendered":"http:\/\/mattfife.com\/?p=4389"},"modified":"2020-03-09T21:04:02","modified_gmt":"2020-03-10T04:04:02","slug":"balancing-a-bouncing-ball","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=4389","title":{"rendered":"Balancing a bouncing ball"},"content":{"rendered":"\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/lYyAMDYzJQM?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p> <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/channel\/UCy1q18ivH441PJQAoTYf9pQ\" target=\"_blank\">Electron Dust<\/a>\u00a0shows off a nifty machine that can bounce a ping pong ball, while keeping it balanced and centered on its moving platform. It uses combination of open-source image processing software and Arduino-controlled stepper motors to work its magic. <\/p>\n\n\n\n<p>It is an arduino project with 120 FPS OpenCV image processing and smooth stepper motor moves. The machine calculates the ball&#8217;s 3D position from the image processing data and uses this information to control the orange ping pong ball. <\/p>\n\n\n\n<p>Uses an e-con Systems superb See3CAM_CU135 camera. Find out more about the camera here: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/redirect?redir_token=CAfm9BtNQhBHgrE_zqcdPw1I_RR8MTU4Mzg5OTEyOEAxNTgzODEyNzI4&amp;event=video_description&amp;v=lYyAMDYzJQM&amp;q=https%3A%2F%2Fwww.e-consystems.com%2F4k-usb-camera.asp\" target=\"_blank\">https:\/\/www.e-consystems.com\/4k-usb-c&#8230;<\/a> <\/p>\n\n\n\n<p>This machine requires the following things to work: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>1x Teensy 4.0 Microcontroller <\/li><li>4x StepperOnline DM442S stepper motor drivers <\/li><li>4x Nema 17 Stepper Motors with 5:1 planetary gearbox <\/li><li>1x 48V 8A power supply <\/li><li>1x e-con Systems See3CAM_CU135 camera <\/li><li>1x Windows Computer with OpenCV installed on it &#8211; <\/li><\/ul>\n\n\n\n<p>All the parts defined the Fusion360 project &#8211; Custom Windows Application (made with Unity). Read more here: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/redirect?redir_token=CAfm9BtNQhBHgrE_zqcdPw1I_RR8MTU4Mzg5OTEyOEAxNTgzODEyNzI4&amp;event=video_description&amp;v=lYyAMDYzJQM&amp;q=https%3A%2F%2Felectrondust.com%2F2020%2F03%2F02%2Fthe-octo-bouncer%2F\" target=\"_blank\">https:\/\/electrondust.com\/2020\/03\/02\/t&#8230;<\/a> Complete code and Fusion360 data on Github: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.youtube.com\/redirect?redir_token=CAfm9BtNQhBHgrE_zqcdPw1I_RR8MTU4Mzg5OTEyOEAxNTgzODEyNzI4&amp;event=video_description&amp;v=lYyAMDYzJQM&amp;q=https%3A%2F%2Fgithub.com%2FT-Kuhn%2FHighPrecisionStepperJuggler\" target=\"_blank\">https:\/\/github.com\/T-Kuhn\/HighPrecisi&#8230;<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Electron Dust\u00a0shows off a nifty machine that can bounce a ping pong ball, while keeping it balanced and centered on its moving platform. It uses combination of open-source image processing software and Arduino-controlled stepper motors to work its magic. It is an arduino project with 120 FPS OpenCV image processing and smooth stepper motor moves. The machine calculates the ball&#8217;s 3D position from the image processing data and uses this information to control the orange ping pong ball. Uses an&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/mattfife.com\/?p=4389\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9,7,5],"tags":[],"class_list":["post-4389","post","type-post","status-publish","format-standard","hentry","category-cool","category-technicalprogramming","category-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-18N","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/4389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4389"}],"version-history":[{"count":1,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/4389\/revisions"}],"predecessor-version":[{"id":4390,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/4389\/revisions\/4390"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}