Skip to content

Latest commit

 

History

History

README.md

SimpleFOC Examples

The SimpleFOC library includes 88+ fully documented examples covering various hardware configurations and control modes.

Hardware-Specific Examples

Examples optimized for specific hardware platforms:

Motion Control Examples

Different control modes with various sensor types:

Torque Control

Velocity Control

Position Control

Open-loop Control

Custom Control

Utility Examples

Calibration and Testing

Current Sensing

Driver Testing

Sensor Testing

Communication

Serial Command Examples

Examples showing full motor control via serial interface:

OSC Control Examples

Open Sound Control (OSC) integration:

How to Use Examples

  1. Arduino IDE: Go to File > Examples > Simple FOC > [category] > [example]
  2. PlatformIO: Copy example code from the examples/ directory
  3. GitHub: Browse examples at https://github.com/simplefoc/Arduino-FOC/tree/master/examples

Each example includes:

  • Detailed comments explaining the code
  • Hardware connection diagrams (where applicable)
  • Expected behavior description
  • Common troubleshooting tips

Getting Help