Jump to content

Component: Gyroscope (EBM009) (EBM Modules): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 78: Line 78:


{{Fcfile|EBM009 - Test Program.fcfx|EBM009 Example}}
{{Fcfile|EBM009 - Test Program.fcfx|EBM009 Example}}




Line 84: Line 86:
==Macro reference==
==Macro reference==


===GetZ===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
Line 97: Line 100:




===GetY===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
Line 110: Line 114:




===GetX===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
Line 123: Line 128:




===SampleDevice===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
Line 136: Line 142:




===ReadRegister===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
Line 154: Line 161:




===WriteRegister===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-
Line 177: Line 185:




===Initialise===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-
|-

Revision as of 11:49, 3 February 2023

Author Matrix TSL
Version 2.0
Category EBM Modules


Gyroscope component

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

Component Source Code

Please click here to download the component source project: FC_Comp_Source_EBM009v1.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_EBM009v1.fcfx

Detailed description

No detailed description exists yet for this component

Examples

Sample program demonstrating the EBM009 Gyroscope Sensor.

The program plots X, Y and Z data onto the LCD screen.

EBM009 Example




Macro reference

GetZ

GetZ
Returns the previously sampled Z axis data 
- INT Return


GetY

GetY
Returns the previously sampled Y axis data 
- INT Return


GetX

GetX
Returns the previously sampled X axis data 
- INT Return


SampleDevice

SampleDevice
Reads the Axis data from the device. Returns 0 if successful 
- BYTE Return


ReadRegister

ReadRegister
Read the data byte at the given address of the device 
- BYTE Reg
address of the register to be read 
- BYTE Return


WriteRegister

WriteRegister
Writes the data byte to the given address of the device. Returns 0 if successful 
- BYTE Reg
address of register to be written with data byte 
- BYTE data
data byte to be written to device register 
- BYTE Return


Initialise

Initialise
Initialise the component. Returns 0 if successful 
- BYTE Return



Property reference

Properties
Output Data Rate
 
Full Scale Selection
Specifies the maximum angular speed which the sensor can measure in degrees per second 
X Axis
 
Y Axis
 
Z Axis
 
Label
 
Connection
Channel
Channel selection 
SDA
Pin used for SDA (data signal) 
SDA Remap Pin
 
SCL
Pin used for SCL (clock signal) 
SCL Remap Pin
 
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
Stop Delay
On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications.  
Simulation
Simulate Comms