After some research I came across the RepRap project and decided it would the most cost effective route. I like making my own electronics and I was expecting the MakerBot Store to start offering the motor controller PCB's again, but they never did. So I set out to create my own motor controller board. I wanted 4-axis stepper control, power regulation, parallel port connectivity (in case a CNC router became more important) and opto-isolated I/O's all one board.
This instructable follows the steps I used in order to create my Quad Stepper Controller.
Why a 3-D printer ?
- because they're awesome, they can create something from the ground up. This something can take almost any form that will fit inside of the printable area. All the 3-D printer requires is plastic filament and a design. Currently I am planning on building a RepRap Mendel, buying it piece by piece in order to avoid knowing the full price :)
What will I print ?
- everything; the ability to print almost anything your imagination comes up with is priceless. Some of the things I might print could be enclosures, mounting hardware, tool holders, prototyped parts and of course RepRap parts to name a few.
Step 1: Schematic design
The driver design is based around Allegro's A3982 DMOS Stepper Motor Driver with Translator, unfortunately this is is surface mount so prototyping will be more difficult. The circuit also contains support components including voltage regulator, filtering capacitors and protection components. The A3982 is a constant current motor driver which means it can drive a variety of stepper motors.
The other half of the circuit contains opto-isolators. The goal of this half was to provide protected I/O's to the parallel port just in case I happened to loose interest in a 3D printer and decide to build a CNC router.
Warning: If you decide to use the schematic provided, you may have to re-design the opto-isolator circuit. Two (possibly more) of the opto-couplers are stuck on. Have not been able to troubleshoot the issue yet.
Step 2: Ordering parts
1 - HM891-ND - enclosure
1 - CR379-ND - finger gaurd
7 - 425-2177-5-ND - optocoupler
1 - ED90054-ND- 28 pin socket
10 - 455-2266-ND - male JST connector
10 - 455-2247-ND - female JST connector
10 - 455-2219-ND - male 3 pin JST connector
10 - 455-2250-ND - female R/A JST connector
100 - 455-2261-1-ND - JST pins
4 -WM1352-ND - female motor connector
4 - WM23701-ND - male motor connector
20- WM3112CT-ND - motor connector pins
4 - 620-1299-1-ND - allegro A3982 stepper drivers
1 - RJHSE-5385-ND - RJ45
20 - 399-1249-1-ND - 100nf cap (1206)
10 - 399-1221-1-ND - 1nf cap (1206)
10 - 399-1251-1-ND - .22uf (1206)
5 - PCE3754CT-ND - 100 uf cap
4 - 3362P-103LF-ND - 10K trimmer 1/4 inch
30 - P10KECT-ND - 10K resistor (1206)
30 - P1.0KECT-ND - 1K resistor (1206)
10 - CSRN20.25FICT-ND - .25 ohm resistor
10 - P2.7KECT-ND - 2.7K ohm resistor (1206)
10 - P470ECT-ND - 470 ohm resistor (1206)
10 - P150ECT-ND - 150 ohm resistor (1206)
1 - 497-7255-1-ND - 5v regulator
5 - MMBT3904FSCT-ND - NPN transistor sot 23
1 - L717SDB25P-ND - DB25 connector
20 - 160-1169-1-ND - green LEDs (1206)
1 -EG1526-ND - thin switch
Step 3: Board layout
- First, if you have an enclosure in mind measure the available board area inside. Unfortunately Eagle CAD limits the size of the board to 3.2" X 4" so if your enclosure is larger you will have wasted/empty space inside. In my case, the aluminum enclosure I chose was built with channels for the board to slide into; about 2.9" X 3.54"
- Second, this design is based on a two layer board, there can only be so many intersections in one area. I chose to space the Allegro stepper controllers evenly under the fan. The fan itself had to be mounted directly onto the PCB so it could all be slid into place.
- Finally, If you are designing your own board; be sure to triple and quadruple check your layout before sending out to a fabrication service. Eagle makes it easier but more time consuming with their DRC (design rule check) to check for design errors. I decided to use Sparkfun's Batch PCB, the directions are well documented on Sparkfun's website and countless instructables.
Step 4: Solder it
- First, test your solder paste; observe how it flows and how hot it must be to turn shiny. IC's take some practice too much paste and pins will be soldered together, too little and they wont make good contact.
- Second, paste, place and solder in small groups from smallest to largest components onto the PCB. If you are using another method such as skillet reflow or a heatgun all of the components can be soldered at one time.
- Finally, this is optional but you may want to test individual circuits before they get tied to other components. This can only be done during the soldering process.
Step 5: Board extras
Step 6: Cutting holes
- Fan, I used an adjustable fly cutter for the fan hole. Dangerous but effective, the hole was then covered with a finger guard.
- Motor connectors/sensors, luckily the end pannels are made of plastic and easy to file by hand.
- Computer/power/switch, these connections are also on a plastic end and can be filed by hand.
- Various screws, were drilled and tapped for the finger guard and PCB securing.