{"id":299,"date":"2011-05-08T19:36:05","date_gmt":"2011-05-09T03:36:05","guid":{"rendered":"http:\/\/www.simpits.org\/geneb\/?p=299"},"modified":"2012-12-06T08:07:14","modified_gmt":"2012-12-06T16:07:14","slug":"hall-effect-based-control-inputs","status":"publish","type":"post","link":"https:\/\/www.simpits.org\/geneb\/?p=299","title":{"rendered":"Hall effect based control inputs&#8230;"},"content":{"rendered":"<p>For a while now I&#8217;ve wanted to replace the crappy, noisy pots that I&#8217;d used in my Jentron MK2 gimbal that was in the 109F\/X #0 cockpit.\u00a0 They were so bad that it was impossible to use the gimbal for flight at all.<\/p>\n<p>The best way to replace a mechanical potentiometer is to use a hall effect device.\u00a0 This is essentially a sensor that will output a 0 to 5v signal based on the position of a magnet.\u00a0 I&#8217;m using the Allegro 1302 for this project.\u00a0 It works very, very well and can be a direct replacement for any three wire pot installation.<\/p>\n<p>My design uses a 7\/8&#8243; (22mm actually) bearing with an 8mm center bore.\u00a0 The center bore allows you to use a &#8220;traditional&#8221; Bic pen body as an input shaft.\u00a0 You can press the body segment into the bearing and it won&#8217;t be coming out any time soon!\u00a0 You can purchase the bearings here: <a href=\"http:\/\/www.vxb.com\/page\/bearings\/PROD\/SB\/Kit1063\">http:\/\/www.vxb.com\/page\/bearings\/PROD\/SB\/Kit1063<\/a><\/p>\n<p>I installed the pen body into the bearing and then glued a pair of 1\/4&#8243; square neodymium magnets (oriented NS-pen-NS) to either side of the pen body with some thick Cyanoacrylate glue.\u00a0 Works great!<\/p>\n<p>In order to be a direct replacement for the pots, I needed to add similar control arms to them.\u00a0 I did this by laser cutting a press-fit back plate that I threaded for #4-40 screws.<\/p>\n<p><!--more--><\/p>\n<p>Here&#8217;s the end result so far:<\/p>\n<p><a href=\"http:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/control_arm_mounting.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-300\" title=\"control_arm_mounting\" src=\"http:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/control_arm_mounting-300x199.jpg\" alt=\"\" width=\"300\" height=\"199\" srcset=\"https:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/control_arm_mounting-300x199.jpg 300w, https:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/control_arm_mounting.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I then bolted it all together and attached the control arms with screws:<\/p>\n<p><a href=\"http:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_halls.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-301\" title=\"pitch_and_roll_halls\" src=\"http:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_halls-300x199.jpg\" alt=\"\" width=\"300\" height=\"199\" srcset=\"https:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_halls-300x199.jpg 300w, https:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_halls.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The tiny circuit board holds the A1302 hall effect sensor so that it&#8217;s in the exact center of the pen body and aligned with the two magnets.<\/p>\n<p>After cutting out the old pots and adding a couple of terminal blocks, the new control inputs were installed:<\/p>\n<p><a href=\"http:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_installed.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-302\" title=\"pitch_and_roll_installed\" src=\"http:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_installed-300x199.jpg\" alt=\"\" width=\"300\" height=\"199\" srcset=\"https:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_installed-300x199.jpg 300w, https:\/\/www.simpits.org\/geneb\/wp-content\/uploads\/2011\/05\/pitch_and_roll_installed.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>When connected to the pots, the joystick calibration screen in Windows would show a constant jitter that ran +\/- 200-400 around the center point.\u00a0 With the new A1302 based inputs installed the jitter was ZERO.\u00a0 I&#8217;m really looking forward to getting these installed into the rudder pedals, toe brakes and throttles!<\/p>\n<p>Here&#8217;s a more detailed how-to on building these for yourself:<\/p>\n<p>&nbsp;<\/p>\n<p>Here&#8217;s the parts you need:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.geneb.org\/images\/parts_required.jpg\" alt=\"\" \/><\/p>\n<p>The parts shown are a 22MM bearing (just a little shy of 7\/8&#8243; diameter), two 1\/4 x 1\/4 neodymium magnets, an Allegro A1302 hall effect sensor and a Bic pen body.<\/p>\n<p>Using a vice, carefully press in a short segment of pen body into the bearing &#8211; do NOT hammer it! The pen body plastic is very brittle. Steady force using a vice will &#8220;drift&#8221; in the pen body quite easily.<\/p>\n<p>Next, glue the two neodymium magnets to opposite sides of the pen body &#8211; the magnets should be oriented N-S (they&#8217;d come together if the pen wasn&#8217;t in the way). The way I did mine was to rest the magnet on the inner race of the bearing with a business card keeping it from physically touching the race. I then used &#8220;thick&#8221; CA (cyanoacrylate) to glue the magnets in place &#8211; have some kicker handy to speed up the cure process.<\/p>\n<p>You should end up with something that looks like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.geneb.org\/images\/bearing_magnets_and_shaft.jpg\" alt=\"\" \/><\/p>\n<p>Now you need to build the board that will hold the sensor in place. I used a small slice of copper clad perf-board. This holds the 3 pin connector and the A1302 very well.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.geneb.org\/images\/circuit_board.jpg\" alt=\"\" \/><\/p>\n<p>Next, you want to get some 1\/2&#8243; or 3\/8&#8243; plywood and bore a 7\/8&#8243; diameter hole in it using a forstner bit. Dont&#8217; bore the hole completely through &#8211; leave about 1\/8&#8243; of material. Then drill a 1\/4&#8243; hole using the same center as the 7\/8&#8243; hole. I use a set-screw to hold the bearing in, but you could easily hot-glue it in if you&#8217;re careful to keep the glue out of the bearing races. Tape the bearing in for now so you can align the hall sensor properly. A properly aligned sensor will fit in the center of the pen body with the magnets on either side of it.<\/p>\n<p>You should end up having something that looks like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.geneb.org\/images\/sensor_aligned.jpg\" alt=\"\" \/><\/p>\n<p>Assembled, it should look like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.geneb.org\/images\/asm_front.jpg\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.geneb.org\/images\/asm_back.jpg\" alt=\"\" \/><\/p>\n<p>You can connect any kind of pushrod arm, gear, or whatever to the pen body &#8211; just don&#8217;t apply too much side force to it. Too much side stress will crack the plastic. This setup gives 180 degrees of usable travel and works very well! The bearing size that you get should have an inner diameter just a tiny bit less than the widest point on the hexagonal Bic pen body. This allows for a very tight friction fit that doesn&#8217;t require any adhesive to hold it in place.<\/p>\n<p>You can easily custom design your own bracket for this &#8211; this was a simple prototype that proved out the technique and a refined version will end up in my &#8216;109 as well as a replacement for the pitch axis sensor I screwed up in my BRFS gimbal build. <img loading=\"lazy\" decoding=\"async\" title=\"smile\" src=\"http:\/\/simhq.com\/forum\/images\/graemlins\/default\/smile%21.gif\" alt=\"smile\" width=\"15\" height=\"15\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a while now I&#8217;ve wanted to replace the crappy, noisy pots that I&#8217;d used in my Jentron MK2 gimbal that was in the 109F\/X #0 cockpit.\u00a0 They were so bad that it was impossible to use the gimbal for flight at all. The best way to replace a mechanical potentiometer is to use a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-diycockpit"],"_links":{"self":[{"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=299"}],"version-history":[{"count":6,"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=\/wp\/v2\/posts\/299\/revisions\/322"}],"wp:attachment":[{"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simpits.org\/geneb\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}