-
Notifications
You must be signed in to change notification settings - Fork 9
RPi Getting Started
In this quick tutorial we will go through one of the C++ Multi Half Bridge examples available for the TLE94112 and the Raspberry Pi.
- Experience level: moderate
- Basic linux user level
- Basic programming skills (C/C++)
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
- build-essential
- Infineon multi-half-bridge library (this library)
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.
Check out this section for details on installation of this multi half bridge library.
With everything ready, now we are going to run one of the library examples.
cd multi-half-bridge/src/framework/raspberrypi
make examples/basicTest
../../../build/basicTest
Your load is now switched on and off by the DC Motor Control HAT.
Check out this section for more examples.
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