Skip to Content
Winning LEGO MINDSTORMS Programming
book

Winning LEGO MINDSTORMS Programming

by James J. Trobaugh, Mannie Lowe
November 2012
Intermediate to advanced
252 pages
5h 49m
English
Apress

Overview

Winning LEGO MINDSTORMS Programming is your ticket to successfully programming for fun and competition with LEGO MINDSTORMS and the NXT-G programming language commonly used in FIRST LEGO League events. The book is a companion title to author James Trobaugh's acclaimed book on physical robot design, Winning Design!. This new book focuses squarely on the programming side of working with MINDSTORMS. Together the two books put you on a rock-solid foundation for creating with LEGO MINDSTORMS, whether for fun at home or in competition with a team.

Winning LEGO MINDSTORMS Programming sets the stage by emphasizing the importance of up front planning, and thinking about the challenge to be met. Learn to evaluate possible solutions by sanity-testing their logic before you put the effort into actually writing the code. Then choose your best option and write the code applying the techniques in this book. Take advantage of language features such as MyBlocks to enhance reliability and create easy-to-debug code. Manage your code as you change and improve it so that you can trace what you've done and fall back if needed. Avoid common programming pitfalls. Work powerfully with teammates to conquer competition challenges of all types.

  • Provides solid techniques similar to those used by professional programmers, and optimized for the LEGO MINDSTORMS platform.

  • Addresses key tasks important to competition such as line detection, line following, squaring of corners, motor stall detection, and more.

  • Compliments Winning Design! by tackling the programming side of competition.

  • What you'll learn

  • Write programs to give your team an edge in competition.

  • Avoid common programming pitfalls that can cost points.

  • Write well-planned code easily adapted as you refine your approach to a challenge.

  • Collaborate with teammates in presenting a clear understanding of your coding solution to competition judges.

  • Improve your ability to wield each of the MINDSTORM NXT sensors.

  • Explore tips & tricks that can be used in robot competitions, and for fun.

  • Plan ahead for debugging and troubleshooting.

  • Who this book is for

    Winning LEGO MINDSTORMS Programming is aimed at those wanting to improve their ability to create and deploy LEGO MINDSTORMS robots that are predictable and reliable at navigating competition challenges, and for fun at home.

    Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
    and much more.

    Read now

    Unlock full access

    More than 5,000 organizations count on O’Reilly

    AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

    QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
    Julian F.
    Head of Cybersecurity
    QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
    Addison B.
    Field Engineer
    QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
    Amir M.
    Data Platform Tech Lead
    QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
    Mark W.
    Embedded Software Engineer

    You might also like

    The Art of LEGO MINDSTORMS NXT-G Programming

    The Art of LEGO MINDSTORMS NXT-G Programming

    Terry Griffin

    Publisher Resources

    ISBN: 9781430245360Purchase book