24
8/5/2015 NXT Pitching Machine and Batter http://www.nxtprograms.com/pitcher_and_batter/steps.html 1/24 Fun Projects for your LEGO ® MINDSTORMS ® NXT! Home Projects Help Contacts Pitching Machine and Batter Building : Program : Building Instructions 17 Start by building the Baseball Batter . Click the picture for building instructions.

NXT Pitching Machine and Batter.pdf

Embed Size (px)

Citation preview

Page 1: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 1/24

Fun Projects for your LEGO® MINDSTORMS® NXT!

Home     Projects     Help     Contacts

Pitching Machine and Batter Building:

Program:

Building Instructions

1­7Start by building the Baseball Batter.  Click the picture for building instructions.

 

Page 2: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 2/24

8

9

Page 3: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 3/24

Page 4: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 4/24

10

Page 5: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 5/24

11

Page 6: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 6/24

Page 7: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 7/24

Page 8: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 8/24

12

Page 9: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 9/24

Page 10: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 10/24

13

Page 11: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 11/24

14

Page 12: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 12/24

Page 13: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 13/24

Page 14: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 14/24

15

Page 15: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 15/24

Page 16: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 16/24

16

Page 17: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 17/24

Page 18: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 18/24

Page 19: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 19/24

Page 20: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 20/24

17

Page 21: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 21/24

18

Page 22: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 22/24

Page 23: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 23/24

19Use the two longest wires to connect the two motors to ports B and C on the NXT as shown below (do notcross the wires).

Pitching Machine and Batter ProgrammingUse the program Pitch_and_Bat for your Pitching Machine and Batter.  This program is just like theBaseball_Bat program for the Baseball Batter project with one Move block added to spin the wheels of thepitching machine.

 

How to Use the Pitching Machine and Batter

1.  Arrange the pitching machine and batter on the floor as shown in the last picture above.  The ballsshould be aimed at the ultrasonic sensor.

2.  Run the Pitch_and_Bat program.

3.  Place one of the plastic balls that come with the NXT set on the back end of the ramp.  The ramp isslightly downhill towards the wheels, so the ball should roll slowly towards the spinning wheels andthen get launched through them towards the batter.  When the batter's ultrasonic sensor sees the ballat the programmed distance (14 inches), it will swing to hit the ball.

4.  If you have problems with the ball running into the long wires, you can put a piece of paper over themas shown below.

Page 24: NXT Pitching Machine and Batter.pdf

8/5/2015 NXT Pitching Machine and Batter

http://www.nxtprograms.com/pitcher_and_batter/steps.html 24/24

 

ChallengesExperiment with different distances and angles for the pitching machine to see how it affects the hit. Unfortunately you are limited by the length of the wires, but see how you can make the best of it. For a building challenge, try separating the NXT brick from the batter and placing it somewhere inbetween the pitching machine and the batter to make better use of the available wire lengths.

Even with the pitching machine and batter in the same place, not all balls will be hit in the samedirection.  For example, sometimes the hit will come back and hit the pitching machine, butsometimes it will go to one side and make it past.  In fact, sometimes the results are not even closeto being the same.  If the motors and the program are doing exactly the same thing every time,what do think causes different balls to be hit differently?  Well, if you like reading complicatedarticles with lots of big words, try reading about Chaos Theory.  If you think baseball looks randomwhen people play it, just think, even robots can't play it consistently!

Get nxtprograms.com on CD!Click here for info

Home     Projects     Help     Contacts

 

Copyright © 2007­2011 by Dave Parker.  All rights reserved.  All project designs, images, and programs are protected by copyright.  Please see the usage policy.