Component: Gyroscope (Inputs: Sensors)

From Flowcode Help
Jump to navigationJump to search


Author Matrix TSL
Version 1.0 (Release)
Category Inputs: Sensors


Image Gyroscope component

Interface to the L3G4200D three axis digital gyroscope. Panel GUI can be used to simulate incoming data for testing.

Examples

Sample program demonstrating the EBM009 Gyroscope Sensor.

The program plots X, Y and Z data onto the LCD screen. FC6 Icon.png EBM009 Example

Downloadable macro reference

GetZ

Returns the previously sampled Z axis data

Parameters

This macro has no parameters


Return value

INT


GetY

Returns the previously sampled Y axis data

Parameters

This macro has no parameters


Return value

INT


GetX

Returns the previously sampled X axis data

Parameters

This macro has no parameters


Return value

INT


SampleDevice

Reads the Axis data from the device. Returns 0 if successful

Parameters

This macro has no parameters


Return value

BYTE


ReadRegister

Read the data byte at the given address of the device

Parameters

BYTE address
address of the register to be read


Return value

BYTE


WriteRegister

Writes the data byte to the given address of the device.

Returns 0 if successful

Parameters

BYTE address
address of register to be written with data byte
BYTE data
data byte to be written to device register


Return value

BYTE


Initialise

Initialise the component.

Returns 0 if successful

Parameters

This macro has no parameters


Return value

BYTE


Simulation macro reference

This component does not contain any simulation macros


Property reference

Output Data Rate

This property is of type Fixed list of ints and can be referenced with the variable name ODR.

No additional information


Full Scale Selection

This property is of type Fixed list of ints and can be referenced with the variable name FSS.

Specifies the maximum angular speed which the sensor can measure in degrees per second

X Axis

This property is of type Fixed list of ints and can be referenced with the variable name XEN.

No additional information


Y Axis

This property is of type Fixed list of ints and can be referenced with the variable name YEN.

No additional information


Z Axis

This property is of type Fixed list of ints and can be referenced with the variable name ZEN.

No additional information


Channel

This property is of type Fixed list of ints and can be referenced with the variable name CHANNEL.

No additional information


SDA

This property is of type Single digital pin and can be referenced with the variable name SDA.

No additional information


SCL

This property is of type Single digital pin and can be referenced with the variable name SCL.

No additional information


Label

This property is of type Line of text and can be referenced with the variable name label_text.

No additional information