6977 views|11 replies

9

Posts

0

Resources
The OP
 

BLDC driver based on GD32 [Copy link]

 

BLDC driver based on GD32

Brushless motors may seem simple, but they can be very complex to drive. As an electronics enthusiast, I just tried it out with the spirit of a newborn calf not afraid of a tiger. I didn't have much time. So the things I made are just a look, I hope you don't criticize me. Without further ado, here is the block diagram.


LED, button, timer, PWM, and ADC. Everything else is going smoothly, but the ADC of PA6 is very strange. The op amp output cannot be brought up. Connect the power supply and ground. The ADC value changes again. Don't manage it yet. Let's make it run first. Add a piece of code. Use simple AC,,,,CA. Try it first. It runs normally as shown in the small video. But the noise and jitter are relatively large. The speed cannot be adjusted at will.

From the above figure, we can see that the H-bridge output is basically adjusted through PWM, and then the voltage and current are continuously sampled to determine the output state, thus forming a feedback loop to make the motor run stably. It seems so simple to say, just do it. Draw a circuit and make a board first.

[attach ]417169[/attach] [attach]417169 [/attach]

Solder the components. Connect the power supply. The voltage is basically normal. Start writing the program. I am not familiar with it at first, and I am a little frustrated. GD32E231 cannot use the Jlink recognition method according to the usual routine. But I finally got it done.

Start coding.

First, get the necessary configuration done.

OK, the hardware is basically normal. The next project seems to be quite large. For a novice in motor drive, it has reached a bottleneck. The reason is as shown in the figure below.

This is TI's data. I'm confused. I feel like I can't finish it now. So I'll deliver it first.

This post is from GD32 MCU

Latest reply

Okay, thank you for your hard work~   Details Published on 2019-6-20 21:21
 

9

Posts

0

Resources
2
 

Attach the program and schematic diagram.

The program is in the GD32-Liulx folder, and the others are official routines.

BLDC.pdf

1.27 MB, downloads: 248

电路图

GD32E231C_START_ 开发例程.rar

787.08 KB, downloads: 281

程序

This post is from GD32 MCU
 
 
 

9

Posts

0

Resources
3
 


Video

This post is from GD32 MCU
 
 
 

9

Posts

0

Resources
4
 

https://v.youku.com/v_show/id_XNDIyMjkyNTI1Ng==.html?spm=a2h3j.8428770.3416059.1

This post is from GD32 MCU
 
 
 

826

Posts

190

Resources
5
 

OP, if you have time, upload a complete word version.

This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

Uploaded  Details Published on 2019-6-16 22:49
 
Personal signature在路上……

EEworld 有你有我
 
 

435

Posts

0

Resources
6
 

I would like to ask what is the power of the motor used?

This post is from GD32 MCU

Comments

I guess it's about 100 watts. But my power supply is not good enough. I need to use PWM to limit the current.  Details Published on 2019-6-16 22:50
 
 
 

9

Posts

0

Resources
7
 

Hello, the word document has been uploaded

基于GD32的BLDC驱动.docx

2 MB, downloads: 262

This post is from GD32 MCU
 
 
 

9

Posts

0

Resources
8
 
lightxixi posted on 2019-6-11 14:03 OP, if you have time, upload a complete word version

Uploaded

This post is from GD32 MCU

Comments

Okay, thank you for your hard work~  Details Published on 2019-6-20 21:21
 
 
 

9

Posts

0

Resources
9
 
06010601 Posted on 2019-6-12 17:56 I would like to ask what the power of the motor used is

I estimate it to be around 100 watts. But my power supply is not good enough. I need to use PWM to limit the current.

This post is from GD32 MCU
 
 
 

23

Posts

0

Resources
10
 

This post is from GD32 MCU
 
 
 

935

Posts

1

Resources
11
 

Thanks for sharing~ Let me learn~~ Thank you for your hard work~~~

This post is from GD32 MCU
 
Personal signature存储芯片/MCU/SRAM/PSRAM/DDR/FLASH/MRAM。web.www.sramsun.com  QQ3161422826 TEL:13751192923
 
 

826

Posts

190

Resources
12
 

Okay, thank you for your hard work~

This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature在路上……

EEworld 有你有我
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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