A brief introduction tutorial part 2 duration.
Nxt compass sensor tutorial.
Using nxt components with a micro controller.
To use the compass sensor from nxt g an additional piece of software needs to have been added to your computer.
I think this is a limit of the nxt g interface not the sensor itself.
But if you are using a port splitter or a remote nxt or rcx it may be of interest.
Put a compass equiped ro bot on a turntable and spin the turntable.
It needs a hitechnic or mindsensors compass sensor plugged in to one of the sensor ports.
The current heading is calculated to the nearest 1 and refreshed 100 times per second.
The nxt compass sensor contains a digital magnetic compass that measures the earth s magnetic field and calculates a heading angle.
Some of these movies have exercises directly under them.
This tutorial for lego mindstorms nxt is divided in two sections.
Program using labview lego.
The compasspilot is an extension of the differentialpilot class.
The compass sensor connects to an nxt sensor port using a standard nxt wire and uses the digital i2c communications protocol.
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.
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.
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.
At brickfest there was a wonderful demo of the compass sensors.
The nxt sensor ports support three different types of sensor.
The compass sensor connects to an nxt sensor port using a standard nxt wire and uses the digital i2c communications protocol.
In the picture to the left you can see the compass sensor is mounted high well above both the motors and computer brick.
Using hitech compass sensor.
The essentials are things every nxt programmer should know.
Using the hitechnic compass sensor with nxt g.
Since the us sensor block returns only a single byte the sensor returns the heading angle divided by two currently.
Programming the nxt compass sensor to point in the right direction.
Chad cardwell 414 242 views.
The current heading is calculated to the nearest 1 and refreshed 100 times per second.