Difference between revisions of "Component: Gyroscope (EBM009) (EBM Modules)"
From Flowcode Help
Jump to navigationJump to search(2 intermediate revisions by the same user not shown) | |||
Line 78: | Line 78: | ||
{{Fcfile|EBM009 - Test Program.fcfx|EBM009 Example}} | {{Fcfile|EBM009 - Test Program.fcfx|EBM009 Example}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 86: | Line 92: | ||
==Macro reference== | ==Macro reference== | ||
− | === | + | ===GetX=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetX''' |
|- | |- | ||
− | | colspan="2" | Returns the previously sampled | + | | colspan="2" | Returns the previously sampled X axis data |
|- | |- | ||
|- | |- | ||
Line 114: | Line 120: | ||
− | === | + | ===GetZ=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetZ''' |
|- | |- | ||
− | | colspan="2" | Returns the previously sampled | + | | colspan="2" | Returns the previously sampled Z axis data |
|- | |- | ||
|- | |- | ||
Line 128: | Line 134: | ||
− | === | + | ===Initialise=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Initialise the component. Returns 0 if successful |
|- | |- | ||
|- | |- | ||
Line 155: | Line 161: | ||
|- | |- | ||
| colspan="2" | address of the register to be read | | colspan="2" | address of the register to be read | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===SampleDevice=== | ||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleDevice''' | ||
+ | |- | ||
+ | | colspan="2" | Reads the Axis data from the device. Returns 0 if successful | ||
+ | |- | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
Line 183: | Line 203: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Latest revision as of 13:09, 7 February 2023
Author | Matrix TSL |
Version | 2.0 |
Category | EBM Modules |
Contents
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.
Macro reference
GetX
![]() |
GetX |
Returns the previously sampled X axis data | |
![]() |
Return |
GetY
![]() |
GetY |
Returns the previously sampled Y axis data | |
![]() |
Return |
GetZ
![]() |
GetZ |
Returns the previously sampled Z axis data | |
![]() |
Return |
Initialise
![]() |
Initialise |
Initialise the component. Returns 0 if successful | |
![]() |
Return |
ReadRegister
![]() |
ReadRegister |
Read the data byte at the given address of the device | |
![]() |
Reg |
address of the register to be read | |
![]() |
Return |
SampleDevice
![]() |
SampleDevice |
Reads the Axis data from the device. Returns 0 if successful | |
![]() |
Return |
WriteRegister