-
Notifications
You must be signed in to change notification settings - Fork 6
Py Getting Started
This page explains how to install and use the Python wrapper for the multi half bridge library with the TLE94112ES HAT for Raspberry Pi.
- Experience level: Moderate
- Basic linux user level
- Basic programming skills: Python
Name | Picture |
---|---|
DC Motor Control HAT with TLE94112ES | ![]() |
Compatible Raspberry Pi | |
8GB+ microSD card for Raspberry Pi | |
5.5V - 20V power supply with > 15W | |
Compatible DC motor |
- Raspberry Pi OS or similar
- git
- bcm2835 library
- pybind11 library
- python3 (tested with python3.7)
- pip (for easy installation)
- build-essential
- Infineon multi-half-bridge library (this library)
The TLE94112ES HAT needs to be stacked onto a compatible Raspberry Pi. A jumper needs to be placed between the middle pin and the CS0 marking as shown in the picture.
![](img/basicTest-hw-setup.png)
The DC Motor Control HAT with TLE94112ES follows the Raspberry Pi HAT specification and can be stacked onto any 40-pin Raspberry Pi.
- Stack the DC Motor Control HAT onto the Raspberry Pi.
- Connect a 5.5 to 20V power supply to the Vcc and GND pin of the DC Motor Control HAT
- Connect a DC Motor or another load of your choice to output 1 and 5 of the controller
Note
Set up Raspberry Pi with Raspberry Pi OS or similar OS. Check this page for instructions.
You can access your Raspberry Pi either using a monitor and a keyboard or using SSH in a headless setup as described here.
Now insert the microSD card into your Raspberry Pi and turn on the power supply to boot it up. The Raspberry Pi will be powered by the DC Motor Control HAT.
This library can be installed easily using pip
. If you do not have pip
installed please do so by typing
sudo apt-get install python3-pip
into the command line of your Raspberry Pi. Afterwards you can install the Infineon multi half bridge library by typing
sudo pip3 install multi-half-bridge
Once the library is installed clone the multi half bridge repository.
git clone https://github.com/Infineon/multi-half-bridge.git
Navigate to the example folder
cd multi-half-bridge/src/framework/raspberrypi/examples_py
and execute the examples from the terminal:
sudo python3 basicTest.py
Library Architecture
TLE94112 API
TLE94112Motor API
PAL Interface
Source Tree Structure
Preprocessor Configuration
Porting Guide
Doxygen Docs
Arduino
- Getting Started
- Lib Installation
- Arduino API
- PlatformIO
Cypress ModusToolbox
- Getting Started
- Lib Installation
- ModusToolbox API
- Examples
Cypress WICED
- Getting Started
- Lib Installation
- WICED API
- Troubleshooting Guide
Raspberry Pi (C++)
- Getting Started
- Lib Installation
- Raspberry Pi API
- Examples
Raspberry Pi (Python)
- Getting Started
- Lib Installation
- RPi Python API
- Examples