{"id":1012,"date":"2013-06-11T23:42:39","date_gmt":"2013-06-11T13:42:39","guid":{"rendered":"http:\/\/legoeng.local\/?p=1012"},"modified":"2017-12-21T17:53:32","modified_gmt":"2017-12-21T06:53:32","slug":"motor-vs-move-part-ii-action","status":"publish","type":"post","link":"http:\/\/legoeng.local\/motor-vs-move-part-ii-action\/","title":{"rendered":"Motor vs Move – Part II: Action"},"content":{"rendered":"
In Part I of Motor vs. Move, we looked at how the Move block incorporates a control algorithm to help robots move more accurately. What else is different between the Motor and Move block in NXT-G?<\/p>\n
The Motor block has an “Action” panel which includes a drop-down menu pertaining to how the robot’s motor will behave upon action.<\/p>\n
<\/a><\/p>\n Motor Block “Action” Programming Options<\/em><\/p>\n The “Constant” selection implies that the robot’s motor will perform at constant speed from when it is activated to when it is deactivated (as programmed). In other words, as soon as the program initiates motor action, the motor will spin at the power level that you specify in the “Power” panel. This feature is excellent for when your robot needs only to travel at a constant speed, or for such things as a clock that requires constant power in its motor.<\/p>\n The “Ramp Up” feature allows for the robot’s motor to approach the set power level as soon as the motor is activated. Once your program reaches the point that you set the motor to start, the motors will gradually increase in power from the stopped point until the motor reaches whatever percent power you have set. This “Ramp Up” feature allows your robot to act similarly to how your car accelerates when you press on the gas pedal.<\/p>\n The “Ramp Down” feature allows for the robot’s motor to slow in speed when approaching a stop. This feature does pertain to certain restrictions. This feature can only be used when the motor block is preceded with a motor block set with a constant speed set to coast after execution (see second block of the sample program below). This allows for an initial speed for the motors during the “ramped down” motor block. Once the motor is activated, it spins at the set power level, but as it approaches a stopped state, it will gradually decrease in power level. This closely mimics the braking of a vehicle. Without the preceding block, the “ramp down” motor block has an initial speed of zero, and hence will not be able to slow.<\/p>\n Sample Program<\/em><\/p>\n <\/a><\/p>\n The second block must have an action of “Constant” and be set to coast<\/em><\/p>\n <\/a><\/p>\n Note that all of the actions are only available if the Duration is set to rotations or degrees.<\/strong><\/p>\n The Move block does not contain any “Action” panel or the ability for you to specify how the motors will behave. This is due to the fact that there is already intelligence in the power component of the Move block (see Part I: The Control Algorithm). The built-in algorithm monitors rotation sensors on the NXT and slows the motor(s) as the robot approaches the target duration. Essentially, the Move block incorporates the “Ramp Down” feature of the Motor block.<\/p>\n <\/a><\/p>\n A Merry-go-round is a great application for the Move block’s “Ramp Up” and “Ramp Down” actions. Try them out by following the building and programming instructions in the Resources section.<\/p>\n <\/a><\/p>\n By Ciera Maffei<\/em><\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" In Part I of Motor vs. Move, we looked at how the Move block incorporates a control algorithm to help robots move more accurately. What else is different between the Motor and Move block in NXT-G? Motor The Motor block has an “Action” panel which includes a drop-down menu pertaining to how the robot’s motor […]<\/p>\n","protected":false},"author":29,"featured_media":1077,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[110,113,69],"_links":{"self":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/posts\/1012"}],"collection":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/comments?post=1012"}],"version-history":[{"count":0,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/posts\/1012\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/media\/1077"}],"wp:attachment":[{"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/media?parent=1012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/categories?post=1012"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/legoeng.local\/wp-json\/wp\/v2\/tags?post=1012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Move<\/h2>\n
Try it out: The merry-go-round<\/h2>\n
Resources<\/h3>\n
\n