Skip to content
Snippets Groups Projects
Luiz Fernando Lavado Villa's avatar
Luiz Fernando Lavado Villa authored
This commit is a patch to address the issue of the Twist v1.1.2 board whose HRTIMA signals have been inverter in routing.

This commit defines a new hardware version, the TWIST_V_1_1_2.
This hardware version is then used to set up the control initialization sequence of the power legs, applying the necessary changest to leg 1 whose timer signals have been reversed in routing.
There is also a correction on the hrtim_init_independent_mode functino that initializes the pwm_phase_shift variable as well as their leg dependent equivalents.
This initalization is necessary to use the hrtim_interleaved_pwm_update function which uses the phase_shift variable when updating the duty cycle of interleaved buck and boost applicaitons.
dce31eb4
History
Name Last commit Last update
src
zephyr
.gitignore
LICENSE
README.md
platformio.ini

This is the OwnTech Power API Core repository.

The OwnTech Power API is modular, allowing to automatically select libraries for use with the power converter. Using the Core repository, you can work with OwnTech Power API Libraries, which are automatically downloaded on demand.

The Power API is designed to be used with VS Code and PlatformIO. More information about PlatformIO on VS code.

Downloading OwnTech Power API Core

You fisrt need to clone the Core repository using the following command:

git clone https://gitlab.laas.fr/owntech/power-api/core.git owntech_power_api

Then, open VS Code and, if not already done, install the PlatformIO plugin.

Finall, open the newly cloned folder owntech_power_api using menu File > Open Folder...

Working with OwnTech Power API

The hierarchy of the project is as follows:

owntech_power_api
└─ src
|  └─ main.cpp
|  └─ owntech.ini
└─ zephyr
|  └─ boards
|  └─ modules
|  └─ [...]
└─ LICENSE
└─ README.md
└─ [...]

You will want to work in the src folder, other folders and files are used to configure the underlying Zephyr OS and PlatformIO. Power users may want to tweak them too. Is so, please checkout the Zephyr documentation.

In the src folder, the file main.cpp is the entry point of the application. The file owntech.ini is used to configure the Power API Libraries you want to use.

Working with OwnTech Power API Libraries

To enable a Power API Library, edit the src/owntech.ini file. In this file, you'll find various commented libraries references. Simply uncomment a line to enable the corresponding library. You can also add any PlatformIO library in this file.