The nxt sensor ports support three different types of sensor.
Nxt compass sensor tutorial.
The nxt compass sensor contains a digital magnetic compass that measures the earth s magnetic field and calculates a heading angle.
If you are using a sensor connected directly to a nxt sensor port you can use the sensorport class and you can probably skip this section.
This tutorial for lego mindstorms nxt is divided in two sections.
At brickfest there was a wonderful demo of the compass sensors.
Put a compass equiped ro bot on a turntable and spin the turntable.
The compasspilot is an extension of the differentialpilot class.
But if you are using a port splitter or a remote nxt or rcx it may be of interest.
Programming the nxt compass sensor to point in the right direction.
This is a guide to using the motors and sensors from the lego nxt set with a parallax basic stamp ii or bs2.
Using hitech compass sensor.
The compass sensor connects to an nxt sensor port using a standard nxt wire and uses the digital i2c communications protocol.
Using the hitechnic compass sensor with nxt g.
It needs a hitechnic or mindsensors compass sensor plugged in to one of the sensor ports.
Chad cardwell 414 242 views.
In the picture to the left you can see the compass sensor is mounted high well above both the motors and computer brick.
To use the compass sensor from nxt g an additional piece of software needs to have been added to your computer.
Some of these movies have exercises directly under them.
A brief introduction tutorial part 2 duration.
The compass sensor connects to an nxt sensor port using a standard nxt wire and uses the digital i2c communications protocol.
The compass sensor is housed in a standard mindstorms sensor housing to match the other mindstorms elements.
However rather than just providing schematics and sample code for the bs2 i ll be providing some theory on how the sensors work as well.
Using nxt components with a micro controller.
The essentials are things every nxt programmer should know.
Program using labview lego.
It s important to do these exercises not just assume you get it the advanced section is for reference purposes.
It implements the same methods but uses a compass sensor to ensure that the pilot does not deviate from the correct angle of robot heading.
The current heading is calculated to the nearest 1 and refreshed 100 times per second.