15788 views|35 replies

1042

Posts

6

Resources
The OP
 

SPIN3201 (STSPIN32F0) three-resistance control board: FOC motor drive schematic/code/debugging documents and other detailed information... [Copy link]

 




This content is originally created by music_586 , a user on the EEWORLD forum. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

(main chip STSPIN32F0: built-in MCU, DCDC, LDO, op amp, comparator, MOS driver, etc.)
(Low-voltage and high-current three-resistor FOC motor driver)
Download the data in the attachment (360 compression), log in with a computer

FOC电机控制软硬件设计及动手实践.pdf

4.44 MB, downloads: 377

PMSM电机(24V100W1024线编码器)资料.pdf

435.62 KB, downloads: 252

spin3201(stspin32f0)(三电阻FOC图纸).pdf

1023.39 KB, downloads: 355

ST MC SDK5.x 电机库软件框架说明资料(共20页转载ST原厂).pdf

1.33 MB, downloads: 318

STSPIN3201三电阻FOC电机控制板调试补充说明.pdf

935.14 KB, downloads: 321

ST官方参考原理图BOM表数据手册PCB等.zip

1.91 MB, downloads: 345

图片.zip

1.41 MB, downloads: 269

PMSM24VENC.zip.001

9.54 MB, downloads: 305

PMSM24VENC.zip.002

9.54 MB, downloads: 298

PMSM24VENC.zip.003

6.06 MB, downloads: 344

PMSM24VNOSENSEO.zip.001

9.54 MB, downloads: 1449

PMSM24VNOSENSEO.zip.002

9.54 MB, downloads: 831

PMSM24VNOSENSEO.zip.003

5.87 MB, downloads: 365

This post is from stm32/stm8

Latest reply

Thank you, sir  Details Published on 2024-8-19 17:05
 

1042

Posts

6

Resources
2
 

Physical picture of the board

This post is from stm32/stm8
 
 

1042

Posts

6

Resources
3
 

Empty board illustration

This post is from stm32/stm8
 
 

1042

Posts

6

Resources
4
 

Motor information and schematic diagram:

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
5
 

Supplementary instructions for debugging the SPIN3201 three-resistor FOC motor control board

(Main chip: STSPIN32F0 )

1.1 Drawing Description

DCDC to 5V circuit: used to power the Hall sensor or encoder. Not used for sensorless start.

Try to choose a high-frequency DCDC conversion chip. The lower the frequency, the easier it is to introduce some noise.

MOS tube: 60V/80A , low on-resistance TO-252 package MOS tube is selected ;

1.2 Hardware wiring

Current sampling must use differential routing, especially the ground wire (add appropriate filter capacitors to the current sampling circuit);

Try not to cross the PWM output line and the current sampling line;

1.3 Instructions for using the STSPIN32F0 chip in actual projects

The chip's maximum voltage can reach 48V , but the actual project should not exceed 30V , and the limit should not exceed 36V .

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
6
 

1.4 Wiring Instructions

board

V+: Connect to the positive + of the power supply

V-: Connect to the positive power supply

U: Connect to motor U or A

V: Connect to motor V or B

W: Connect to motor W or C

ST LINK SWD and serial port wiring instructions :

Just connect the wires one by one as shown in the figure above. RST and 3.3V power supply do not need to be connected (the chip already has 3.3V inside ).

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
7
 
  • Software Description

New project board selection

Select the corresponding motor parameters

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
8
 

Driver interface settings (lower PMW frequency - F0 core has limited computing power )

AD interface settings

If there are no other modifications, generate the project (select the corresponding project file)

Wait for the build project to complete

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
9
 

In the corresponding storage directory, open the generated MDK project file

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
10
 

Compile output settings (can speed up compilation time, if you need to track the code, you need to check it)

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
11
 

Added chip FALSH loading algorithm

Click load to download the program (connect the cables and power first, then turn on the power).

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
12
 

After downloading the program normally, you can start the motor by pressing the USER1 button on the board ;

Or debug through WOROBENCH's online debugging interface, select the corresponding serial port, and set the baud rate to 9600

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
13
 

Normal transfer

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
14
 

2.1 Supplementary instructions for encoder interface generation project settings

Motor parameter interface settings

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
15
 

Feedback interface startup interface settings, select encoder mode

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
16
 

Startup settings (the current can be set larger according to actual needs)

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
17
 

After the project is generated, 6 revolutions can be achieved through WORKBENCH online debugging (but the speed is not stable); if a lower speed is required, the FOC library needs to be modified

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
18
 

Effect of 600 rpm

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
19
 

3. Additional instructions for debugging

It is best to determine the motor parameters first (find the motor from the motor manufacturer or test it yourself or use our IHM07 or IHM08 V3 or IHM08 V4 boards, etc. for testing ).

First, you need to confirm whether all the parameters set in ST MC Workbench are consistent with the actual hardware.

Parameters are consistent: such as motor parameters, drive parameters, MCU IO settings, etc.

This post is from stm32/stm8
 
 
 

1042

Posts

6

Resources
20
 

If any of these parameters are set incorrectly, the motor may never start correctly.

If necessary, the motor can be run in open loop mode to measure Tnoise and Trise related parameters.

If hardware overcurrent protection occurs immediately after startup, it may be caused by the following reasons:

This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list