Re: servo driver on a chip ?
Posted by
Dennis Schmitz
on 2006-08-03 06:12:30 UTC
I was waiting for someone else to answer this, but nobody stepped up.
How homebrew does he want to get?
Generally, Step/Direction is a method to command steppers controllers.
The stepper controller then decides how to energize the windings,
depending on whatever mode it's in -- single step, half step, quarter
step, etc.
It's been expanded, probably out of convenience, as a general command
signal to all kinds of controllers, including DC and AC servos.
When connected to a servo, a controller/driver will drive appropriate
current into the windings to move the shaft to the appropriate
position that the controller reads back with the encoder. Basically,
the controller/driver is faking being an open-loop stepper to the
positioning software.
If he wants to go homebrew, have him buy a Robostix:
http://www.gumstix.com/store/catalog/product_info.php?products_id=139
The Robostix ($50) can function as a motor controller. It has an Atmel
ATMega128 (AVR). It has several peripherals (check the Atmel data
sheet) including an 8 channel A/D converter (useful for monitoring
current), 6 PWM outputs, and many I/O pins.
He should connect power amplifiers to the PWM channels to drive his
motors. Two channels for a DC servo, three channels for an AC servo,
and four I/O channels for a stepper. If he wants to do microstepping,
he'll need four pwm channels for a bipolar and two PWM channels for a
unipolar motor.
Generally speaking, he'll be only able to put one PID loop in each
AVR, so if he's running position feedback, he'll have one micro for
each motor.
Output drivers are cheap to build. Look at International Rectifier
first for MOSFETS and gate drivers. They have a wide variety. Choose
gate drivers with at LEAST 1A output drive to minimize MOSFET
switching time. I'm partial to the IR20124S because it has on-chip
current limiting and dead-time generation, but the IR2110 has 2A
output meaning the MOSFETS will switch faster and dissipate less
power.
For your MOSFET, pick one that matches your power supply and current
needs. Among those that fit, pick the one with the lowest gate
capacitance.
Note on the gate driver output: The higher the current in and out of
the gate while switching, the faster the MOSFET switches. These gate
drivers are intended for DC/DC converter or audio power amps, so they
switch very fast. A Mosfet with a 4V switching threshold, 1300pF gate,
and a driver capable of 1A switches in around 20ns (depending on wire
resistance).
Note that if you have 50V switching in 20ns, you create all kinds of
RF even if your PWM frequency is low so you should use an inductor on
the output (use the ones designed for DC/DC converters).
If he buys a Gumstix as well, he can use it to program the Robostix or
he can use the JTAG port for programming and debugging.
Remember a PID loop chews up an entire AVR, but that one AVR can drive
a dozen steppers, probably more.
How homebrew does he want to get?
Generally, Step/Direction is a method to command steppers controllers.
The stepper controller then decides how to energize the windings,
depending on whatever mode it's in -- single step, half step, quarter
step, etc.
It's been expanded, probably out of convenience, as a general command
signal to all kinds of controllers, including DC and AC servos.
When connected to a servo, a controller/driver will drive appropriate
current into the windings to move the shaft to the appropriate
position that the controller reads back with the encoder. Basically,
the controller/driver is faking being an open-loop stepper to the
positioning software.
If he wants to go homebrew, have him buy a Robostix:
http://www.gumstix.com/store/catalog/product_info.php?products_id=139
The Robostix ($50) can function as a motor controller. It has an Atmel
ATMega128 (AVR). It has several peripherals (check the Atmel data
sheet) including an 8 channel A/D converter (useful for monitoring
current), 6 PWM outputs, and many I/O pins.
He should connect power amplifiers to the PWM channels to drive his
motors. Two channels for a DC servo, three channels for an AC servo,
and four I/O channels for a stepper. If he wants to do microstepping,
he'll need four pwm channels for a bipolar and two PWM channels for a
unipolar motor.
Generally speaking, he'll be only able to put one PID loop in each
AVR, so if he's running position feedback, he'll have one micro for
each motor.
Output drivers are cheap to build. Look at International Rectifier
first for MOSFETS and gate drivers. They have a wide variety. Choose
gate drivers with at LEAST 1A output drive to minimize MOSFET
switching time. I'm partial to the IR20124S because it has on-chip
current limiting and dead-time generation, but the IR2110 has 2A
output meaning the MOSFETS will switch faster and dissipate less
power.
For your MOSFET, pick one that matches your power supply and current
needs. Among those that fit, pick the one with the lowest gate
capacitance.
Note on the gate driver output: The higher the current in and out of
the gate while switching, the faster the MOSFET switches. These gate
drivers are intended for DC/DC converter or audio power amps, so they
switch very fast. A Mosfet with a 4V switching threshold, 1300pF gate,
and a driver capable of 1A switches in around 20ns (depending on wire
resistance).
Note that if you have 50V switching in 20ns, you create all kinds of
RF even if your PWM frequency is low so you should use an inductor on
the output (use the ones designed for DC/DC converters).
If he buys a Gumstix as well, he can use it to program the Robostix or
he can use the JTAG port for programming and debugging.
Remember a PID loop chews up an entire AVR, but that one AVR can drive
a dozen steppers, probably more.
On 8/2/06, turbulatordude <dave_mucha@...> wrote:
> Hi all,
>
> A friend is just getting into CNC and wanted me to look for a
> home-brew way to use servo motors.
>
> There are servo drivers on a chip, but the one found is for postioning
> servo's not step and direction use.
>
> Is there a name for the two different technologies ?
>
> both being servos is confusing.
>
> Also, is there a chip, or a circuit or a PIC or AVR method of reading
> the encoders and controlling the motors ?
>
> Dave
Discussion Thread
turbulatordude
2006-08-02 11:17:41 UTC
servo driver on a chip ?
Dennis Schmitz
2006-08-03 06:12:30 UTC
Re: servo driver on a chip ?
Fred Smith
2006-08-03 07:15:33 UTC
Re: servo driver on a chip ?
figNoggle
2006-08-03 08:03:45 UTC
chinese dro scale shorting dro display?
Anders Wallin
2006-08-03 09:46:07 UTC
Re: [CAD_CAM_EDM_DRO] Re: servo driver on a chip ?
figNoggle
2006-08-03 10:23:32 UTC
Re: [CAD_CAM_EDM_DRO] chinese dro scale shorting dro display?
Klaus Pack
2006-08-03 10:56:44 UTC
Re: [CAD_CAM_EDM_DRO] chinese dro scale shorting dro display?
figNoggle
2006-08-03 11:03:21 UTC
Re: [CAD_CAM_EDM_DRO] chinese dro scale shorting dro display?
Andy Wander
2006-08-03 11:38:55 UTC
RE: [CAD_CAM_EDM_DRO] chinese dro scale shorting dro display?
Klaus Pack
2006-08-03 12:02:04 UTC
Re: [CAD_CAM_EDM_DRO] chinese dro scale shorting dro display?
Hugh Prescott
2006-08-03 12:45:05 UTC
Re: [CAD_CAM_EDM_DRO] Re: servo driver on a chip ?
turbulatordude
2006-08-03 14:47:02 UTC
Re: servo driver on a chip ?
Dennis Schmitz
2006-08-03 18:07:44 UTC
Re: servo driver on a chip ?
Dennis Schmitz
2006-08-03 18:23:46 UTC
Re: servo driver on a chip ?
turbulatordude
2006-08-03 20:42:25 UTC
Re: servo driver on a chip ?
Dennis Schmitz
2006-08-03 22:16:25 UTC
Re: [CAD_CAM_EDM_DRO] Re: servo driver on a chip ?
turbulatordude
2006-08-04 01:45:01 UTC
Re: servo driver on a chip ?
Kenneth A. Emmert
2006-08-04 07:57:39 UTC
RE: chinese dro scale shorting dro display?
Alan Marconett
2006-08-04 09:11:52 UTC
RE: [CAD_CAM_EDM_DRO] Re: servo driver on a chip ?
jzmuda2000
2006-08-04 09:24:11 UTC
Re: servo driver on a chip ?
Stephen Wille Padnos
2006-08-04 10:35:01 UTC
Re: [CAD_CAM_EDM_DRO] Re: servo driver on a chip ?
Dennis Schmitz
2006-08-04 10:36:49 UTC
Re: servo driver on a chip ?
Dennis Schmitz
2006-08-04 10:43:17 UTC
Re: servo driver on a chip ?
figNoggle
2006-08-04 12:31:17 UTC
Re: [CAD_CAM_EDM_DRO] RE: chinese dro scale shorting dro display?
figNoggle
2006-08-04 12:36:07 UTC
RE: [CAD_CAM_EDM_DRO] chinese dro scale shorting dro display?
Lee Studley
2006-08-04 14:31:33 UTC
Re: chinese dro scale shorting dro display?
Alan Marconett
2006-08-04 14:38:23 UTC
RE: [CAD_CAM_EDM_DRO] Re: servo driver on a chip ?