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!
Страница 2: ......
Страница 12: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 15 16...
Страница 14: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 19 20...
Страница 16: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 23...
Страница 19: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere 26...
Страница 28: ...The LEGO MINDSTORMS NXT Zoo Fay Rhodes isbn 978 1 59327 170 1 Available at fine bookstores everywhere...