image

After a prolonged hibernation period, the Mindsqualls project is back from the dead and version 2.0 has been released. I was using an older version in my super secret Kinect project, so it is nice to see that is being maintained again.

Mindsqualls is one of the easiest to use .Net library for controlling your NXT using C# or VB.Net. Just to show you how easy, here’s a snippet of code taken from the project’s website:

// Create a NXT brick,
// and use Bluetooth on COM40 to communicate with it.
NxtBrick brick = new NxtBrick(NxtCommLinkType.Bluetooth, 40);

// Attach motors to port B and C on the NXT.
brick.MotorB = new NxtMotor();
brick.MotorC = new NxtMotor();

// Connect to the NXT.
brick.Connect();

// Run the motors at 75% power, for a 3600 degree run.
brick.MotorB.Run(75, 3600);
brick.MotorC.Run(75, 3600);

// Disconnect from the NXT.
brick.Disconnect();

So if you’re using Visual Studio and would love to control your NXTs via your favourite programming language, I can really recommend this framework.

Tags