Howdy there folks.
Here's the deal!
I have a daughter who is VERY interested in software development as a career. She's already put together some web sites complete with credit card ordering and etc, but she wants to try her hand at something more "programmy". To this effect, I've talked her into writing some code for a servo controller.
WHY?!
A couple of reasons. The UHU is good, but does not have current control, or adjustable cross conductance dead time, or open source. I would like this project to be open source for the hardware and software.
The reason I want to build it is because the various controllers out there all are limited to about 3 amps, until you get to the multiple hundreds of dollars range, THEN you get into the 6+ amps controllers that are suitable for a nema 34 motor (32? I mix these up all the time).
So, what I am wanting to use is luminary microsystem's lm3s811 controller (because I have several of them *AND* it's fast fast fast with LOTS of pwm capability, 1mhz a/d conversion on two channels, and has lots of memory and the development boards for them are cheap and programmable via usb.)
The feature set I would like to have, initially, is the following.
1) It can control a bipolar stepper motor with or without a shaft encoder.
2) It can control a bldc motor with a shaft encoder (quadrature only at this time)
3) It can be set up using a serial port, or an I2C bus.
4) It can have it's maximum current to the motor set up via dipswitches or serial port. (PROBABLY will just use the serial port as I more or less would like to keep the dip switches to a minimum)
5) it will use surface mount components for cost and size considerations except for the mosfets (or igbt's) which will be thru hole for ease of replacement and ease of mounting a heat sink. (I beleive this will give me more flexibility).
Now then, the help part.
I am using the general design of the allegro style stepper controllers, but I want to measure the current at "The right place"
I'm not sure if that should be at the bottom of the common ground for the h-bridges, or if it will be at the motor windings. I've been researching this quite a bit and would like to avoid the noise problems that prevent the allegro controller from making even steps at the top and bottom of the microstepping current curves.
Also, the processor I'm interested in using multiplexes the a/d converter which means I would not be able to get a simultaneous snapshot of all the motor phases, and with BLDC's typically requiring 3 phases, I'm thinking that I will have to reevaluate either the CPU, or knuckle under and use three seperate a/d converters of 3 sample hold circuits.
Any and all suggestions would be appreciated.
Rick