pekkaroi / bldc-drive Goto Github PK
View Code? Open in Web Editor NEWCheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller
License: GNU General Public License v2.0
Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller
License: GNU General Public License v2.0
Lucky to see this impressive protect, it is with a good framwork. I have tested it in the step mode with an encoder of 4000 PPR. But when I adjust the input signal about 60KHz, that means the speed is under 1000 RPM, the pid error will decrease from 8800 to about 6500, then it will jump bigger and bigger till the biggest pid error.So during this, the sound is also bigger and bigger, why does it happen?
Thanks.
port source code to STM32F407 please..
it would be more fast, and more easy to learn for us to develop
I get this error at line 11 Error[Og006]: Error in inline assembly: "Error[41]: Bad label"
The error is in file utils.c Any clue for debuging?
1 #include "utils.h"
2 #include <stddef.h>
3 #include <stdint.h>
4
5 void delay_ms(const uint32_t ms)
6 {
7
8 uint32_t ms2 = ms*STM32_CLOCK_HZ / 1000 / STM32_CYCLES_PER_LOOP;
9
10 asm volatile(" mov r0, %[ms2] \n\t"
11 "1: subs r0, #1 \n\t"
12 " bhi 1b \n\t"
13 :
14 : [ms2] "r" (ms2)
15 : "r0");
16 }
Hi there!
I have taken a look at your schematic and layout, and have seen that you have created it in a kicad version older than 4.0. so i have forked the design and am actually migrating the project to kicad 4.0 and the new symbols.
if you like to merge it, i will create a pull request once i'm ready with the migrating process.
additionally i have deleted the older versions of schematic and layout, because there is git history and if you like you can pull older versions from there.
please do not migrate at the moment, because there is still work to do and migrating now will lead to more work for you :D
a list of parts and values that you have used in your prototypes would be neat, because they are not mentioned in the schematic...
sry. for something like fucked up grammar or missuse of words, I am from germany and so german is my first and main language...
I want to customize the firmware, for my motor control board, where can I configure the deadtime?
Hi, I would ask about possibility of implementation code for DC brushed motors. I tried change pwm.c file with pwm_Comutate to simple fixed BH1, BL1 parameters but its not work. Pekka please indicate me direction which I should focuse.
Thanks a lot
Kamil.
I have started to read the code and looked at the gui as well but i think there is some kind of test mode missing, where you could just start the motor at very slow speed to test it without any encoder.
if I understand the code good enough, i will add such a mode to the software. i think that this will make development easier for beginners or people who have trouble with the encoder....
Hi Pekka,
What tool/version was used for firmware?
I tried loading the project to STMworkbench but it reports error on not recognizing uint16_t
Should the components in KiCad schematic be connected?
Have you got any progress with posting videos?
Rgds,
Tapio
ps above in english for wider audience
Is there a BOM available?
Hi. You are correct, it refers to the number of pole pairs in the motors. The name seems to be stupid.. :)
So encoder_poles = all coils / 3
Is it right?
BTW what does commutation_offset mean?
thx for your reply.
Originally posted by @y5664579 in #14 (comment)
Hi, do you intend adding sensorless
option for this project?
can you tell me and maybe others how to use this? how does configuring the servo work? I cant start the GUI when opening with python.
Hello
What do you think it is possible to add PID position conttol of the mcm_xyz user from cnczone to this SDK. It auto generates code and project for IAR or Keil. From what i looked it is implemented only Speed and Torque in the ST Motor SDK.
FOC (Field Oriented Control) of 3-phase Permanent Magnet motors (PMSM, BLDC) brings increase torque ,efficiency, and reduce noise and torque ripple.
https://www.youtube.com/watch?v=yFecre8dacY
Hi,
Excellent open source project.I try to run it everything is fine but I don't know the specific meaning of encoder_poles.
It refers to the motor coil pair?It refers to the encoder subdivision?Or something else?
I read the code, but only in one calculation.Please tell me what it means.
Thanks a lot
y5664579.
Hello Pekka!
Your project looks really interesting to me, though I am struggling to get everything sorted with eclipse. Any chance you could add the binaries to the repository. Just flashing a .hex to a breakout board would do wonders to start prototyping.
Cheers
Peter
Hii iam very apriciate to your project.
For now i looking like this driver for my pmsm servo 220v 5A. With ABZ encorder 2500ppr.
It is posible to used??
And this already suport step/dir interface right???
I will coustem the driver and igbt
With this chip IKCM30F60GA. (Already include driver igbt, you can check the data sheet)
Iam also want to used for my cnc. If u have time i wait for the answere🙏🙏🙏
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.