1 / 29

MathBots Challenge:

MathBots Challenge:. Get With the Program!. Centiseconds. We program our time in centiseconds. CS or CSEC What are centiseconds? 1 centisecond = of a second or .01 s 100 centiseconds = 1 second. Conversions. Change to centiseconds or seconds.

jean
Download Presentation

MathBots Challenge:

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. MathBots Challenge: Get With the Program! (c) MathScience Innovation Center

  2. (c) MathScience Innovation Center

  3. Centiseconds • We program our time in centiseconds. • CS or CSEC • What are centiseconds? • 1 centisecond = of a second or .01 s • 100 centiseconds = 1 second (c) MathScience Innovation Center

  4. Conversions Change to centiseconds or seconds. 1. 2 s = _____cs 5. 500 csec = ____ s2. 4 s = _____ cs 6. 60 csec = ____ s3. 3.5 s = ____ cs 7. 425 csec = ____s 4. 0.7 s = ____ cs 8. 680 csec = ____ s (c) MathScience Innovation Center

  5. 2 s = 200 cs 4 s = 400 cs 3.5 s = 350 cs 0.7 s = 70 cs 500 cs = 5 s 60 cs = 0.6 s 425 cs = 4.25 s 680 cs = 6.8 s ConversionsChange to centiseconds or seconds. (c) MathScience Innovation Center

  6. Programming Command 1: SEND • Send command • Format: Send({CLR,xxx}) • xxxrepresentsthe number of centiseconds the car will run. • Example: For the car to go forward for 5 seconds, how many centiseconds do you want? • Program: Send({CLR,500}). (c) MathScience Innovation Center

  7. Left Wheel 0 = backward 1 = no motion 2 = forward RightWheel 0 = backward 1 = no motion 2 = forward Movement Commands CLR Certain Time or Bumper 1 = timed movement 2 = move until bumper hits 3 = time or until bumper hits 122 ? (c) MathScience Innovation Center

  8. Programming Command 2: GET • Get command • Format: Get(R) • Always follows the Send command. • Example:Send({122,500}) Get(R) (c) MathScience Innovation Center

  9. Programming Command 3: DISP • Disp command • Format: Disp R • Displays the time that the car has run. • Example: Send({122,500}) Get(R) Disp R (c) MathScience Innovation Center

  10. Creating a New Program • Press the PGRM button. • Scroll over to NEW and press ENTER. (c) MathScience Innovation Center

  11. Name the Program • Call this program CAR. • Locate green letters above the buttons. • Press each button that has the correct letter above it to spell CAR. • You do not need to press the ALPHA key since an “A” is blinking. • Press ENTER. (c) MathScience Innovation Center

  12. Entering Commands • Press the PRGM button again. • Scroll over to I/O, but do not press enter yet. (c) MathScience Innovation Center

  13. Scroll up to B: which is the Send command and press ENTER. • Enter the command to move the car, {122,500}). • The first parenthesis is already there, but you enter the braces and the end parenthesis. • Press ENTER. The cursor will skip a line. (c) MathScience Innovation Center

  14. Press the PGRM key again and scroll over to I/O again. Scroll up to A: Get( and press ENTER. Press the ALPHA key Find the green R above the “times” key and press that key. Close with a parenthesis and press ENTER. • Press 2nd Quit to leave the program. (c) MathScience Innovation Center

  15. Running the Program • Plug in the link from the calculator to the car. • Turn your car on. The switch is on the bottom of the car. • Place your car on the floor. (c) MathScience Innovation Center

  16. Running the Program • Press the PRGM button. • The cursor should be on EXEC. • Scroll to CAR and press ENTER. • Press ENTER a second time. (c) MathScience Innovation Center

  17. Objective • Program the car to go backwards for 5 seconds. • What SEND command will we use? SEND ({100,500}) (c) MathScience Innovation Center

  18. Editing the Program • Press PGRM. • Scroll over to EDIT. • Scroll down to CAR. • Press ENTER. • Scroll down to theappropriate line. • If you want to add to the program, go to the blank line with a colon at the beginning. (c) MathScience Innovation Center

  19. Entering Commands • Press the PRGM button again. • Scroll over to I/O, but do not press enter yet. (c) MathScience Innovation Center

  20. y • Scroll up to B: which is the Send command and press ENTER. • Enter the command to move the car, {100,500}). • The first parenthesis is already there, but you enter the braces and the parenthesis at the end. • Press ENTER. (c) MathScience Innovation Center

  21. Press the PRGM key again and scroll over to I/O again. Scroll up to A: which is the Get command and press ENTER. Press the ALPHA key. Find the green R above the “times” key and press that key. Close parentheses and press ENTER. Press 2nd Quit to leave the program. (c) MathScience Innovation Center

  22. Running the Program • Press the PRGM button. • The cursor should be on EXEC. • Scroll to CAR and press ENTER. • Press ENTER a second time. (c) MathScience Innovation Center

  23. Displaying the Time • Open the CAR program through EDIT. • Press PGRM, scroll over to I/O, scroll down to 3: which is the Disp command, and press ENTER. • Press ALPHA and then R. Now when the program is run, the number of centiseconds that the car ran is displayed on the screen. (c) MathScience Innovation Center

  24. Moving Until the Bumper Hits • If you program the car to move until the bumper hits, you do not need to enter a time. • Example: Send({222}).This will send the car forward until the bumper hits some object. • If you include a Disp command, the screen will display the time the car ran in centiseconds. (c) MathScience Innovation Center

  25. Programming the Robot to Turn • Program the car so that one wheel turns while the other wheel has no motion or goes backwards. • Example: Send({112,95})This command will turn the car to the left for 95 centiseconds, which is close to a 90˚ turn. (c) MathScience Innovation Center

  26. How Will the Robot Move? Tell how each command will cause the robot to move. 1. Send({100,700}) Backwards for 7 s. 2. Send({222}) Forwards until the car bumps. 3. Send({322,1000}) Forwards for 10 s or until car bumps. 4. Send({121,90}) Turn to the right for 90 cs. 5. Send({102,45}) Turn to the left for 45 cs. 6. Send({112,125}) Turn to the left for 125 cs. (c) MathScience Innovation Center

  27. What Affects Turning? • For which command will the car turn further? • Send({120,90}) or Send({121,90}) • Why do you think so? • Give two commands that will cause the car to turn 90˚ to the right. • Give two commands that will cause it to turn 180˚ to the right. (c) MathScience Innovation Center

  28. Answers • Send({120,90}) will turn the car further. • In Send({121,90}) the right wheel has no motion while the left wheel is moving forward, but in Send({120, 90}) the right wheel is moving backward while the left wheel is moving forward. This helps to accelerate the turning. In fact, it cuts the time roughly in half. (c) MathScience Innovation Center

  29. Answers • To turn 90˚: • Send({121,95}) • Send({120,47.5}) • To turn 180˚: • Send({121,190}) • Send({120,95}) (c) MathScience Innovation Center

More Related