1 / 9

Calibrating the Myro Robot Movements A Teacher Resource

Calibrating the Myro Robot Movements A Teacher Resource. Why Calibrate the Robot?. The commands for forward movement and turning each require two input variables – speed and time. forward(speed, time) turnRight(speed, time) turnLeft(speed, time)

tacy
Download Presentation

Calibrating the Myro Robot Movements A Teacher Resource

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Calibrating the Myro Robot Movements A Teacher Resource

  2. Why Calibrate the Robot? The commands for forward movement and turning each require two input variables – speed and time. forward(speed, time) turnRight(speed, time) turnLeft(speed, time) What formula will instruct the robot to travel a set distance? 8 meters

  3. The Slope Formula From math, the slope formula is written: y = mx + b In terms of robot movement, it is possible to measure how far a robot travels or turns in a set amount of time. Using the slope formula, we can write: distance (y) = m*time(x) + b The y-intercept value bequals zero because at zero time, the robot travels or turns zero distance. Therefore, we drop b from the equation. The new equation becomes: y = mx distance = slope* time

  4. Using the Slope Back to the original problem, how to write programming code that instructs the robot to travel or turn a set distance. Re-arranging the distance = slope* time formula to solve for time provides the needed value. The formula becomes: time = distance /slope For example, if the robot needs to travel exactly 8 meters, the command would be: forward(speed, time) forward(speed, distance/slope) The following slides demonstrate how to find the distance, time and slope values.

  5. Make an Excel Table to Record Data Add a formula that calculates Average

  6. Calibrating Myro for Straight Line Movement

  7. Ctrl+click to highlight the Time column and Average Distance column,. Select Insert Scatter to graph the data. Right-click on the chart line, choose Format Trendline, Set intercept = 0 and Display equation on chart. If desired, a Speed column can be added to display the “slope” for each time interval.

  8. Slope Formula ExampleLinear Motion To travel 8 meters: forward(speed, distance/slope) forward(1.0, 8/36.174)

  9. Source Files • http://homepages.ius.edu/rwisman/C490/html/Scribbler.gif • Myro Scribble Video – D. E. and K. R. Wright • http://www.leehansen.com/clipart/Scrapbook/Boys/pages/check-flag.htm

More Related