【E36】基于STM32的直流电机调速系统

2021-08-13 11:28:13      索炜达电子      799     

项目编号:E36

文件大小:338K

源码说明:带中文注释

开发环境:IAR

简要概述:

1.下位机软件

使用C++开发,基于 IAR Embedded Workbench for Arm

-采用 STM32F103V8 微控制器

-采用 M 法测速,测速周期 5ms

-PI 调节器速度闭环控制

-速度阶跃响应超调量小于 5%

-运行时调节 Kp, Ki 参数


2.上位机软件

使用 C# 和 WPF 开发,基于 Visual Studio 2017

【E36】基于STM32的直流电机调速系统

-调整电机的速度

-显示电机转速变化曲线

-实时显示电机转速

-调节Kp, Ki参数


文件列表:

目录│文件列表:

 └ 源码

    └ DC-Motor-Controller-System-Based-on-STM32

       │ motor.ioc

       │ STM32.dep

       │ STM32.ewd

       │ STM32.ewp

       │ STM32.ewt

       │ STM32.eww

       │ STM32.sln

       │ STM32.vcxproj

       │ STM32.vcxproj.filters

       ├ .vscode

       │  │ c_cpp_properties.json

       │  └ settings.json

       ├ host

       │  └ WpfApp

       │     │ App.config

       │     │ App.xaml

       │     │ App.xaml.cs

       │     │ MainWindow.xaml

       │     │ MainWindow.xaml.cs

       │     │ packages.config

       │     │ WpfApp.csproj

       │     │ WpfApp.csproj.DotSettings

       │     └ Properties

       │        │ AssemblyInfo.cs

       │        │ Resources.Designer.cs

       │        │ Resources.resx

       │        │ Settings.Designer.cs

       │        └ Settings.settings

       ├ images

       │  └ Screenshot0.png

       ├ lib

       │  ├ inc

       │  │  │ misc.h

       │  │  │ stm32f10x_adc.h

       │  │  │ stm32f10x_bkp.h

       │  │  │ stm32f10x_can.h

       │  │  │ stm32f10x_cec.h

       │  │  │ stm32f10x_crc.h

       │  │  │ stm32f10x_dac.h

       │  │  │ stm32f10x_dbgmcu.h

       │  │  │ stm32f10x_dma.h

       │  │  │ stm32f10x_exti.h

       │  │  │ stm32f10x_flash.h

       │  │  │ stm32f10x_fsmc.h

       │  │  │ stm32f10x_gpio.h

       │  │  │ stm32f10x_i2c.h

       │  │  │ stm32f10x_iwdg.h

       │  │  │ stm32f10x_pwr.h

       │  │  │ stm32f10x_rcc.h

       │  │  │ stm32f10x_rtc.h

       │  │  │ stm32f10x_sdio.h

       │  │  │ stm32f10x_spi.h

       │  │  │ stm32f10x_tim.h

       │  │  │ stm32f10x_usart.h

       │  │  └ stm32f10x_wwdg.h

       │  └ src

       │     │ misc.c

       │     │ stm32f10x_adc.c

       │     │ stm32f10x_bkp.c

       │     │ stm32f10x_can.c

       │     │ stm32f10x_cec.c

       │     │ stm32f10x_crc.c

       │     │ stm32f10x_dac.c

       │     │ stm32f10x_dbgmcu.c

       │     │ stm32f10x_dma.c

       │     │ stm32f10x_exti.c

       │     │ stm32f10x_flash.c

       │     │ stm32f10x_fsmc.c

       │     │ stm32f10x_gpio.c

       │     │ stm32f10x_i2c.c

       │     │ stm32f10x_iwdg.c

       │     │ stm32f10x_pwr.c

       │     │ stm32f10x_rcc.c

       │     │ stm32f10x_rtc.c

       │     │ stm32f10x_sdio.c

       │     │ stm32f10x_spi.c

       │     │ stm32f10x_tim.c

       │     │ stm32f10x_usart.c

       │     └ stm32f10x_wwdg.c

       ├ settings

       │  │ STM32.crun

       │  │ STM32.dbgdt

       │  │ STM32.Debug.cspy.bat

       │  │ STM32.Debug.cspy.ps1

       │  │ STM32.Debug.driver.xcl

       │  │ STM32.Debug.general.xcl

       │  │ STM32.dnx

       │  │ STM32.Release.cspy.bat

       │  │ STM32.Release.cspy.ps1

       │  │ STM32.Release.driver.xcl

       │  │ STM32.Release.general.xcl

       │  └ STM32.wsdt

       ├ src

       │  │ controller.cpp

       │  │ controller.h

       │  │ encoder.h

       │  │ led.h

       │  │ main.cpp

       │  │ motor.h

       │  │ stm32f10x_conf.h

       │  │ stm32f10x_it.c

       │  │ stm32f10x_it.h

       │  │ timer.cpp

       │  │ timer.h

       │  │ usart.h

       │  └ 注释.zip

       └ sys

          │ startup_stm32f10x_cl.s

          │ startup_stm32f10x_hd.s

          │ startup_stm32f10x_hd_vl.s

          │ startup_stm32f10x_ld.s

          │ startup_stm32f10x_ld_vl.s

          │ startup_stm32f10x_md.s

          │ startup_stm32f10x_md_vl.s

          │ startup_stm32f10x_xl.s

          │ stm32f10x.h

          │ system_stm32f10x.c

          └ system_stm32f10x.h

TAG直流电机
  • 6 次
  • 1 分