【E38】STM32驱动三个步进电机使探针在x、y、z三个轴上运动

2021-08-13 13:04:14      索炜达电子      800     

项目编号:E38

文件大小:5.77M

源码说明:带中文注释

开发环境:C编译器

简要概述:

远场微波成像探针控制器

基于STM32控制器,控制三个步进电机驱动器使探针向着x,y,z轴三个方向运动;LED显示当前探针运动方向;数码管显示当前扫描行数;扫描至下一行时蜂鸣器发出提示音;按键控制步进电机运动。

-主控为STM32f103RBT6。

-串口下载。

-电源输入为12V-2A,使用RT7272转为5V,再通过AMS1117转为3.3V。

-三轴流水灯显示探针运动方向,每轴三颗LED。

-两位数码管显示已扫描行数。

-扫描至下一行时使用NPN三极管驱动蜂鸣器,NPN选用S8050。

-步进电机驱动器的控制逻辑为5V/0V,所以需要将STM32输出引脚通过PMOS开关连接到5V电源或接地,PMOS选用NTR2101P-D

-六个按键控制探针向右、向后、向后步进、向前、向上、向下运动。

-板载12V电源滤波之后给步进电机驱动器供电。

文件列表:

目录│文件列表:

 └ 源码

    └ Microwave_imaging_probe_controller

       │ 引脚分配.xlsx

       ├ DataSheet

       │  │ NTR2101P-D.PDF

       │  │ SS8050.pdf

       │  │ stm32f103cb.pdf

       │  │ THB7128-3A步进电机驱动器说明书.pdf

       │  └ THB7128盒式驱动器说明.pdf

       ├ MDK_Project

       │  │ keilkill.bat

       │  ├ Doc

       │  │  └ readme.txt

       │  ├ Libraries

       │  │  ├ CMSIS

       │  │  │  │ core_cm3.c

       │  │  │  │ core_cm3.h

       │  │  │  │ stm32f10x.h

       │  │  │  │ system_stm32f10x.c

       │  │  │  │ system_stm32f10x.h

       │  │  │  └ startup

       │  │  │     │ 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

       │  │  └ FWlib

       │  │     ├ 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

       │  ├ Listing

       │  │  │ startup_stm32f10x_hd.lst

       │  │  └ 流水灯.map

       │  ├ Output

       │  │  │ bsp_buzzer.crf

       │  │  │ bsp_buzzer.d

       │  │  │ bsp_buzzer.o

       │  │  │ bsp_it.crf

       │  │  │ bsp_it.d

       │  │  │ bsp_it.o

       │  │  │ bsp_led.crf

       │  │  │ bsp_led.d

       │  │  │ bsp_led.o

       │  │  │ bsp_segment_display.crf

       │  │  │ bsp_segment_display.d

       │  │  │ bsp_segment_display.o

       │  │  │ bsp_stepper_motor.crf

       │  │  │ bsp_stepper_motor.d

       │  │  │ bsp_stepper_motor.o

       │  │  │ bsp_systick.crf

       │  │  │ bsp_systick.d

       │  │  │ bsp_systick.o

       │  │  │ core_cm3.crf

       │  │  │ core_cm3.d

       │  │  │ core_cm3.o

       │  │  │ iSO-STM32_Led.dep

       │  │  │ main.crf

       │  │  │ main.d

       │  │  │ main.o

       │  │  │ misc.crf

       │  │  │ misc.d

       │  │  │ misc.o

       │  │  │ startup_stm32f10x_hd.d

       │  │  │ startup_stm32f10x_hd.o

       │  │  │ stm32f10x_adc.crf

       │  │  │ stm32f10x_adc.d

       │  │  │ stm32f10x_adc.o

       │  │  │ stm32f10x_bkp.crf

       │  │  │ stm32f10x_bkp.d

       │  │  │ stm32f10x_bkp.o

       │  │  │ stm32f10x_can.crf

       │  │  │ stm32f10x_can.d

       │  │  │ stm32f10x_can.o

       │  │  │ stm32f10x_cec.crf

       │  │  │ stm32f10x_cec.d

       │  │  │ stm32f10x_cec.o

       │  │  │ stm32f10x_crc.crf

       │  │  │ stm32f10x_crc.d

       │  │  │ stm32f10x_crc.o

       │  │  │ stm32f10x_dac.crf

       │  │  │ stm32f10x_dac.d

       │  │  │ stm32f10x_dac.o

       │  │  │ stm32f10x_dbgmcu.crf

       │  │  │ stm32f10x_dbgmcu.d

       │  │  │ stm32f10x_dbgmcu.o

       │  │  │ stm32f10x_dma.crf

       │  │  │ stm32f10x_dma.d

       │  │  │ stm32f10x_dma.o

       │  │  │ stm32f10x_exti.crf

       │  │  │ stm32f10x_exti.d

       │  │  │ stm32f10x_exti.o

       │  │  │ stm32f10x_flash.crf

       │  │  │ stm32f10x_flash.d

       │  │  │ stm32f10x_flash.o

       │  │  │ stm32f10x_fsmc.crf

       │  │  │ stm32f10x_fsmc.d

       │  │  │ stm32f10x_fsmc.o

       │  │  │ stm32f10x_gpio.crf

       │  │  │ stm32f10x_gpio.d

       │  │  │ stm32f10x_gpio.o

       │  │  │ stm32f10x_i2c.crf

       │  │  │ stm32f10x_i2c.d

       │  │  │ stm32f10x_i2c.o

       │  │  │ stm32f10x_it.crf

       │  │  │ stm32f10x_it.d

       │  │  │ stm32f10x_it.o

       │  │  │ stm32f10x_iwdg.crf

       │  │  │ stm32f10x_iwdg.d

       │  │  │ stm32f10x_iwdg.o

       │  │  │ stm32f10x_pwr.crf

       │  │  │ stm32f10x_pwr.d

       │  │  │ stm32f10x_pwr.o

       │  │  │ stm32f10x_rcc.crf

       │  │  │ stm32f10x_rcc.d

       │  │  │ stm32f10x_rcc.o

       │  │  │ stm32f10x_rtc.crf

       │  │  │ stm32f10x_rtc.d

       │  │  │ stm32f10x_rtc.o

       │  │  │ stm32f10x_sdio.crf

       │  │  │ stm32f10x_sdio.d

       │  │  │ stm32f10x_sdio.o

       │  │  │ stm32f10x_spi.crf

       │  │  │ stm32f10x_spi.d

       │  │  │ stm32f10x_spi.o

       │  │  │ stm32f10x_tim.crf

       │  │  │ stm32f10x_tim.d

       │  │  │ stm32f10x_tim.o

       │  │  │ stm32f10x_usart.crf

       │  │  │ stm32f10x_usart.d

       │  │  │ stm32f10x_usart.o

       │  │  │ stm32f10x_wwdg.crf

       │  │  │ stm32f10x_wwdg.d

       │  │  │ stm32f10x_wwdg.o

       │  │  │ system_stm32f10x.crf

       │  │  │ system_stm32f10x.d

       │  │  │ system_stm32f10x.o

       │  │  │ 流水灯.axf

       │  │  │ 流水灯.build_log.htm

       │  │  │ 流水灯.hex

       │  │  │ 流水灯.htm

       │  │  │ 流水灯.lnp

       │  │  └ 流水灯.sct

       │  ├ Project

       │  │  └ RVMDK(uv4)

       │  │     │ iSO-STM32.uvgui.Administrator

       │  │     │ iSO-STM32.uvgui.fire

       │  │     │ iSO-STM32.uvguix.Verdvana

       │  │     │ iSO-STM32.uvopt

       │  │     │ iSO-STM32.uvoptx

       │  │     │ iSO-STM32.uvproj.saved_uv4

       │  │     │ iSO-STM32.uvprojx

       │  │     │ JLink Regs CM3.txt

       │  │     │ JLinkSettings.ini

       │  │     └ DebugConfig

       │  │        └ Led_STM32F103ZE_1.0.0.dbgconf

       │  └ User

       │     │ main.c

       │     │ stm32f10x_conf.h

       │     │ stm32f10x_it.c

       │     │ stm32f10x_it.h

       │     ├ Buzzer

       │     │  │ bsp_Buzzer.c

       │     │  └ bsp_Buzzer.h

       │     ├ EXIT

       │     │  │ bsp_it.c

       │     │  └ bsp_it.h

       │     ├ Led

       │     │  │ bsp_led.c

       │     │  └ bsp_led.h

       │     ├ Segment_Display

       │     │  │ bsp_Segment_Display.c

       │     │  │ bsp_Segment_Display.h

       │     │  └ 新建文本文档.txt

       │     ├ Stepper_Motor

       │     │  │ bsp_Stepper_Motor.c

       │     │  └ bsp_Stepper_Motor.h

       │     └ SysTick

       │        │ bsp_SysTick.c

       │        └ bsp_SysTick.h

       └ Simulation

          │ PMOS.ms13

          └ PMOS.ms13 (Security copy)

TAGSTM32步进电机
  • 17 次
  • 1 分