{"id":427,"date":"2010-06-16T17:26:10","date_gmt":"2010-06-16T21:26:10","guid":{"rendered":"http:\/\/protofusion.org\/wordpress\/?p=427"},"modified":"2010-06-16T17:26:10","modified_gmt":"2010-06-16T21:26:10","slug":"victor-speed-controllers-and-emc2","status":"publish","type":"post","link":"http:\/\/protofusion.org\/wordpress\/2010\/06\/victor-speed-controllers-and-emc2\/","title":{"rendered":"Victor Speed Controllers and EMC2"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/protofusion.org\/wordpress\/wp-content\/uploads\/2010\/06\/emcifi.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-461 aligncenter\" title=\"\" src=\"http:\/\/protofusion.org\/wordpress\/wp-content\/uploads\/2010\/06\/emcifi.png\" alt=\"\" width=\"300\" height=\"124\" \/><\/a><\/p>\n<p>I&#8217;m currently working on building a EMC2-controlled CNC machine with mostly parts I have on hand. I decided to use Victor 883&#8217;s to control my servos, but EMC2 does not put out the RC-style PWM signal that victors are driven with. Thankfully, hardware in EMC2 is configured with HAL, allowing the software to work with nearly any hardware. Below are the values and configuration I used. If you are planning on using other RC-style motor controllers, you&#8217;ll need to calculate these values yourself.<\/p>\n<p><!--more--><\/p>\n<p>If you are planning on using an RC-style motor controller for a CNC machine, note that you will likely not get the precision achieved by professional servo controllers or homemade h-bridges. However, I have achieved excellent accuracy with the Victor 883 motor controller, my semi-tuned PID loop consistently gets +\/-.0032&#8243; accuracy.<\/p>\n<p><strong>Duty cycle range for Victor 883 <\/strong>(as measured)<\/p>\n<p style=\"padding-left: 30px;\">Maximum duty cycle: 95.29%<br \/>\nMinimum duty cycle: 56.08%<\/p>\n<p><strong>Scale and Offset Values<\/strong> (scale\/offset from [-1, 1] to [.5608, .9529] )<\/p>\n<p style=\"padding-left: 30px;\">Scale amount: .1952<br \/>\nOffset amount: .7554<\/p>\n<p><strong>X-axis Configuration Example<\/strong><\/p>\n<p style=\"padding-left: 30px;\"># PWM output for X-axis<br \/>\nlinksp Xpwm =&gt; parport.0.pin-02-out<\/p>\n<p style=\"padding-left: 30px;\">setp pwmgen.0.pwm-freq 490.0 # seems to work well<\/p>\n<p style=\"padding-left: 30px;\"># Minimum and maximum duty cycle for the Victor 883<br \/>\nsetp pwmgen.0.max-dc .9529<br \/>\nsetp pwmgen.0.min-dc .5608<\/p>\n<p style=\"padding-left: 30px;\"># Scale and offset pwm signal<br \/>\nsetp pwmgen.0.scale .1952<br \/>\nsetp pwmgen.0.offset .7554<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m currently working on building a EMC2-controlled CNC machine with mostly parts I have on hand. I decided to use Victor 883&#8217;s to control my servos, but EMC2 does not put out the RC-style PWM signal that victors are driven<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"http:\/\/protofusion.org\/wordpress\/2010\/06\/victor-speed-controllers-and-emc2\/\">Read more &#8250;<\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[71],"tags":[255,76,75],"class_list":["post-427","post","type-post","status-publish","format-standard","hentry","category-cnc","tag-cnc","tag-emc2","tag-victor"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pNjAs-6T","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/posts\/427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/comments?post=427"}],"version-history":[{"count":13,"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/posts\/427\/revisions"}],"predecessor-version":[{"id":469,"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/posts\/427\/revisions\/469"}],"wp:attachment":[{"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/media?parent=427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/categories?post=427"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/protofusion.org\/wordpress\/wp-json\/wp\/v2\/tags?post=427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}