
Tribes
-
Content Count
42 -
Joined
-
Last visited
Posts posted by Tribes
-
-
-
Boards are on their way from elecrow, but I guess they won't be here for another week. I already got all the components from mouser (interestingly cheaper than buying them in Germany) so when the boards arrive I should be good to go.
atm, I got a 800Kv 9.5A@11.1V and a 750Kv 18A@14.8V (both max. amp) motor. Oh, and both are hobby motors.
But I'm still looking for a nice low Kv, low power(current) motor, and probably a sensored one.
-
Looks amazing!
How much power should a feasible infrared oven have at least? Is 800W enough?
Because 800W ones are easily available in germany (and they are quite cheap, too)
-
If you really want PWM on P1.0 I would rather generate the signal using interrupts generated by TimerA than a loop with delays. This is a much more elegant solution and allows you to use the low power modes of the MSP430. I am pretty sure you can find examples for software PWM on the forum
-
P1DIR |= BIT6; P1SEL |= BIT6;
Because in your code you only set P1.6 to output and activate the CCR output(in your case PWM signal) for it.
Unfortunately P1.0 is not connected to a TimerA CCR, so you will have to toggle it manually using an interrupt routine to generate a PWM signal.
-
-
Good catch, completly forgot about the pull-ups! Added them and I added testpads connected to P3.5, P2.3 and P3.4 so I can connect hall sensors more easily if need be.
-
Hi Tribes,
Sorry but it slipped my mind to send out the BLDC booster. I wanted to rework it with some new changes that I was looking at and didn't get around to it yet.
I do have some new code though that is coming along nicely.
I don't think that the sch resolution is good enough to read the pin out completely but would like to take another look.
Hey,
no problem, I wouldn't have had the time to play with it anyway. But good to see you're working again on your BLMC, too
And a high-res picture of the schematic:
http://xchange.usp-connection.de/tribes/schematic.png
(sorry, uploading it here somehow doesn't work right now, will try again later)
-
So, I finally got around to work on the board again.
I replaced the 20pin G2553 with the 28pin TSSOP, routed the inputs of the drivers to TA1.1/T1.2 and added Zeners on the back-emf lines. In the schematic it still says IR2184 although I am going to use the IR2183(separate inputs for high-side and low-side), but since they are pin-compatible I was too lazy to change it.
Oh and I also changed the Comparator inputs to CA1/4/5 vs. CA2
Schematic and board layout as pictures:
Mockup pictures from OSHpark.com:
And finally the eagle files:
I'll also update the first post.
-
@@bluehash thanks, sponsoring would be nice but the board is not completly ready yet(still have to include the changes suggested above) and won't be at least until Sunday. So I guess expediting won't be possible.
-
Very cool project Tribes!! I was thinking of designing my own BLDC motor controller for an e-bike but I haven't had the time to get around to it. Your project is close enough where one could adapt it to work for an e-bike too with a few potentially minor changes. Thanks for the post!
Thanks! And your idea sounds interesting! If anyone has use for my design, feel free to use it
(just don't hold me responsible ;-) )
Also, are you heatsinking your MOSFETS? they might run a little warmer than you'd like that close together when running 20A.
I don't have any specific plans regarding heatsinking yet but I have e.g. seen 40 x 40 mm heatsinks, which you could glue to the MOSFETs. But as I said I haven't given it much thought yet, will figure it out along the way (as well as quite some other stuff :grin: )
-
Btw, I have quite a few of my bldc boosters sitting around, I could send you one to jump start your code dev, send me a pm if you want one.
That would be awesome! Will send you a pm right away
This board is just awesome
-
A couple of things to watch out for:
1) you should plan for some extenal flyback diodes in case the internal ones don't get the job done
2) I am not sure what the voltage tolerance for the comparator inputs on the MSP is, but you might get some HV spikes from the motor so maybe a zener for protection might be a good idea.
3) you might want to consider an optocoupler between the MSP and the Gate Driver, jus to make sure.
Thanks, I will try to include as much of this as I can in my next revision.
Do you even have enough code space for what you need (not sure how complicated an ESC controller gets but the quadcopter pilot code was fairly big IIRC, though it's done in Arduino which might be less efficient)? I found the MSP430 code somewhat inefficient. On my first project, I have almost 1K of code and it's maybe two pages of C code? :-(
No, I don't think code space will be a problem. I assume by "quadcopter pilot code" you mean the actual flight control which is of course a whole different story since it's way more complicated than the ESC.
Cool project, I did something very similar as well!
https://github.com/lgbeno/BLDC-Booster
There is software on there too that you are free to reference. It works with some exceptions. The method that I used for commutation is bemf integration similar to the ti instaspin approach. The issues that I had was that for very fast motors(>500Kv), I wasn't sampling the ADC fast enough to get the commutation timing right but for slow motors, it works great.
Nice. I ran across a video on youtube about the InstaSPIN-BLDC technology from TI yesterday, too, and I think it is quite interesting. I'm considering using it instead of the zero-crossing technique but I'm not sure yet. (maybe I implement both and compare which performs better)
A few words of wisdom since I worked on this project for quite some time. I would recommend using the 28pin Tssop or qfn32 versions of g2553. Reason being is that it has 3 pins attached to ta1.1 which you can use for the high side pwm signals and 3 pins attached to ta1.2 to be used for low side pwm signals. This does 3 things, frees up timer 0 for something else, allows you to do dead time insertion (if your gate drivers don't already) and just makes your code easier too!
Yes, I will do that, I was first planing with a 20pin G2553 as my idea was to create a BoosterPack but I later on decided to do a standalone board since it makes more sense regarding my plans.
The other thing is that you will see your pwm super imposed on your bemf which will likely cause false trips of the comparator. To solve this, there's a low pass filter but that also introduces a dc offset that throws off your zero cross point.Long story short, I came up with a different network that filters and then ac couples the bemf to the comparator. I was seeing pretty good results with that approach. Then I had to return my borrowed scope and have not been able to work on it. Good news is I'm getting a brand new Rigol DS2072 for keeps on Thursday.
My design includes low pass filter on the back emf but I would love to see what you have come up with.
Btw the schematics are very inspired by the microkoptor.de schematics, mine are as well... I wonder how they got away with the pwm glitches in their software. Obviously theirs works quite well.
Yes mikrokopter.de was one source of inspiration, as was mikrocontroller.de since they have a lot of information and quite a few people on the board there have realised BLMCs with atmel MCUs.
Sorry, bumped the send button. What I was trying to say was that with the single pin pwm input for the gate drivers, this tells me that they are complementary drivers, ie when the pin is high, high side get is on, when low, low side get is on. This is an issue for bldc because there are 6 different pwm states where you may be driving phase a high side and phase b low side, all other fets need to be off in this state. I don't think that is possible with these gate drivers.
You need to get drivers that have seprate inputs for high side and low side drive, or use 6 single channel drivers. Finding a cost effective gate drive is a difficult thing, especially for these huge 6mohm fets!
Hm, especially when I want to realize bipolar PWM you're of course right. Fortunately there is the IR2183 which is basically the same as the IR2184(pin-compatible) but with HIN/LIN instead of IN/SD. So I think I am gonna use that.
All those changes might take some time since I am not at home this and next week. So I only have internet via mobile phone, but I will see what I can do.
-
Very cool idea, what amp current are you hoping for?
Hopefully I can get at least 20A, but of course the more the merrier. Since I don't have much experience in this area, I have no idea how accurate my assumption is
I assume this is for a quad copter ESC project?
Yes, at the end of the day I hope I can build my own quad. But until then I still have a long way to go :grin:
Lookin forward to seeing more and best of luck!
Thanks!
-
Hi there,
my current project is to build a controller for a sensorless BLDC motor using a MSP430G2553. I want to realize trapezoidal control with Back-EMF/zero-crossing detection. I plan to detect zero-crossing with the Comparator(CA2/3/4 vs. CA1) and generate PWM using Timer1. Timer0 will be used for things like 30
- OhmMegaman, rohit and username
-
3
-
I would be in for one or two as well, but you can also consider me a "low priority customer".
-
Is the deal gone already? It is 15:18 (UTC+01:00) here now, and the tideals.com site still shows the "Do you hear that sound..." page.
I don't know about Norway, but in Germany we have Daylight Saving Time right now so we are actually in UTC+2 not +1
-
@@Tribes @@DanAndDusty Just drop me a PM with your address and an assurance you'll purchase it from the store once Bluehash has them up there and I'll get them in the post direct to you. Note that I've only got the acrylic not a breadboard. I don't know if they'll be bundled together in the store.
Will do. And Breadboard is not a problem, plenty of those are available on ebay
-
I'll send them off to @@bluehash on Monday. If anyone in Europe want's one then shout and I can mail it directly from the UK.
Hey there, they look amazing! I'd really love to have one of those clear ones!
Sitting in Germany
-
Ahhh, now it works. I just ordered. Thanks! :thumbup:
-
Yes, I added some headers
-
Hi, I can't checkout in the store because there is no shipping option available. (Shipping to Germany)
-
abecedarian ----- 2 modules ----- 2 boards
Tribes ----- 2 modules ----- 2 boards ----- Germany
When do you want me to remind you about the headers(discussed earlier)?
-
They're only free in the US and Canada.
Damn!
Sensorless BLDC motor control
in Projects
Posted
I have been super busy the last couple of weeks, so I didn't really get to do much.
So far I have completly soldered one board and wrote a simple program to test the MOSFETs and drivers.
And they work! Flashing the MCU as well!
But I suspect the bootstrap capacitors may be to small, but we'll see, and changing them is not that difficult.
Tomorrow I can hopefully test the comparator stuff and then start some real development.
And some pictures: