-
Notifications
You must be signed in to change notification settings - Fork 597
Motor Reversing/Direction change #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello Matthew,
I have not tried this library on the bluepill but I am eager to do it and I hoe to test it next week.
If you would like to use this code as is. Using Arduino IDE than it will need some minor adjustments, like this one. for sure.
Definitely a way to go, and a future (near) extension.
I am not sure that I understand completely, but to run the FOC you will need a certain way to retrieve the angle measurement. It can be using any sensor/communication you want. At the moment this simple library uses only encoders directly but it can be easily extended to use different sensors or even communication interfaces.
That is a really cool application. Feel free to contact me directly if you want to discuss this in depth. |
Hi Antun, Can you please provide a simple example of changing the direction, is this just a function that can be called in the loop or is there a bit more to it? I will try it with an Uno first and get it all working and then I will move to blue pill and see how I go. I don't think it will require too much if I stick to using the Arduino Boot loader on it as I currently do. But I will keep you updated and If I succeed I will pass on the working code for you to add if I get it done before you have a chance. I will do some testing tomorrow using ir2101 to drive the MOSFETs. https://www.infineon.com/dgdl/Infineon-ir2101-DS-v01_00-EN.pdf?fileId=5546d462533600a4015355c7a755166c Thanks, |
Hey Matthew, This is starting to be a multi-front communication. So let me answer you in short here and then I will send you some more details in an email. :) I will add a simple example to the examples folder no problem. Regarding the ir2101 I have not taken in cosideration that case. But as I said this is a basic implementation at the moment and I am more than happy to extend it to your case as well. Cheeres, |
"I will add a simple example to the examples folder no problem." |
* Modifications for ESP32 * change lowside to inline in class * reenable 2xpwm
Hi, Is there any way to reverse/change the direction of the motor? I'm also looking at using it on an stm32f103 blue pill, could the library be used with stm32? From what I can see is only the PWM high frequency function would need to be changed in order to use the stm32 clocks. I would like to use external mosfets for larger loads so that's something I will also look into. Will you implement using halls instead of the encoder? I plan on running my encoders directly to my CNC controller rather than being used for motor commutation, but I could possibly run encoder to both. Basically I want to build little FOC BLDC speed controllers using low cost blue pills for driving BLDC motors for servo control applications hobby CNC stuff using BLDC motors rather than steppers.
The text was updated successfully, but these errors were encountered: