{"id":153,"date":"2014-11-04T23:49:01","date_gmt":"2014-11-04T23:49:01","guid":{"rendered":"https:\/\/ca.rstenpresser.de\/blag\/?p=153"},"modified":"2015-02-08T17:33:21","modified_gmt":"2015-02-08T17:33:21","slug":"linuxcnc-pendant","status":"publish","type":"post","link":"https:\/\/ca.rstenpresser.de\/blag\/2014\/11\/linuxcnc-pendant\/","title":{"rendered":"LinuxCNC Pendant"},"content":{"rendered":"<p>To make jogging easier (doing this with the keyboard sucks) I decided its time to build a remote pendant for my Mill. From ebay I ordered a Device with a MPG (Manual Pulse Generator) and two rotary switches. Its prebuild with a case and cable. Like most china-ware, there was no documentation. But I could open the case to check the wiring and cable-colors.<\/p>\n<p>The USB-Interface is a <a href=\"http:\/\/www.leobodnar.com\/products\/BU0836\/\">BU0836A<\/a> device. It allows 8 analog inputs (unused) and 12 switches.<\/p>\n\n\t\t<div id='gallery-1' class='gallery galleryid-153 gallery-columns-3 gallery-size-thumbnail gallery1'><script type=\"text\/javascript\">\r\n\/\/ <![CDATA[\r\n\tjQuery(document).ready(function () {\r\n\t\tjQuery(\".gallery1 a\").attr(\"rel\",\"gallery1\");\t\r\n\t\tjQuery('a[rel=\"gallery1\"]').colorbox({maxWidth:\"95%\", maxHeight:\"95%\",title: function(){ return jQuery(this).children().attr(\"alt\"); }, });\r\n\t});\r\n\/\/ ]]>\r\n<\/script>\n<figure class=\"gallery-item\">\n<div class=\"gallery-icon\">\r\n<a href=\"https:\/\/ca.rstenpresser.de\/wp-files\/2014\/11\/IMG_2556.small_.jpg\" title=\"BU0836A USB Interface\" rel=\"gallery1\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ca.rstenpresser.de\/wp-files\/2014\/11\/IMG_2556.small_-150x150.jpg\" width=\"150\" height=\"150\" alt=\"BU0836A USB Interface\" \/><\/a>\r\n<\/div><figcaption class=\"gallery-caption\" id=\"caption154\"><span class=\"imagecaption\">BU0836A USB Interface<\/span><br \/>\n<\/figcaption><\/figure><figure class=\"gallery-item\">\n<div class=\"gallery-icon\">\r\n<a href=\"https:\/\/ca.rstenpresser.de\/wp-files\/2014\/11\/IMG_2557.small_.jpg\" title=\"LinuxCNC Remote Pendant\" rel=\"gallery1\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ca.rstenpresser.de\/wp-files\/2014\/11\/IMG_2557.small_-150x150.jpg\" width=\"150\" height=\"150\" alt=\"LinuxCNC Remote Pendant\" \/><\/a>\r\n<\/div><figcaption class=\"gallery-caption\" id=\"caption155\"><span class=\"imagecaption\">LinuxCNC Remote Pendant<\/span><br \/>\n<\/figcaption><\/figure>\r\n\t\t<\/div>\n\n<p>To make the MPG work one needs to configure a pair of inputs of the BU0836 for quadrature encoder. Fortunately there is a <a href=\"https:\/\/gitorious.org\/bu0836\/bu0836\">config utility for linux<\/a>. The acutual connection was done by soldering female headers to the open cable ends of the pendant (as seen in picture 1). The pinout is as following:<\/p>\n<ul>\n<li>Encoder +5V -&gt; +5V<\/li>\n<li>Encoder GND -&gt; GND<\/li>\n<li>Encoder A -&gt; SW5<\/li>\n<li>Encoder B -&gt; SW6<\/li>\n<li>COMM -&gt; GND<\/li>\n<li>LED- &gt; GND<\/li>\n<li>LED+ -&gt; +5V, with 470R in series<\/li>\n<li>X1 -&gt; SW4<\/li>\n<li>X10 -&gt; SW3<\/li>\n<li>X100 -&gt; SW2<\/li>\n<li>AxisX -&gt; SW12<\/li>\n<li>AxisY -&gt; SW11<\/li>\n<li>AxisZ -&gt; SW10<\/li>\n<li>Axis4 -&gt; SW9<\/li>\n<\/ul>\n<p>The BU0836 PCB was build into a PVC for protection.<\/p>\n<p>&nbsp;<\/p>\n<p>Not only the software-part ist left. To make it work in linuxcnc only a few lines of HAL code are required \ud83d\ude42<\/p>\n<p>Download it here: <a href=\"https:\/\/ca.rstenpresser.de\/wp-files\/2014\/11\/pendant.hal_.gz\">pendant.hal<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To make jogging easier (doing this with the keyboard sucks) I decided its time to build a remote pendant for my Mill. From ebay I ordered a Device with a MPG (Manual Pulse Generator) and two rotary switches. Its prebuild with a case and cable. Like most china-ware, there was no documentation. But I could &hellip; <a href=\"https:\/\/ca.rstenpresser.de\/blag\/2014\/11\/linuxcnc-pendant\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LinuxCNC Pendant<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[70,111,68,69,67,71,72],"_links":{"self":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts\/153"}],"collection":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":7,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":179,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/posts\/153\/revisions\/179"}],"wp:attachment":[{"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ca.rstenpresser.de\/blag\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}