LATEST NEWS!
02/16/2010
I
finally got in some new bearings to test.
I've come up with an even better design that
isolates the push/pull forces of the coupler form the shaft of the gear motor.
Most of the binding I;ve seen in this setup (stalling of motors) appears to be
in the gearbox itself. The force of the jackscrew coupler is placed onto
the output shaft of teh motor, driving it hard in to either gear backplate.
The new clam-shell design captures the coupler and motor using a flange bearing
on the front side and a thrust bearing on the motor side. The aluminum
coupler loosely fits onto the output shaft of the gear motor ("D" shaped shaft).
The coupler's set screw is set loosely, allowing the motor's shaft to slide in
and out of the coupler. This allows the two bearings to take the axial
forces, rather than placing them on the output shaft of the gear motor (i.e.
adding friction/binding).
MORE INFO COMING SOON!

01/20/2010
My new firmware has a neat "learn" function (enabled by shorting a jumper upon
power-up) which drives each motor to both extremes while monitoring stall
currents. These are stall values are backed-off a bit and saved in EEPROM which
is read upon every power-up. I included this as part of my actuator setup since
these could be installed in various models of retracts, which due to
mechanics/wear, could have different stall currents. I also added code to drive
both gear down in case the RX signal is lost (i.e. fail-safe). I also mod'd my
control code extensively such that you can change the gear position even while
it is in route (not an easy loop to get working). Another portion of the code
that was fun (not!) was the control and monitoring of the two different retract
motors simultaneously (big ugly loop with ADC interrupts and some trickery...
Ug!). Nevertheless, the code is working better than I ever expected... all 200+
lines of it! I hope to test more this week.

PARTS/DESIGN NOTES
There are really three distinct pieces to this DIY retract idea, mainly the gear
motor-driven actuators, the actuator control circuitry/PCB and the Pololu
H-Bridge break-out board.
+
+

MECHANICS
The gear motors I decided on using are also
sold by Pololu.com and are miniature all-metal spur gear motors with a 50 to 1 (50:1) gear
ratio.

These motors have a heft of a torque for their small
size. Key specs include 625 RPM (at 5-6 volts) a 100 mA free-run current,
a torque of 15 oz-in (1.0 kg-cm) and a stall current of 1.6 A. The other
key feature of these motors are they use all metal gears, such to avoid stripped
gears during high loads and stalls. Even though a torque rating of 15
oz-in, these will be used to spin a 4-40 threaded rod, giving a torque gain of
x40 or 600 oz-in.
The
4-40 stainless-steel threaded rod is attached to the gear motor's output using a
small aluminum adapter/coupler. This coupler couples the output shaft, a
3mm D-shaped shaft, to the 4-40 threaded rod (a 2mm hole tapped to a 4-40
thread). The threaded rod is then held in tot he adapter using red Loc-tite
while the motor's shaft is held in using a set screw. The other key
element that is required (determined via testing) is a thrust bearing.
This
bearing is placed between the adapter and the motor's front face-plate.
During normal operation of the jackscrew, most of the force pushes on the
motor's shaft, hence pushing the output gear into the gear box. This
causes a bind situation, sometimes enough to cause the gear to be inoperative.
The bearing stops the shaft from being pushed into the gearbox, instead
distributing the load onto the motor's brass face-plate.
As
for a mount for the motor and gear-box, I used flat aluminum stock and bent them
using a vise and pliers. I made this simple clam-shell style mount which
captures the motor/gearbox and allows you to mount is as a air-cylinder
replacement using the same pivot pin the Robart air cylinder had used. The
4-40 rod was then threaded onto the existing T-nut that drives the retract's
trunion/cam. The actuator is then pinned to the back of the retract arm as
shown.
ELECTRONICS
This being a DIY project, I opted to use the Pololu
Dual Motor Driver board... as it can control two independent brushed motors,
while also providing a cool current sensing feedback mechanism which I use for
detecting retract end-points (motor stalls).
To
the left is a stock picture of the Pololu H-bridge break-out board (header comes
unsoldered, and needs to be soldered onto opposite side of PCB as shown here)
http://www.pololu.com/catalog/product/712
This nicely made Pololu breakout board uses 2
Freescale Semiconductor
MC33887 motor driver integrated circuits, making it easy easy to connect two
brushed DC motors running from 5 to 28 V and drawing up to 5 A (peak) each to
your project.
The
board incorporates motor-direction LEDs and a FET for reverse battery
protection, including required pull up/down resistors (makes my PIC control circuit easier!).
Below are a few pictures of the PCB I made which allows the Pololu
board to simply be plugged in. This control board controls both H-Bridge
motor controls (3 wires each, two for motor direction control and one for the
current feedback signal). Included on the control board is an LED, a
pushbutton switch (for stall learning function), two servo PWM outputs signals
(for controlling retract wheel doors/hatches), a jumper (for getting into
program mode: retract delays/stagger, retract door servo sequence enabling, and
other functions I come up with...)
I doubt I'll ever sell assembled kit but if there
are tinkerers out there that want to experiment, drop and email... I can
probably sell you at least a programmed PIC and maybe a PCB if I make some
extras.
These are new!... I need to etch.
Older PCBs are shown below....
Design Criteria Summary:
1) Design small but powerful gear system for driving
existing Robart gear (i.e. replacement to air cylinders)
2) Design small DIY control system to operate two retract motors (PIC based)
3) Use existing technology (i.e. H-bridge) if possible (don't re-invent the
wheel)|
4) Design PIC code so you can use a spare Rx channel to operate gear
5) Design PIC code so retracts automatically lower gear upon signal loss
(fail-safe)
6) Design PCB/PIC code so you can also sequence gear door servos
7) Design PIC code to allow enabling/disabling (jumper) of retracts staggering
effect...
8) Listen to customers and their needs! :)
H-Bridge Control Board - Parts List
...
1) One
(1) PIC 16F688 microcontroller (preprogrammed with "E-Retract" code)
(NOTE: I am converting to a
PIC16F684 which has 4 PWM channels... for also controlling/sequencing Retract
doors!... and of course, a darn new PCB needs to be designed!)
2) Three (3) 10K ohm resistors
3) One (1) 2.2K resistors
4) One (1) Servo Lead/Pigtail wire
5) One 2-pin header (for programming jumpers)
6) Two (2) 3-pin header (2x3 header for retract servo outputs)
7) One (1) 15 Pin Connector (for mating with Pololu Board)
8) One (1) .1uf Capacitor
9) One (1) 68 ohm resistor
10) One (1) 5mm LED (any color)
11) One (1) E-retract PCB...
Notes: ...
Building Instructions...
Below is the latest schematic that matches the new/latest
PCB...

* E-RETRACT BUILDING INSTRUCTIONS *
(Sorry, Under Construction!)

Testing and Operation Instructions...
Download the E-Retract User's Manual below (in PDF format... Adobe reader
is required)
*
E-RETRACT USERS' MANUAL
*
The web version
of the manual is shown below:
(Sorry, Under Construction!)
Programming
& Operating the "E-Retract"...
The E-retracts system consists of two motorized
actuators and the control electronics (Pololu H-Bridge breakout board and the
PIC mating board I designed). The control system allows the system to
control two separate actuators while also incorporating dual feedback controls
for sensing stall currents of both both. The controller must first "learn"
the stall currents of both motors such that the controller's current sensor does
not prematurely shut down the motor during normal operation. This
"learning" is enables by powering up the controller while having the "learn"
button pressed in. Upon being powered up, you will see the controller
actuate both actuators, driving them in both directions, while stalling the
motor (this is where the learn function measures the highest current draw and
stores it in memory).
One option on the controller is a jumper that either
enables (on) or disables (off) the retract wheel door/hatch servo functions (2
servo outputs).
To activate the wheel stagger function, tap the
"learn" button once while powered up to toggle on and/or off.
... more coming soon....
WANT TO BUY AN E-RETRACT CONTROLLER KIT/PARTS?
E-Retract
Controller Kit/Parts (requires Pololu H-Bridge board)
(Assembled & Tested)
(Sorry, Under Construction!)
E-Retract Controller -
Pre-Programmed PIC Only
(This is for one pre-programmed 16F684 PIC only... no other
parts)

CLICK HERE TO BUY ONE NOW !
(Sorry, Under Construction!)
E-RETRACT FAQ
Q1. ...
Additional Notes & Pics...