The example is meant to help you to understand how the gripper can be programmed and how you can communicate, with the motor controller (IFX007T Shield 2Go), the angle sensor (TLE5012B E1000) and the 3D Magnetic Sensor. It's not mandatory to run the example or to follow the same approach, but it is recommended that you can understand the whole system and also FOC. Feel free to refer to the documention pages linked below and follow a different approach.
Please start by installing XMC for Arduino and all the requiered libraries.
Follow the instructions from this website and make sure to use the alternative installation link provided here: https://github.com/LinjingZhang/XMC-for-Arduino/releases/download/V3.5.3-beta/package_infineon_index.json
The Infineon TLE5012B E1000 angle sensor is used to get the postion from the BLDC motor. A diametrically magnet is attached to the motor, so the we get the postion from the motor. You can find the Arduino library manager by looking for "XENSIV™ Angle Sensor TLx5012B".
The Infineon 3D Magnetic Sensor messures the magnetic field in 3 directions (X, Y and Z). You can find it in the Arduino library manager by looking for "XENSIV™ 3D Magnetic Sensor TLx493D".
The [Simple FOC library] (https://docs.simplefoc.com)(Simple Field Oriented Control) is an open-source Arduino-compatible library designed to make it easy to control BLDC and PMSM motors using Field Oriented Control (FOC).
You can find it in the Arduino library manager by looking for "SimpleFOC".
Afterwards you can clone this git repo:
git clone https://github.com/Infineon/hackathon
Now that you have the example on your computer you can open it in the Arduino IDE (it's located in examples/adaptiveGripper/torque_control/
).
Afterwards, install the following files in you SimpleFOC library folder:
"TLE5012Sensor.h, TLE5012Sensor.cpp".
Then you can connected the gripper to your computer and selected the right board (XMC4700 Relax Kit) and serial port.
Now, you can compile & upload the example.
Of course this is only an example to undestand how everything works - So now it is your task to grasp every object :)
And if you have questions or a problem just come to us, we may help you or just follow this quote: "If there is no path before you, create your own." (Quote: Star Wars the Clone Wars: Season 7, Episode 5 – Gone with a Trace)
- XMC for Arduino
- XMC for Arduino docs
- 3D Magnetic Arduino library on GitHub
- 3D Magnetic Arduino library docs
- XENSIV™ TLx5012B Angle Sensor Arduino Library
- TLE5012B E1000
- Simple FOC Arduino library on Github
- Simple FOC Arduino library docs
- Infineon Team on Hacster.io
Eric (Embedded Systems Engineer)
Linjing (Embedded Software Engineer)
Please open an issue in this repository or just talk to us at the venue.