Jump to content

Component: Magnetic Encoder (AS5600) (Magnetic): Difference between revisions

From Flowcode Help
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder""
Line 109: Line 109:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Settings
| width="90%" class="mtx-class-propfolder" | Settings
|-
|-
|-
|-
Line 138: Line 138:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | I2C Settings
| width="90%" class="mtx-class-propfolder" | I2C Settings
|-
|-
|-
|-
Line 157: Line 157:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| width="90%" class="mtx-class-propfolder" | Connections
|-
|-
|-
|-
Line 181: Line 181:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-
|-
|-

Revision as of 14:36, 13 July 2026

Author Matrix TSL
Version 1.0
Category Magnetic


Magnetic Encoder (AS5600) component

A precise magnetic encoder featuring 12-bit resolution and interfaced via an I2C bus.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

GetStatus

GetStatus
Reads the status register testing for if the magnet is detected and in range. Bit2 = Magnet Detected, Bit1 = Magnet too weak, Bit0 = Magnet too strong Ideally the best response is 4, magnet detected and in range.  
- BYTE Return


Initialise

Initialise
Configures the I2C bus ready for communications and applies the settings defined in the properties. Also sets the default power level to always on. Returns 1 if the module is detected 0 if the module is not found 
- BYTE Return


ReadAngle

ReadAngle
Returns the angle as a floating point value between 0 and 360 degrees.  
- FLOAT Return


ReadRawAngle

ReadRawAngle
Returns the angle as a raw value between 0 and 4095 representing 0 to 360 degrees.  
- UINT Return


SetPowerMode

SetPowerMode
Configures the power mode of the device. 
- BYTE Mode
0=Always On, 1=5ms Polling, 2=20ms Polling, 3=100ms Polling 
- VOID Return


Property reference

Properties
Settings
Hysteresis
 
Output Stage
Controls the functionality of the OUT pin. 
Slow Filter
 
Fast Filter Threshold
 
Watchdog
 
I2C Settings
Channel
Channel selection 
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
Connections
SDA
Pin used for SDA (data signal) 
SDA Remap Pin
 
SCL
Pin used for SCL (clock signal) 
SCL Remap Pin
 
Simulation
Sim Comms
 
Scope Traces
Selects if the scope traces are automatically generated or not 
Console Data
Selects if the console data is automatically generated or not 
API
 

Component Source Code

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

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