Post · 1 min read· pp. 31–32

Installing Simple FOC library

On this page

Arduino Library Manager installation

The simplest way to get hold of the library is directly through Arduino IDE and Arduino Library Manager.

  • Open Arduino IDE and start Arduino Library Manager by clicking: Tools > Manage Libraries....
  • Search for “Simple FOC” library and install the latest version .
  • Reopen Arduino IDE and you should have the library examples in File > Examples > Simple FOC.

Github installation

If you prefer downloading the library directly from the github repository.

ZIP download

  • Go to the main branch
  • Click first on Clone or Download > Download ZIP.
  • Unzip it and place it in Arduino Libraries folder. Windows: Documents > Arduino > libraries.
  • Reopen Arduino IDE and you should have the library examples in File > Examples > Simple FOC.

Clone using terminal

  • Open terminal and run

    bash

cd #arduino libraries folder git clone https://github.com/simplefoc/Arduino-FOC.git

code
- Reopen Arduino IDE and you should have the library examples in `File > Examples > Simple FOC`.

## Next: get your motor spinning

The library is installed. Follow the [getting started guide](/u/22604f40bb19320b) to test your sensor, driver and motor step by step, and have closed-loop control running in about an hour.

[Getting started guide](/u/22604f40bb19320b)

---

Copyright © 2026. Distributed by an [MIT license.](https://github.com/simplefoc/simplefoc.github.io/tree/master/LICENSE)