-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Infineon/tle94112
Tle94112
- Loading branch information
Showing
24 changed files
with
11,400 additions
and
1,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
|
||
sudo: required | ||
|
||
branches: | ||
only: | ||
- master | ||
only: | ||
- tle94112 | ||
|
||
env: | ||
global: | ||
- USR_NAME="mhoechner" | ||
- USR_EMAIL="[email protected]" | ||
# new token needs to be generated & encrypted | ||
- secure: OLSYr2ioMsqS+l43+s+yzfaVeCTK0Z1ky+Tm31bHdU66Ahq8+ZiDNX4fVDuziJtuHJWR3pEmqnYdSqSqcuByObM+I7uW3RaV2fOAtvCnWQcar5jt0+TYHuuLbfLu7vsL6ntBkQJXWibLO3JlVFp8ZVNd33WUE0mrnNdR7xormwy6EV7Ry9X/j43G+zHGjAKXxcfWIKs279pHvhtye4Vhlg3U8MkEwlkgpGiMbpWmk5CaePTi82KuoIOAceVZ8ixssuqpt4DgCnl7m6t1D+8MnjXxPLISvOr0pHNHTJ+3/gv1dGUrxENyPiW9d1q8OnrKyD9CniqC6Rklj+g5mhR+v+FJvjfa2k85SXVvFYikkqUyXkIVZkJu+PxZX0mfY18SbI7GB8mOkjgcusI9KhzNhZJQxUzza/DBe2MOR72mHVdpHlsOtx/1PjaUjJtS6lFBBZw1gCKYsFkGU3UfY+Jr3yajU1veCICgde0gm3SfhCDsQVymi7hsfnbBj8YhrY1K5+YJ6JHk5Wu6x2SsT8Al2/YSZoDdUDCZZ8Y4WNO+ZY2vF0ZU3jOcK/JSuLV6W7VzXAhSaYHVAHq2fXNgW7EWkRaLeFGtjgwvZIkhQ1Mrsl6oObMJhFhaD6vP4MlwvTWKp0MB8NdFWsgR2ITU80sREp4RBzJVSQIvLiBCIwi0upY= | ||
- USR_NAME="Dr Olaf Filies (IFAG DES MDP PSA)" | ||
- USR_EMAIL="[email protected]" | ||
matrix: | ||
- PLATFORMIO_CI_SRC=examples/Control2Motors | ||
- PLATFORMIO_CI_SRC=examples/Control2Motors | ||
- PLATFORMIO_CI_SRC=examples/rampSpeedTest | ||
- PLATFORMIO_CI_SRC=examples/rampTest | ||
- PLATFORMIO_CI_SRC=examples/speedControl | ||
- PLATFORMIO_CI_SRC=examples/speedControll | ||
|
||
install: | ||
# build with stable core | ||
- pip install -U platformio | ||
- platformio platform install https://github.com/Infineon/platformio-infineonxmc.git | ||
- platformio platform install -f infineonxmc | ||
|
||
script: | ||
- platformio ci --lib="." --board=xmc1100_xmc2go --board=xmc1100_boot_kit --board=xmc1100_h_bridge2go --board=xmc1300_boot_kit --board=xmc4700_relax_kit --project-option="lib_deps=Wire" | ||
- platformio ci --lib="." --board=xmc1100_xmc2go --board=xmc1100_boot_kit --board=xmc4700_relax_kit --board=uno | ||
|
||
after_success: | ||
# only build once (after one job by checking id, however this does not work reliably) | ||
# - | | ||
# if [ $(($TRAVIS_JOB_ID - $TRAVIS_BUILD_ID)) -eq 2 ]; then | ||
# export REPO_NAME=${TRAVIS_REPO_SLUG#*/} | ||
# git clone https://github.com/Infineon/InfineonDoxyGenerator.git | ||
# cd well-automated-documentation/docs | ||
# # cd $TRAVIS_BUILD_DIR/docs | ||
# chmod +x publish_pdf.sh | ||
# ./publish_pdf.sh | ||
# fi | ||
- | | ||
if [ $(($TRAVIS_JOB_ID - $TRAVIS_BUILD_ID)) -eq 2 ]; then | ||
export REPO_NAME=${TRAVIS_REPO_SLUG#*/} | ||
#git clone https://github.com/Infineon/InfineonDoxyGenerator.git | ||
cd InfineonDoxyGenerator/docs | ||
chmod +x publish_pdf.sh | ||
./publish_pdf.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Examples2Go | ||
|
||
## List of examples | ||
To run this examples use either the Arduino IDE or something similar like the [PlatformIO](https://platformio.org/platformio-ide?utm_source=github&utm_medium=xmc-for-arduino) module for [code](https://code.visualstudio.com/) or [atom](https://atom.io/) | ||
* examples/Control2Motors/Control2Motors.ino | ||
* examples/rampSpeedTest/rampSpeedTest.ino | ||
* examples/rampTest/rampTest.ino | ||
* examples/speedControl/speedControl.ino | ||
|
||
## DIY-projects | ||
* there are two Lego robots using the TLE94112 shields for controlling motors. | ||
* a [Lego rama driving robot](https://www.infineon.com/cms/en/tools/landing/infineon-for-makers/diy-projects/) | ||
* a [Lego six axes robot](https://www.infineon.com/cms/en/tools/landing/infineon-for-makers/diy-projects/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Installation | ||
|
||
## Integration of Library | ||
Please download the required repository from GitHub by clicking on the following field in the latest [release](https://github.com/Infineon/DC-Motor-Control-TLE94112EL/releases) of this repository: | ||
|
||
![Download Library](https://raw.githubusercontent.com/infineon/assets/master/Pictures/Releases_Generic.jpg) | ||
|
||
To install the TLE94112 motor control library in the Arduino IDE, please go now to **Sketch** > **Include Library** > **Add .ZIP Library...** in | ||
the Arduino IDE and navigate to the downloaded .ZIP file of this repository. The library will be installed in your Arduino sketch folder | ||
in libraries and you can select as well as include this one to your project under **Sketch** > **Include Library** > **TLE94112**. | ||
|
||
![Install Library](https://raw.githubusercontent.com/infineon/assets/master/Pictures/Library_Install_ZIP.png) | ||
|
||
## Usage | ||
Please follow the example sketches in the /examples directory in this library to learn more about the usage of the library. | ||
For proper work of the TLE94112 the following tips may help: | ||
* the TLE94112 works properly in the range of min 5.5V to max 40V Vbat | ||
* the max current on one half bridge is 0.9 A, if you need more you have to cascade more half bridges, see [manual](https://www.infineon.com/dgdl/Infineon-TLE94112EL-DS-v01_00-EN.pdf?fileId=5546d462576f347501579a2795837d3e) and pin out picture | ||
* the shield is stackable if you change the 0 \Omega resistor from R7/R8. There is also a hack to stack a max number of three TLE94112 (please ask if you need this) | ||
* the first two ports can be directly used also for LEDs but with the help of right dimensioned resistors, any half bridge can be used | ||
for LEDs or other stuff falling in the voltage and current limits of the board | ||
* there is a handy [pin out picture](https://raw.githubusercontent.com/infineon/assets/master/Pictures/TLE94112_Arduino_Shield_Pin_out.png) | ||
<img src="https://raw.githubusercontent.com/infineon/assets/master/Pictures/TLE94112_Arduino_Shield_Pin_out.png" width=100%> | ||
|
||
## Installation of XMC | ||
If you use any Infineon XMC microcontroller like the XMC1100 Boot Kit or the XMC4700 Relax Kit, than you must also | ||
install the [XMC-for-Arduino library from here](https://github.com/Infineon/XMC-for-Arduino). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
################################################################################## | ||
# documentation build files | ||
# - generates the html doxygen documentation | ||
# needed software: | ||
# - graphviz dot | ||
# - doxygen 1.8.15 or higher | ||
|
||
# Directories | ||
SRC_DIR ?= ../ | ||
DOC_DIR ?= ./ | ||
DOC_IMG_DIR ?= ./img | ||
DOC_BUILD_DIR ?= ./ | ||
DOT_PATH ?= /usr/bin/dot | ||
# General settings | ||
DOXYFILE ?= doxyfile_html | ||
WORKING_DOXYFILE ?= temp_doxyfile | ||
PROJECT_LOGO ?= ./img/ifx_logo.png | ||
DOXYGEN_WARNING ?= warn.log | ||
|
||
# Tools | ||
CD ?= cd | ||
ECHO ?= echo | ||
DOXYGEN_ECHO ?= echo | ||
RM ?= rm | ||
RM_DIR ?= rm -rf | ||
COPY ?= cp | ||
DOXYGEN ?= ${DOXY_BIN_PATH}/doxygen | ||
|
||
html: | ||
@$(ECHO) Generating $@ | ||
@$(COPY) $(DOXYFILE) $(WORKING_DOXYFILE) | ||
@$(DOXYGEN_ECHO) >> $(WORKING_DOXYFILE) | ||
@$(DOXYGEN_ECHO) INPUT=$(SRC_DIR) >> $(WORKING_DOXYFILE) | ||
@$(DOXYGEN_ECHO) PROJECT_NAME= "Tle94112" >> $(WORKING_DOXYFILE) | ||
@$(DOXYGEN_ECHO) OUTPUT_DIRECTORY = $(DOC_BUILD_DIR) >> $(WORKING_DOXYFILE) | ||
@$(DOXYGEN_ECHO) PROJECT_LOGO = $(PROJECT_LOGO) >> $(WORKING_DOXYFILE) | ||
@$(DOXYGEN_ECHO) IMAGE_PATH = $(DOC_IMG_DIR) >> $(WORKING_DOXYFILE) | ||
@$(DOXYGEN_ECHO) DOT_PATH = "$(DOT_PATH)" >> $(WORKING_DOXYFILE) | ||
@$(DOXYGEN) $(WORKING_DOXYFILE) | ||
|
||
clean: | ||
@$(ECHO) Removing build directory | ||
@$(RM_DIR) $(DOC_BUILD_DIR) | ||
@$(ECHO) Removing temporary files | ||
@$(RM) $(DOXYGEN_WARNING) | ||
@$(RM) $(WORKING_DOXYFILE) | ||
@$(RM) $(LIBRARY_NAME).pdf | ||
|
||
.PHONY: lib_doc clean |
Oops, something went wrong.