{"id":540,"date":"2025-05-05T06:21:22","date_gmt":"2025-05-05T06:21:22","guid":{"rendered":"https:\/\/portfolio.wcu.edu\/sjallen7\/?p=540"},"modified":"2025-05-05T06:21:22","modified_gmt":"2025-05-05T06:21:22","slug":"accelerometer-controlled-ball-maze","status":"publish","type":"post","link":"https:\/\/portfolio.wcu.edu\/sjallen7\/2025\/05\/05\/accelerometer-controlled-ball-maze\/","title":{"rendered":"Accelerometer Controlled Ball Maze"},"content":{"rendered":"<p class=\"\" data-start=\"85\" data-end=\"649\">For this project, I combined my previous work with servos and a joystick to create a remote-controlled ball maze using an accelerometer instead of a joystick. When I move the remote control, the maze tilts in the same direction, causing the ball to roll through the maze based on the tilt angle. I programmed the system using MPLAB X, where the accelerometer inputs were read and mapped to control two servo motors\u2014one for the X-axis and one for the Y-axis tilt. This setup creates a real-time control system that lets me guide the ball through the maze just by tilting the remote.<\/p>\n<p data-start=\"85\" data-end=\"649\">You can watch a video of the completed maze using the link: <a href=\"https:\/\/youtu.be\/xWIxy0mNYBE\">https:\/\/youtu.be\/xWIxy0mNYBE<\/a><\/p>\n<p data-start=\"85\" data-end=\"649\">\n","protected":false},"excerpt":{"rendered":"<p>For this project, I combined my previous work with servos and a joystick to create a remote-controlled ball maze using an accelerometer instead of a joystick. When I move the remote control, the maze tilts in the same direction, causing the ball to roll through the maze based on the tilt angle. I programmed the [&hellip;]<\/p>\n","protected":false},"author":1968,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-540","post","type-post","status-publish","format-link","hentry","category-motor-mount","post_format-post-format-link"],"_links":{"self":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts\/540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/users\/1968"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/comments?post=540"}],"version-history":[{"count":1,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"predecessor-version":[{"id":541,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts\/540\/revisions\/541"}],"wp:attachment":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}