background image

The LEGO MINDSTORMS NXT Zoo!

 © Fay Rhodes, 

isbn

 978-1-59327-170-1. Available at fine bookstores everywhere!

Place the sensor between the two bent beams. Thread the axle through the 

first hole in the sensor; insert a long pin into the second or third hole.

wiring connections

Connect the motors that drive the legs to output ports B and C. Connect the Ultra-
sonic Sensor to input port 4.

programming spiderbot

Let’s write a program to make the spider move around the room while avoiding 
objects in front of it.

29

Figure 5-2: First, we’ll place a Loop block on the 

beam and configure it as a Forever loop. This loop 

will contain all the action steps for the spider.

Содержание LEGO MINDSTORMS NXT ZOO!

Страница 1: ...THE LEGO MINDSTORMS NXT ZOO an unofficial kid friendly guide to building robotic animals with LEGO MINDSTORMS NXT fay rhodes...

Страница 2: ......

Страница 3: ...r Spiderbot is a walking eight legged spider that avoids objects turns and runs in forward or reverse Figure 5 1 Spiderbot The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fi...

Страница 4: ...building spiderbot The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere...

Страница 5: ...1 2 The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere...

Страница 6: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 3 4...

Страница 7: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere Place two beams on the long pins at the bottom 5 6...

Страница 8: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 7 flip 8...

Страница 9: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere Place two beams on the long pins at the bottom 9 10...

Страница 10: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere Attach 7 axles to the motors 11 12 flip bottom view...

Страница 11: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 13 14 flip...

Страница 12: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 15 16...

Страница 13: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 17 18 flip...

Страница 14: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 19 20...

Страница 15: ...1 Available at fine bookstores everywhere Note that the pins are placed differently on this side than the other side NOTE These pictures are only a guide You might need to rearrange the place ment of...

Страница 16: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 23...

Страница 17: ...27 170 1 Available at fine bookstores everywhere In step 24 insert an axle pin any color at the end of the beam Turn it at a right angle to slide it through the supporting shoulder beam The pin will k...

Страница 18: ...iece pause now to test your robot s legs Now is the best time to test Spiderbot s legs Turn the spider on its back and remove the driving gears the small gears on the motor axles Now you can spin all...

Страница 19: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 26...

Страница 20: ...MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere Step 28 shows you where these parts will go Wait to assemble them with the Ultrasonic Sensor in the next st...

Страница 21: ...e second or third hole wiring connections Connect the motors that drive the legs to output ports B and C Connect the Ultra sonic Sensor to input port 4 programming spiderbot Let s write a program to m...

Страница 22: ...the motors in the program Figure 5 3 Place another Loop block inside that loop but this time configure it as shown here an Ultrasonic Sensor looking for a distance of less than 30 centimeters Input p...

Страница 23: ...he expansion trick from Chapter 4 pages 80 81 Add a Move block to the loop and click the lower left edge of the block to open the data hub The data hub is the bar hanging down from the Move block Figu...

Страница 24: ...1 Available at fine bookstores everywhere To make the robot back up we ll add two Motor blocks Figure 5 7 Delete the Move block Settings for the C Motor block are shown here Figure 5 8 First add a Mot...

Страница 25: ...erywhere Now we ll place the final Motor blocks This time we want the spider to turn so we ll direct both motors to turn in the same direction Figure 5 9 Add a Motor block under the B Motor block Use...

Страница 26: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere Figure 5 11 Place the second Motor block below the B Motor block and configure it as shown here...

Страница 27: ...and readjust the spider after step 25 you should be ready to download the programs and get your spider crawling NOTE If your spider moves in the wrong direction when you start it either switch the di...

Страница 28: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere...

Отзывы: