├── .envrc ├── .gitignore ├── .vscode └── settings.json ├── CITATION.cff ├── Cargo.lock ├── Cargo.toml ├── Contributing.md ├── LICENSE-MIT ├── Makefile.toml ├── README.md ├── core ├── Cargo.toml └── src │ ├── bldc_driver.rs │ ├── bldc_driver6pwm.rs │ ├── bldc_motor.rs │ ├── commands.rs │ ├── common.rs │ ├── common │ ├── defaults.rs │ ├── helpers.rs │ ├── lp_filter.rs │ ├── pid.rs │ └── types.rs │ ├── current_sensor.rs │ ├── foc_control.rs │ ├── foc_control │ └── control_utils.rs │ ├── hw_drivers.rs │ ├── lib.rs │ └── pos_sensor.rs ├── examples └── spinny.rs ├── flake.lock ├── flake.nix ├── peripherals └── AS5047P │ ├── Cargo.toml │ └── src │ └── lib.rs ├── platforms └── esp32_sfoc │ ├── .cargo │ └── config.toml │ ├── .gitignore │ ├── .vscode │ └── settings.json │ ├── Cargo.toml │ ├── rust-toolchain.toml │ └── src │ ├── device.rs │ ├── lib.rs │ ├── posn_encoder.rs │ └── time_source.rs ├── prototype ├── Cargo.lock ├── Cargo.toml └── src │ └── lib.rs ├── spinnies ├── esp32 │ ├── original │ │ ├── .cargo │ │ │ └── config.toml │ │ ├── .gitignore │ │ ├── Cargo.lock │ │ ├── Cargo.toml │ │ ├── build.rs │ │ ├── rust-toolchain.toml │ │ └── src │ │ │ ├── bin │ │ │ └── main.rs │ │ │ └── lib.rs │ └── s3 │ │ ├── .cargo │ │ └── config.toml │ │ ├── .gitignore │ │ ├── Cargo.toml │ │ ├── build.rs │ │ ├── rust-toolchain.toml │ │ └── src │ │ ├── bin │ │ └── main.rs │ │ └── lib.rs └── generic_spinny │ ├── Cargo.toml │ ├── README.md │ └── src │ └── lib.rs ├── src └── lib.rs └── thoughts.md /.envrc: -------------------------------------------------------------------------------- 1 | use flake -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "rust-analyzer.check.allTargets": false, 3 | } 4 | -------------------------------------------------------------------------------- /CITATION.cff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/CITATION.cff -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/Contributing.md -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /Makefile.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/Makefile.toml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/README.md -------------------------------------------------------------------------------- /core/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/Cargo.toml -------------------------------------------------------------------------------- /core/src/bldc_driver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/bldc_driver.rs -------------------------------------------------------------------------------- /core/src/bldc_driver6pwm.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/bldc_driver6pwm.rs -------------------------------------------------------------------------------- /core/src/bldc_motor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/bldc_motor.rs -------------------------------------------------------------------------------- /core/src/commands.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/commands.rs -------------------------------------------------------------------------------- /core/src/common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/common.rs -------------------------------------------------------------------------------- /core/src/common/defaults.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/common/defaults.rs -------------------------------------------------------------------------------- /core/src/common/helpers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/common/helpers.rs -------------------------------------------------------------------------------- /core/src/common/lp_filter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/common/lp_filter.rs -------------------------------------------------------------------------------- /core/src/common/pid.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/common/pid.rs -------------------------------------------------------------------------------- /core/src/common/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/common/types.rs -------------------------------------------------------------------------------- /core/src/current_sensor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/current_sensor.rs -------------------------------------------------------------------------------- /core/src/foc_control.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/foc_control.rs -------------------------------------------------------------------------------- /core/src/foc_control/control_utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/foc_control/control_utils.rs -------------------------------------------------------------------------------- /core/src/hw_drivers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/hw_drivers.rs -------------------------------------------------------------------------------- /core/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/core/src/lib.rs -------------------------------------------------------------------------------- /core/src/pos_sensor.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /examples/spinny.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/examples/spinny.rs -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/flake.nix -------------------------------------------------------------------------------- /peripherals/AS5047P/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/peripherals/AS5047P/Cargo.toml -------------------------------------------------------------------------------- /peripherals/AS5047P/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/peripherals/AS5047P/src/lib.rs -------------------------------------------------------------------------------- /platforms/esp32_sfoc/.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/platforms/esp32_sfoc/.cargo/config.toml -------------------------------------------------------------------------------- /platforms/esp32_sfoc/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/platforms/esp32_sfoc/.gitignore -------------------------------------------------------------------------------- /platforms/esp32_sfoc/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "rust-analyzer.check.allTargets": false, 3 | } 4 | -------------------------------------------------------------------------------- /platforms/esp32_sfoc/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/platforms/esp32_sfoc/Cargo.toml -------------------------------------------------------------------------------- /platforms/esp32_sfoc/rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "esp" 3 | -------------------------------------------------------------------------------- /platforms/esp32_sfoc/src/device.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/platforms/esp32_sfoc/src/device.rs -------------------------------------------------------------------------------- /platforms/esp32_sfoc/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/platforms/esp32_sfoc/src/lib.rs -------------------------------------------------------------------------------- /platforms/esp32_sfoc/src/posn_encoder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/platforms/esp32_sfoc/src/posn_encoder.rs -------------------------------------------------------------------------------- /platforms/esp32_sfoc/src/time_source.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/platforms/esp32_sfoc/src/time_source.rs -------------------------------------------------------------------------------- /prototype/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/prototype/Cargo.lock -------------------------------------------------------------------------------- /prototype/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/prototype/Cargo.toml -------------------------------------------------------------------------------- /prototype/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/prototype/src/lib.rs -------------------------------------------------------------------------------- /spinnies/esp32/original/.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/original/.cargo/config.toml -------------------------------------------------------------------------------- /spinnies/esp32/original/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/original/.gitignore -------------------------------------------------------------------------------- /spinnies/esp32/original/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/original/Cargo.lock -------------------------------------------------------------------------------- /spinnies/esp32/original/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/original/Cargo.toml -------------------------------------------------------------------------------- /spinnies/esp32/original/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/original/build.rs -------------------------------------------------------------------------------- /spinnies/esp32/original/rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "esp" 3 | -------------------------------------------------------------------------------- /spinnies/esp32/original/src/bin/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/original/src/bin/main.rs -------------------------------------------------------------------------------- /spinnies/esp32/original/src/lib.rs: -------------------------------------------------------------------------------- 1 | #![no_std] 2 | -------------------------------------------------------------------------------- /spinnies/esp32/s3/.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/s3/.cargo/config.toml -------------------------------------------------------------------------------- /spinnies/esp32/s3/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/s3/.gitignore -------------------------------------------------------------------------------- /spinnies/esp32/s3/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/s3/Cargo.toml -------------------------------------------------------------------------------- /spinnies/esp32/s3/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/s3/build.rs -------------------------------------------------------------------------------- /spinnies/esp32/s3/rust-toolchain.toml: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "esp" 3 | -------------------------------------------------------------------------------- /spinnies/esp32/s3/src/bin/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/esp32/s3/src/bin/main.rs -------------------------------------------------------------------------------- /spinnies/esp32/s3/src/lib.rs: -------------------------------------------------------------------------------- 1 | #![no_std] 2 | -------------------------------------------------------------------------------- /spinnies/generic_spinny/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/generic_spinny/Cargo.toml -------------------------------------------------------------------------------- /spinnies/generic_spinny/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/generic_spinny/README.md -------------------------------------------------------------------------------- /spinnies/generic_spinny/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/spinnies/generic_spinny/src/lib.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /thoughts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ben-PH/SimpleFOC-rs/HEAD/thoughts.md --------------------------------------------------------------------------------