-
Notifications
You must be signed in to change notification settings - Fork 27
CW Getting Started
In this quick tutorial we will explain how to use the TLE5012B shield together with the Cypress WICED SDK, compile the provided example, and execute it.
Name | Picture |
---|---|
CYW943907AEVAL1F Evaluation Kit | |
TLE5012B | |
a Magnet | |
Micro-USB to USB A cable | use the cable included into the CYW943907AEVAL1F Evaluation Kit |
- WICED Studio
- TLE5012B (v3.0.0 or higher)
- for Windows: PuTTY Serial Terminal
- for Linux: miniCom
- this library (Installed with WICED SDK)
-
install WICED Studio. Download the software and follow the instructions in the following website. Registration is required.
-
for Windows install PuTTY. Downloadable from the official website or use an other sufficient terminal under your system.
-
for Linux install miniCom. Use your system installer (apt, apt-get, pkcon, zypper or similar). You can also use any other similar software.
-
install the TLE5012B library. Follow the steps in the WICED Lib Installation section.
The TLE5012B needs to be connected to the mcu, so see into TLE5012B manual for the chip pin layout. Alternatively you can also use a breakout board from a Sens2go kit. Then, simply connect it to the computer with the USB cable. If you are using the Cypress 43xxx boards. See also the trouble shooting guide.
With the hardware connected, the software installed, and the several bugs fixing changes made to the SDK, the example can be finally built and run:
-
Example sensorType
Open the ifx example (apps/ifx/TLE5012B/sensorType).
-
Terminal output
Open the PuTTY serial terminal with 115200 baud, 8-N-1, and the appropriate COM port (or tty device).
You will get the bit setting of all of the sensor registers, the default interface type and the setting of some main DSP registers. This information is important if you want to know in which range your TLE5012B sensor is working at best. This programm will only fetch a senseful output if a magnetic field is near the sensor. Otherwise the checkerror is set and no output will be generated.
-
WICED make target
Create target "ifx.TLE5012B.sensorType-CYW943907AEVAL1F download run" and click on it.
The terminal will soon prompt the TLE5012B ready message and prints out the next operation on the motor. If everything is connected, the motor should run up and down, forward and backward (if capable of).
-
Example readAngleValueProcessing
Open the ifx example (apps/ifx/TLE5012B/readAngleValueProcessing) and run it. It will constantly readout the angle value. If you know use you magnet in front of the sensor and turn it, you can see how the value are changing.
Library Architecture
TLE5012B API
TLE5012B Register API
PAL Interface
Source Tree Structure
Preprocessor Configuration
Porting Guide
Doxygen Docs
Arduino
- Getting Started
- Lib Installation
- Arduino API
- PlatformIO
Cypress WICED
- Getting Started
- Lib Installation
- WICED API
- Troubleshooting Guide