Difference between revisions of "Component: Magnetic Encoder (AS5600) (Magnetic)"
From Flowcode Help
Jump to navigationJump to search|  (Created page with "{| style="width:50%"  |-  | width="20%" style="color:gray;" | Author  | Matrix TSL  |-  | width="20%" style="color:gray;" | Version  | 1.0  |-  | width="20%" style="color:gray...") | |||
| Line 31: | Line 31: | ||
| | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetStatus''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetStatus''' | ||
| |- | |- | ||
| − | | colspan="2" | Reads the status register testing for if the magnet is detected and in range.  | + | | colspan="2" | 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.   | 
| |- | |- | ||
| |- | |- | ||
Latest revision as of 11:42, 26 November 2024
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | Magnetic | 
Contents
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
Initialise
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
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






