Skip to content

Commit

Permalink
arch: refactor espFoC to be a motor control solution instead
Browse files Browse the repository at this point in the history
of a library

Signed-off-by: Felipe Neves <[email protected]>
  • Loading branch information
uLipe committed Jul 7, 2024
1 parent b602c07 commit 93302ee
Show file tree
Hide file tree
Showing 24 changed files with 12 additions and 206 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@
![Build](https://github.com/uLipe/espFoC/workflows/Build/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

espFoC is a simple implementation of voltage mode, vector controller intended to be used with permanent-magnet synchronous motors (PMSM), and general brushless motors. This component was developed to be used with Zephyr RTOS for example and is aimed to transform
your esp32 chip into a dual axis PMSM motor controller chip
espFoC is a simple implementation of voltage mode, vector controller intended to be used with permanent-magnet synchronous motors (PMSM), and general brushless motors for ESP32S3 Espressif SoC, other SoC from espressif might be supported but the primary requirement is to be a dual
core variant. espFoC started as a library for motor control, but it suffered a goal change, and now it is intended to create a programmable
BLDC (FoC based) motor control-IC, the dual core capabillity splits the controller into application side and motor control core side
the former is intended for user to write it own application or exchange packets with external controller via CAN-Bus, the later is
100% focused on perform motor control algorithm achieving better control bandwidth. Up two axis are supported in this new variant, refer the
simplified architecture below:

![espFoC Simplified Architecture](/doc/images/arch.png)



## Features:

* Voltage mode control, control a PMSM like a DC motor!;
* Position and Speed closed-loop control;
* Single-precision Floating point implementation;
* Sample inverter driver based on esp32 LEDC PWM (easy to wire!);
* Sample rotor position driver based on as5600 encoder (very popular!);
* Easy to wire motor using common drivers and I2C encoders out there!
* Uses openAMP to offload motor control tasks to one of the core, and leave the other for communication;
* support UART and CAN communication;

## Limitations:

* Support for esp32 and esp32s3 only;
* Support for esp32 and esp32s3(primary) only;
* Requires and rotor position sensor, for example, incremental encoder.

## Getting started:
Expand Down
Binary file added doc/images/arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 0 additions & 35 deletions examples/stubs/main.cpp

This file was deleted.

133 changes: 0 additions & 133 deletions examples/stubs/motor_hardware_stub.c

This file was deleted.

33 changes: 0 additions & 33 deletions examples/stubs/motor_hardware_stub.h

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file added main_app_app_core/esp_foc_app.c
Empty file.
Empty file.
Empty file added main_app_app_core/prj.conf
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added main_app_motor_core/prj.conf
Empty file.
Empty file added src/ipc/esp_foc_ipc.c
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 93302ee

Please sign in to comment.