NXT Gyro Sensor
Measure rate of rotation of NXT gyro sensor connected to EV3 brick
Add-On Required: This feature requires the Simulink Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Libraries:
Simulink Support Package for LEGO MINDSTORMS EV3 Hardware /
NXT Sensors
Description
Use the NXT Gyro Sensor block to measure rate of rotation (yaw) along the single axis of the HiTechnic NXT Gyro Sensor (NGY1044) connected to LEGO® MINDSTORMS® EV3 brick. This yaw is indicated by a circle above the vertical axis in the image on the left, and by a double-arrow in the image on the right. Before using this sensor for precise measurements, use the offset value to remove small positive or negative bias in the output values, as described in the example below. For more information on NXT Gyro Sensor NGY1044, refer to its datasheet.
During simulations without hardware, this block emits zeros. See Block Produces Zeros or Does Nothing in Simulation.
Examples
Ports
Output
Parameters
Version History
Introduced in R2012a
See Also
Display | Run Model on EV3 Hardware | Open Block Library for LEGO MINDSTORMS EV3 Hardware