TLE5012B  3.1.0
The TLE5012B is a pre-calibrated 360° angle sensor that detects the orientation of a magnetic field. The raw signals (sine and cosine) are digitally processed internally to calculate the angle orientation of the magnetic field (magnet).
readAngleValueProcessing.cpp File Reference
Include dependency graph for readAngleValueProcessing.cpp:

readAngleValueProcessing

reads angle values

Author
Infineon Technologies AG
Version
3.1.0

This is a fast running example to demonstrate the possible readout speed of the sensor for the angle. Depending on your microcontroller more or less speed on the serial port is possible. For reconfiguring of the SPI interface, have a look at the documentation.

Attention
Use together with the several processing scripts
We use standard WiCED output speed of 115200 baud. If you need more, than switch the output setting to 1000000 baud and a 10ms delay in the loop. You can set smaller values down to 1ms, but that will somehow overload the console log output.

SPDX-License-Identifier: MIT

Tle5012Wiced Tle5012Sensor = Tle5012Wiced()
 
errorTypes checkError = NO_ERROR
 
void setup ()
 
void loop ()
 
void application_start ()
 

Function Documentation

◆ setup()

void setup ( )
Here is the call graph for this function:

◆ loop()

void loop ( )
Here is the call graph for this function:

◆ application_start()

void application_start ( )
Here is the call graph for this function:

Variable Documentation

◆ Tle5012Sensor

Tle5012Wiced Tle5012Sensor = Tle5012Wiced()

◆ checkError

errorTypes checkError = NO_ERROR