{"id":3694,"date":"2016-10-08T13:22:57","date_gmt":"2016-10-08T13:22:57","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=3694"},"modified":"2016-10-08T13:26:03","modified_gmt":"2016-10-08T13:26:03","slug":"moving-a-1kg-static-load","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2016\/10\/moving-a-1kg-static-load\/","title":{"rendered":"Moving a 1Kg Static Load"},"content":{"rendered":"<p><a href=\"http:\/\/41j.com\/blog\/2016\/10\/moving-a-1kg-static-load\/img_0803-2\/\" rel=\"attachment wp-att-3700\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-3700 alignright\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2016\/10\/IMG_0803-1.jpg\" alt=\"img_0803\" width=\"317\" height=\"423\" \/><\/a>So&#8230; here&#8217;s the thing. While I really like motors, My preference is generally to those with <a href=\"http:\/\/41j.com\/blog\/2014\/09\/piezo-actuators-a-review\/\">nanometer<\/a> resolution, and where the loads are pretty inconsequential. The other day I was looking at a project where we needed to move a few kilograms through a couple of meters.<\/p>\n<p>All I had was a random (reasonably high torque, but not great) stepper motor and an easydriver. This completely failed to solve the problem.<\/p>\n<p>So, I&#8217;ve been trying to get geared (haha, funny guy!) up to solve a range of problems in motion such that when the next project comes along I have a set of motors I can throw at the problem.<\/p>\n<p>To that end I&#8217;ve been looking at geared DC motors and H-bridges. The picture to the right is my current test setup and this post just briefly documents what I have at the moment.<\/p>\n<p>The 2 bottles of (frozen) water there weight about a kilogram. The motor I&#8217;m using incorporates a worm gear. It&#8217;s a 12V 100RPM motor, which I <a href=\"http:\/\/www.ebay.co.uk\/itm\/381741768950\">picked up on eBay<\/a>.<\/p>\n<p>When driving this from a bench supply it uses about 1.2A moving 1Kg at about 5cm\/s.<\/p>\n<p>That&#8217;s great but obviously if I&#8217;m going to do something useful with this I need to be able to rotate the actuator in both direction. For this I need an H-bridge. I&#8217;ve picked up a couple the one below (again from <a href=\"http:\/\/www.ebay.co.uk\/itm\/171331401392\">eBay<\/a>) is the one I&#8217;ve tested:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/2016\/10\/moving-a-1kg-static-load\/s-l500\/\" rel=\"attachment wp-att-3701\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3701\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2016\/10\/s-l500.jpg\" alt=\"s-l500\" width=\"500\" height=\"333\" \/><\/a><\/p>\n<p>It&#8217;s pretty simple, attach your power supply (set at 12V) to the drive power input pins. Attach the motor to the &#8220;drive output&#8221; pins (doesn&#8217;t really matter which way round). And then supply the control signals on the input.<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/2016\/10\/moving-a-1kg-static-load\/img_0805-2\/\" rel=\"attachment wp-att-3702\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3702 alignleft\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2016\/10\/IMG_0805-1.jpg\" alt=\"img_0805\" width=\"301\" height=\"226\" \/><\/a>The control signals use PWM to moderate the power supplied to the motor. The drive frequency isn&#8217;t hugely critical, but the duty of the square wave is. The direction pin then changes the direction of the rotation (using the H-bridge to reverse the polarity of the supply across out output pins).<\/p>\n<p>The control signal is (I assume, because that&#8217;s what I used) a 5V input. You can easily generate this an Arduino or similar microcontroller board. But for the purposes of testing I used a signal generator. This PWM signal is applied to the &#8220;P&#8221; pin.<\/p>\n<p>I couldn&#8217;t push my generator beyond an 80% duty cycle. But at 80% the motor consumed about 500mA underload. About half what it was from the PSU. It still seemed to move the load without issue but I should probably figure out what&#8217;s going on here. To invert the direction you need to apply a voltage to the &#8220;D&#8221; pin. When reversing direction you also appear to need to invert the duty cycle to maintain the same speed (80% becomes 20%).<a href=\"http:\/\/41j.com\/blog\/2016\/10\/moving-a-1kg-static-load\/img_0806-2\/\" rel=\"attachment wp-att-3704\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3704 alignright\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2016\/10\/IMG_0806-1.jpg\" alt=\"img_0806\" width=\"236\" height=\"315\" \/><\/a><\/p>\n<p>That&#8217;s pretty much it for now. The picture to the right shows the function generator settings (I used another function generator to generate the 5v direction input because&#8230; I happened to have 2 function generators knocking around).<\/p>\n<p>Anyway&#8230; that&#8217;s about it for now. I&#8217;m comfortable that I&#8217;m slowly acquiring the tools needed for the next motion project that pops up and will hopefully be able to knock together prototypes of such systems more quickly in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So&#8230; here&#8217;s the thing. While I really like motors, My preference is generally to those with nanometer resolution, and where the loads are pretty inconsequential. The other day I was looking at a project where we needed to move a few kilograms through a couple of meters. All I had was a random (reasonably high [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","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":[1],"tags":[],"class_list":["post-3694","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-XA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/3694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=3694"}],"version-history":[{"count":4,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/3694\/revisions"}],"predecessor-version":[{"id":3708,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/3694\/revisions\/3708"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=3694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=3694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=3694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}