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