Step 5: Electronics

I started soldering the steppers. I used a ribbon cable to connect the steppers and solder them to the existing connections from the DVD boards. On the other end I solder a four pin header so that it could be used with a breadboard. The same thing goes for the Easydriver, solder pin headers and use them with the breadboard. Ribbon cable can be found in abundance around old computer shops and service centers. All those old disk drive cables can be of good use.

In the schematics I have added a relay for use with a fan. This can come in handy as the engraving produces some smoke.

The Easydriver have two pins called MS1 and MS2, these sets the step sequence. Tie them both to the five volt output from the Easydriver. This sets the step sequence to micro stepping . The four pins from the stepper connect to the motor output. All steppers I have found have all had the same pinout on the small connecting PCB. Connect the pins in the same order to the Easydriver as on the connecting PCB. The control pins (step, dir, gnd) goes to the Arduino. Besides this the Easydriver needs motor power connected. I use a twelve volt wall wart that drives the motors, fan and Arduino. There is a potentiometer that controls the power to the motors, I just set this to the lowest setting and turn it up a tad if the steppers don't have enough force. I don't know the rating on the steppers, if they gets to hot you’re driving them to hard.

The fan just needs to be connected to the fan output. A small computer fan works well, just connect the positive and negative leads to the correct output.

The laser driver is an LM317 based circuit with no specials. This will work fine but it is far from optimal. I am driving the laser diode far too hard at about 300mA and if you do that you can’t expect a very long life for the diode. The best solution would be to find a stronger laser and better driver but to keep to the spirit of things I wanted to use the laser from the DVDR itself. Laser on/off is controlled by the same relay as the fan.

If you want to simplify you could skip the whole laser driver and use a readymade driver. Then all you would have to do would be to connect the power to the fan relay. Of course this would probably be a little bit more expensive.

The whole thing evolved into a new Arduino shield, the Laser Shield. I have included the schematic and board layout in Eagle format . Creating a circuit board is a bit out of the scope for this instructable, but there are lots of really good guides here on Instructables.
If you want to make your own layout with Easydrivers I have made a Eagle library with the driver, it can be downloaded here .

 
Remove these adsRemove these ads by Signing Up
ianmcmill says: Nov 5, 2012. 6:12 AM
(removed by author or community request)
ianmcmill in reply to ianmcmillApr 23, 2013. 12:58 PM
Just wanted to say
Great tutorial and awesome idea !
mplaser says: Mar 17, 2011. 7:54 AM
Great Instructable! I'm interested in making one of these at my dorm and would love to start asap. Only problem is I'm a Mec major at my school not electrical :(. I'm not too familiar with the schematic and some of the components used. Is there anyway you could list the electrical components or explain it in layman terms? Sorry for any inconvenience, bit I'd love to start building one!!
Groover (author) in reply to mplaserMar 17, 2011. 9:18 AM
If you want to simplify you could skip the whole laser driver and use a readymade driver. Then all you would have to do would be to connect the power in to the fan relay. Of course this would probably be a little bit more expensive.

Laser driver circuit:
C1 0,1uF
C2 47uF 25v electrolytic
D2 SA15A
IC1 LM317
R1 3,9 ohm
R3 51 ohm
R4 1 K ohm
R6 500 ohm TRIM POTENTIOMETER

Relay circuit for fan and laser:
D1 1N4148
R2 2,2 K ohm
T1 2N2222
VR05R051 RR1A (306-1019-ND at Digikey should work.)

U1 EASYDRIVER
U2 EASYDRIVER
U4 ARDUINO
plb36 in reply to GrooverOct 23, 2012. 11:06 AM
Hi. I really want to make this but I have almost zero electronics experience. How would I go about getting, setting up, and using a ready made driver like you said?
imont in reply to GrooverJul 14, 2012. 11:59 AM
Hi

i have troubles with the relay circuit, at the half of the work, the laser does not cut mark all the displacements, what can i do? what other relay can I use?
imont in reply to imontJul 16, 2012. 9:27 PM
I changed the relay for a bigger and now is working 100% THANK YOU FOR THIS INSTRUCTABLE.
sarav_rvr in reply to GrooverMar 18, 2011. 12:55 AM
Thank you very much Groover. I`ll get back to you after finishing the project. :)
jtabor2 says: Nov 15, 2011. 8:11 PM
Great work, Groover. Could you recommend a ready-made driver?
Groover (author) in reply to jtabor2Nov 15, 2011. 11:22 PM
If your talking about laser driver I have no specific recommendations. But the people over at laserpointerforum might be helpful.
Ryutso says: Aug 28, 2011. 11:00 PM
So I came into possession of a groove2 laser diode driver. Would that work in place of your LM317 circuit?
SylvainSSiri says: Aug 18, 2011. 11:31 AM
It is a bit unclear how and where I can put my own driver.I will use a 1w laser diode,of course with protection,haha.Can you help me out on that?I will use this driver : http://cgi.ebay.ca/ws/eBayISAPI.dll?ViewItem&item=260599140613&ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649
GridPole says: Jun 29, 2011. 12:50 PM
Thanks for posting this Groover. I had a bunch of old PC parts, including a few DVDRs that I was going to toss but after seeing this it was quite an inspirational project.
Do you have to solder the wires to the stepper using the PCB strip? Can't you just solder them directly onto the pins on the motor? Asking because this may be a little beyond my skill level.
Groover (author) in reply to GridPoleJun 29, 2011. 11:10 PM
You could solder direct to the motor pins. I know a couple of people who did just that. I have no particular reason for soldering to the PCB strips.
Realfolkblues12 says: Jun 18, 2011. 2:08 AM
can anyone tell me if this will work to drive the laser and turn it on/off with Groover's design. I'm not too good at this stuff and i would like to buy a ready made driver.

http://cgi.ebay.com/Constant-current-laser-diode-driver-80-500mA-w-TTL-/380348154175?pt=LH_DefaultDomain_0&hash=item588e84413f#ht_754wt_1141
seekerdave in reply to Realfolkblues12Jun 19, 2011. 4:45 PM
Yes, the Aixiz constant current laser driver board works very well with the DVD diode. It is what I used in my build of Groover's design. You supply it with 5V and it provides the constant current to the diode. Best of all, it has a logic-level on-off input (just connect it to D12 on the Arduino board). This eliminates the need for the relay and the LM317 circuit.
Realfolkblues12 in reply to seekerdaveJun 26, 2011. 6:06 PM
Hey seeker dave thanks for the info! I was wondering if you could explain what the wiring should be for this setup? I have received the board but i'm not sure what goes where. it has

c2
vcc
ground
mod
r9
r10
seekerdave in reply to Realfolkblues12Jun 27, 2011. 6:47 AM
The Aixiz website has a photo in the item description that helps sort things out http://www.aixiz.com/store/product_info.php/cPath/28/products_id/104/osCsid/c2d8dafd1f5eaab5671f0e8ee4d64784
At one end of the board the pads labeled VCC and GND connect to a 5 volt source. For your project this could be a seperate power supply, a 5V regulator (Like a LM7805) running off your 9 to 12V supply, or you may be able to tap this off of your Arduino board (if it has enough current capibility). The current requirements from the 5V supply are in the 200-300mA range (for DVD diodes). Be sure that all the ground (GND) connections for the Arduino board, the stepper motor driver boards, and the power supplies are connected together.

The MOD pad (on the back of the board) connects to D12 on the Arduino board to control the laser on-off.

At the other end of the board. The pad in the center (next to the C2 label) is the "+" output (to the laser anode). On the other side of the board (next to the R10 label) is the "-" output (to the laser cathode).
theugleymonkey says: May 22, 2011. 7:40 AM
I was able to hook my motors up but I am having a problem. One of the axis is only turning in one direction. I try to give it commands to go the other direction but it doesn't work. I even tested my other motor that works both ways on the other motor controller and it still only moves in one direction. Any ideas?
theugleymonkey in reply to theugleymonkeyMay 22, 2011. 11:59 AM
Never mind it was a bad solder joint...
ellensundh says: May 5, 2011. 1:34 AM
I have a question... I have a vr05r051 relay but I can't find any information anywhere on how to use it..

Thanks!
Groover (author) in reply to ellensundhMay 5, 2011. 2:19 AM

Try this link.
lperkins says: Apr 12, 2011. 10:56 PM
Any tips on how to figure out the pinout on one of these motors? I wired it up straight across as suggested. My X axis will move forward 10mm every time I issue X10, but if I issue X-10 it moves the same way, just only half as far. My Y axis gets stiff and the motor buzzes if I turn up the power, but it doesn't even twitch when told to move. Instructions for determining if a servo is bad would be appreciated. :)
elabz in reply to lperkinsApr 13, 2011. 8:13 PM

If you saved the original ribbon cable with 4 conductors, most of the time I saw it wired in sequence: A(positive) A(negative)  B(positive) B(negative)  where positive and negative are actually just a matter of  convention - if moves in a wrong direction, swap them. If it moves back and forth instead of continuous move in one direction, swap A and B. 
 
This only applies to desktop drives I've opened so far. Laptop drives have these winding contacts all over the place because most of the time there are extra signals hitching a ride on that ribbon cable, so they just stick the winding where it's convenient due to layout. On a laptop stepper you'll just have to use a multimeter as Groover explained.

So, once you've identified the windings, you have 4 choices

swap polarities on A but not on B
swap polarities on B but not on A
swap polarities on A and B
swap A and B
Groover (author) in reply to lperkinsApr 13, 2011. 10:09 AM
If you measure the resistance on the pins two at a time you should find two pairs that are connected. Then hook up one pair to the motor output labeled A and the other pair to B.

That would be the two windings in the stepper. And if the stepper moves in mysterious ways try changing place on one winding.
lperkins in reply to GrooverApr 18, 2011. 6:03 PM
Needed more voltage. Power supply was only reliably supplying 10. Works like a charm now. :)
Groover (author) says: Apr 5, 2011. 12:35 AM
LM317 have three connection points. I cant check the Eagle files as I am at work at the moment. But if you look at the schematics you see the input connected to the relay out and the input connected to R1, to adjust the power to the laser the ADJ pin is connected to R4 and R5.

I'll have to give you a better answer as soon as I get home and can have a look at the board layout.

Pfeonyx in reply to GrooverApr 5, 2011. 1:10 AM
Thanks for the info on this. I was misreading the eagle files. I originally confused the LM317 for the interlock. I deleted that message to avoid additional confusion. Sorry for the confusion.
Pfeonyx in reply to PfeonyxApr 5, 2011. 1:17 AM
@Groover - What is the interlock on the Eagle board file next to the VR05R051? Also, what is the 2 pin connector next to the heatsinked LM317? Thanks again for this instructable!
Groover (author) in reply to PfeonyxApr 5, 2011. 4:04 AM
The connector next to the LM317 is a alternative connection for the laser. It is just connected in parallel to the screw terminal. If you buy a ready made laser sometimes they comes with a connector that can be used there instead of the screw terminals.

The interlock is supposed to be a safety feature. You can put a jumper there and ignore it or use it as a safety switch. I think a hardware switch is a safer option that to just trust software. For example if the software would malfunction for some reason while the laser is on it could be a good idea to be able to shut it down without having to pull out the power and USB. Of course this was never implemented in my hardware design even if it would be a good idea.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!