Programming

Debug logging library in NXC

Debug logging library in NXC

One of the biggest challenges developing programs on the NXT is fixing them when they go wrong. The NXT has a small screen with only 8 lines of text displayed. It’s difficult to know what is causing a program to fail, and to have a record of what a program did. I created this logging(…)

More...

leJOS driver for the Dexter dGPS sensor

leJOS driver for the Dexter dGPS sensor

The Dexter Industries dGPS device provides the NXT with access to a real-time GPS sensor. The dGPS is a very useful device is you plan to do any mobile robotics that involve navigation and path-planning. Not only can it tell your robot where it is, but it will also give the direction of travel, speed(…)

More...

Compile LPub4 using XCode on Mac OS X

Compile LPub4 using XCode on Mac OS X

LPub4 is the best (and almost only) tool for generating building instructions for LEGO models. Developed over the years by Kevin Clague it has been used to generate the building instructions for numerous books. I use it for all of my own work. This tutorial will show you how to build the latest release of(…)

More...

Using Xcode to write NXC

Using Xcode to write NXC

A poster on the nxtasy.org forum asked about using NXC in Xcode. I wrote this tutorial about how to get NXC to work in Xcode 3. There is a similar tutorial available for NQC in Xcode, which is the inspiration for this tutorial. NXC is simply C code, so Xcode provides a syntax-aware editor that allows you to write(…)

More...

Control NRLink from pbLua on the NXT

My first robot using pbLua involved Power Function motors, so I had to devise Lua code to communicate with the Mindsensors NRLink device. The pbLua homepage has a tutorial on how to communicate with I2C devices which provided a starting point for my code. Ralph has also written a tutorial to control the HiTechnic IRLink, the NRLink . After(…)

More...

pbLua on Mac OS X

I’m always keen to learn new programming languages and keep myself “fresh” when it comes to programming concepts. I’ve been working for a while in RobotC and found it a powerful alternative to the standard LEGO NXT-G IDE. However while C as a programming environment has many benefits (raw speed and low-level bit manipulation are two immediate(…)

More...