> For the complete documentation index, see [llms.txt](https://docs.feelix.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.feelix.xyz/downloads/c-library.md).

# Feelix Arduino Library

{% hint style="info" %}
The code builds upon [**SimpleFOC** ](https://simplefoc.com)**v2.4.0** by Antun Skuric.\
[**How to install the SimpleFOC library.** ](/uploading-files/simplefoc.md#install-simplefoc-library-using-arduino-ide)
{% endhint %}

> #### If you want to design and upload effects with the Feelix Haptic Design tool, you need to upload the [Feelix Haptic Design Tool Firmware](#feelix-haptic-design-tool-firmware).
>
> #### If you want to write your own code or use exported effects from feelix you need to upload the [Arduino Library for Exported Effects](#arduino-library-for-exported-feelix-effects).

## Feelix Haptic Design Tool Firmware

Download the Feelix Core Firmware to connect with the Feelix Design Tool.

<figure><img src="/files/JTrFfMA39xpPLSNu4Ed3" alt=""><figcaption></figcaption></figure>

{% file src="/files/nskpGLqTPKek5A47Nvv1" %}
Code for Feelix MiniDriver to connect with the Feelix Design Tool
{% endfile %}

#### Upload MiniDriver v3.x Core with STM32CubeProgrammer

{% stepper %}
{% step %}

#### Select USB

Change Feelix MiniDriver to BOOT mode and press RESET button

Select USB and click Connect (green button, top-right corner)
{% endstep %}

{% step %}

#### Select File

Click **Erasing and Programming** from the left menu

Extract Feelix\_v1.3\_MiniDriver\_v3.x\_Core.ino.zip

Select **Browse** to search for: Feelix\_v1.3\_MiniDriver\_v3.x\_Core.ino.elf
{% endstep %}

{% step %}

#### Upload

Click **Start Programming**
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Click [**here**](< https://www.st.com/en/development-tools/stm32cubeprog.html >) to download the STM32CubeProgrammer.
{% endhint %}

<figure><img src="/files/BcZbc1gr5iSamx3VmAWV" alt=""><figcaption><p>Upload Feelix Core with STM32CubeProgrammer</p></figcaption></figure>

#### Pneumatic Control

{% file src="/files/HJ3bFVKelDdxdBk5jmv4" %}
FeelixAir Library v4.0.0 compatible with Feelix v3.x.x
{% endfile %}

## Arduino Library for Exported Feelix Effects

After you exported effects in Feelix, you can use the FeelixEffect library to import them in your code. *You can no longer connect with Feelix when using this library.*

Want to learn about how to embed the effects in your Arduino code? \
Have a look at the [**FeelixEffect library**](/downloads/arduino-library-documentation/effect-functions.md)[ **documentation**](/downloads/arduino-library-documentation/effect-functions.md)

<figure><img src="/files/qiYC5dNMTpx5aF3MBTnZ" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
This library **does not work with the Feelix Design Tool.** It only allows you to import and play exported effects created in Feelix.
{% endhint %}

{% hint style="success" %}
Extract this folder and place it in the **Arduino IDE's 'libraries' directory** to access the example sketches from the File menu. Be sure to **remove any older versions** of the library first.
{% endhint %}

{% file src="/files/QNIhDGhb0TezqzEiVYjE" %}

{% hint style="info" %}
Follow these [**instructions**](/uploading-files/setting-up-stm32.md) when **uploading to STM32** for the first time.
{% endhint %}

## Old releases

{% content-ref url="/pages/ioUmun5TLFlMR2bENjTn" %}
[Old Library Releases](/downloads/c-library/old-library-releases.md)
{% endcontent-ref %}
