Component: Accel / Gyro 6-Axis (ICM-20689) (Movement Orientation)

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.1
Category Movement Orientation


Accel / Gyro 6-Axis (ICM-20689) component

ICM-20689 Combined 6-Axis Accelerometer and Gyroscope sensors. Useful for working out data such as Pitch and Roll. Can be combined with a Magnetometer to also provide Yaw.

Version information

Library Version, Component Version, Date, Author, Info


Detailed description

No detailed description exists yet for this component

Examples

No additional examples






Macro reference

GetAccelReading

Fc9-comp-macro.png GetAccelReading
Collects one of the accelerometer readings from the last sample. 
Fc9-u8-icon.png - BYTE Axis
0=X, 1=Y, 2=Z 
Fc9-s16-icon.png - INT Return


GetAccelReadingReal

Fc9-comp-macro.png GetAccelReadingReal
Collects one of the accelerometer readings from the last sample in G. 
Fc9-u8-icon.png - BYTE Axis
0=X, 1=Y, 2=Z 
Fc9-f32-icon.png - FLOAT Return


GetGyroReadingReal

Fc9-comp-macro.png GetGyroReadingReal
Collects one of the gyroscope readings from the last sample in degrees/s. 
Fc9-u8-icon.png - BYTE Axis
0=X, 1=Y, 2=Z 
Fc9-f32-icon.png - FLOAT Return


GetGyroReadng

Fc9-comp-macro.png GetGyroReadng
Collects one of the gyroscope readings from the last sample. 
Fc9-u8-icon.png - BYTE Axis
0=X, 1=Y, 2=Z 
Fc9-s16-icon.png - INT Return


GetTempReadingInt

Fc9-comp-macro.png GetTempReadingInt
Collects the temperature reading in degrees C as an integer value. 
Fc9-s16-icon.png - INT Return


GetTempReadingReal

Fc9-comp-macro.png GetTempReadingReal
Collects the temperature reading in degrees C as a floating point value. 
Fc9-f32-icon.png - FLOAT Return


Initialise

Fc9-comp-macro.png Initialise
Startup the I2C bus and configure the device. Returns 0 if the device is ok and 255 if the device is not responding correctly. 
Fc9-u8-icon.png - BYTE Return


ReadRegister

Fc9-comp-macro.png ReadRegister
Reads the value from one of the registers onboard the device. 
Fc9-u8-icon.png - BYTE Address
 
Fc9-u8-icon.png - BYTE Return


SampleDevice

Fc9-comp-macro.png SampleDevice
Collects the accelerometer, gyro and temperature readings from the device, 
Fc9-void-icon.png - VOID Return


WriteRegister

Fc9-comp-macro.png WriteRegister
Sets the value of one of the registers on the device. 
Fc9-u8-icon.png - BYTE Address
 
Fc9-u8-icon.png - BYTE Value
 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Device Specific
Fc9-type-16-icon.png Address Bit AD0
 
Fc9-type-16-icon.png Gyro Range
 
Fc9-type-16-icon.png Accel Range
 
Fc9-conn-icon.png Connections
Fc9-type-16-icon.png Channel
Channel selection 
Fc9-type-16-icon.png Baud Select
Baud rate option selector 
Fc9-type-14-icon.png Baud Rate
Baud rate to be used 
Fc9-type-5-icon.png SDA
Pin used for SDA (data signal) 
Fc9-type-5-icon.png SCL
Pin used for SCL (clock signal) 
Fc9-type-7-icon.png 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.  
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Simulate Comms
 

Component Source Code

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

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