O'Reilly logo

Basic Robot Building With LEGO Mindstorms NXT 2.0 by John Baichtal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8. Advanced Programming

In this chapter, we learn a bit more about Mindstorms programming and how it works. First and foremost, we explore data wires, NXT-G’s on-screen representation of the flow of data (see Figure 8.1). When one programming block needs to send information to another block, it uses data wires.

Image

Figure 8.1. Look complicated? Let’s learn more about programming.

Wires are the key to turning an otherwise blah program into a sophisticated and responsive one that can pull in data from its sensors and use that data to adjust the behaviors of various blocks. Learning about wires is one of the keys to advanced programming!

Tip: There’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required