MSU-Solar / motor_controller_schip

My STM32-mc sdk project TODO: improve this desc
1 stars 0 forks source link

Develop an understanding on how to use motor controller workbench for STM32 to use custom hardware for code generation #2

Open roboticvedant opened 1 week ago

roboticvedant commented 1 week ago

Issue Description for STM32 Motor Controller Workbench

Understanding STM32 Motor Controller Workbench for Custom Hardware

This issue focuses on leveraging the STM32 Motor Controller Workbench to configure and generate code for custom motor control hardware, specifically targeting a Permanent Magnet Synchronous Motor (PMSM) setup. The goal is to create a customized board file that reflects the parameters of a unique car project, facilitating efficient motor control.

Important Links

Tasks

  1. Research and Familiarization
  1. Custom Board File Development

    • Create a custom board file for the STM32 Motor Controller Workbench that includes:
      • [ ] Motor specifications (e.g., voltage, current, and phase resistance).
      • [ ] Sensor setup (if applicable, e.g., encoder or Hall sensors).
      • [ ] PCB layout considerations tailored to the hardware setup.
  2. Parameter Mockup

    • Develop a rough mockup of the car's motor parameters. This could include:
      • [ ] Motor model and specifications (e.g., rated power, torque).
      • [ ] Desired performance metrics (e.g., speed, acceleration).
      • [ ] Feedback mechanism (if needed).
  3. Code Generation

    • [ ] Use the STM32 Motor Controller Workbench to generate initial code based on the custom board file.
    • [ ] Verify the generated code aligns with the specified parameters and configure it for testing.
  4. Testing and Validation

    • [ ] Set up the hardware for initial tests.
    • [ ]Validate motor control behavior based on the generated code.
    • [ ] Document any issues encountered during testing for further refinement.
  5. Documentation

    • Create comprehensive documentation detailing:
      • [ ] The development process for the custom board file.
      • [ ] Parameter selections and justifications.
      • [ ] Testing results and troubleshooting steps.

Next Steps

Updates

Please share progress updates or any questions as you work through these tasks!

roboticvedant commented 6 days ago

@jtoomey5252 I have updated the description to give some more context. Also, do you have any updates on this?