× Forum Header

Configuring a L297 Board Reprap Stepper v1.2)

More
27 Nov 2010 00:15 - 27 Nov 2010 09:30 #5654 by gatonero
Hello EMC community,

after 10 days trying to get my Mini-CNC mill running with EMC2, reading a lot of tutorials and forum threads I'm still not able to get my machine running as expected.

This is what the machine is doing:

X axis: both jog directions move towards the minus direction
Y axis just one jog direction moves towards minus direction, the other doesn't move
Z axis: runs perfectly

I'm running Ubuntu 10.04 "Lucid Lynx" LTS with EMC2/AXIS version 2.4.5.

I'm using a RepRap Stepper Motor Driver 1.2 which is wired as you can see here www.flickr.com/photos/mantao05/437399371...es/o/in/photostream/ . It's an ordinary L297 / L298 board with STEP, DIR, ENABLE, MIN-LIMIT and MAX-LIMIT pins. For each axis one board is necessary. Where you can see the Arduino board in the drawing, I'm connecting a parallel printer cable, which is connected to my PC, without the ground contact. For further informations please have a look for Wiring . All axis are wired and configured identically.

This is my .hal file which I got from stepconf: (see attachment)

Why is there no yenable and zenable?

Any help is highly appreciated.

File Attachment:

File Name: ContraptorMiniCNC.hal
File Size:3 KB
Attachments:
Last edit: 27 Nov 2010 09:30 by gatonero.

Please Log in or Create an account to join the conversation.

More
27 Nov 2010 10:54 #5655 by Rick G
Hello,

It has been my experience that if an axis moves the same direction no matter what direction you jog it then the direction signal is not changing. You could try connecting a meter to the direction pin and see if it changes when you change direction. It seems that you may need to change some of the pin assignments.

Rick G

Please Log in or Create an account to join the conversation.

More
27 Nov 2010 11:00 #5656 by Rick G
By the way you can see what the pins are doing by go to Machine, Show Hal Configuration, Watch or show to help troubleshoot.

Please Log in or Create an account to join the conversation.

More
27 Nov 2010 12:42 #5659 by step4linux
Replied by step4linux on topic Re:Configuring a L297 Board Reprap Stepper v1.2)
gatonero wrote:

I'm using a RepRap Stepper Motor Driver 1.2 which is wired as you can see here www.flickr.com/photos/mantao05/437399371...es/o/in/photostream/ . It's an ordinary L297 / L298 board with STEP, DIR, ENABLE, MIN-LIMIT and MAX-LIMIT pins. For each axis one board is necessary. Where you can see the Arduino board in the drawing, I'm connecting a parallel printer cable, which is connected to my PC, without the ground contact. For further informations please have a look for Wiring . All axis are wired and configured identically.


Maybe I missed something, but I have not seen how you wire the parallel printer cable to the whole thing.

why without ground contact ?

There are yenable and zenable signals in the hal as well as xenable.
But due to limited number of pins of a parallel port, stepconf uses only one enable for all axis.
You can connect this signal parallel to all your axes.
If you want individual enables, I assume you have to edit hal, excluding stepconf. I don`t see any reason for this in a typical machine.

Gerd

Please Log in or Create an account to join the conversation.

More
28 Nov 2010 10:41 - 28 Nov 2010 11:02 #5679 by gatonero
Thank you for your suggestions. I checked the direction pins with "Show HAL Configuration" and the dir signals changed as expected. But I will continue to observe it more detailed.

Here the description how I connected the stepper driver pins to the parallel cable. First I cut off one end of the parallel cable and connected the soldered the wires to a stripped perfboard. Via a pin connector I attached the stepper drivers. To reduce EMF i wrapped the whole thing with aluminum, of course isolated it before.



These are my connection settings:
Output Pin	Function	Invert		
1	        Unused			        
2	        XDIR			        
3	        XSTEP			        
4	        YDIR			        
5	        YSTEP			        
6	        ZDIR					
7	        ZSTEP					
8	        Unused					
9	        Unused					
14	        AMP-ENABLE					
16	        AMP-ENABLE					
17	        AMP-ENABLE					

Input Pin	Function	        Invert
10	        XMAX	        yes
11	        XMIN + Home	yes
12	        YMAX	        yes
13	        YMIN + Home	yes
15	        ZMAX + Home	yes
For the ground connection I will try to connect it to the parallel cable shield.

gatonero
Attachments:
Last edit: 28 Nov 2010 11:02 by gatonero.

Please Log in or Create an account to join the conversation.

More
28 Nov 2010 13:37 #5684 by andypugh
I see an oscilloscope in the background, that should be very useful. First look to see if the step/dir pins are appearing at the perfboard "breakout" and also make very sure that they are the right way round.

It is common (and preferable) for parport signals to be active-low, especially amp-enable as unconnected pins tend to get pulled high.

Please Log in or Create an account to join the conversation.

More
14 Dec 2010 22:40 - 15 Dec 2010 11:08 #6048 by gatonero
Thank you all for your suggestions. In the end I got my Contraptor Mini-CNC mill running with EMC2 :-D

Most helpfully was the question
[quotewhy without ground contact ?][/quote]

So to make the adapter from the parallel port to the L297 / L298 boards I made something more reliable and conntected the GNDs. to one parallel port GND.



I also connected the ENABLE signals parallel to the L297 / L298 ENABLE pins.

To use the oscilloscope wasn't really necessary for getting the machine running, a multimeter with continuity testing made the job.

Now I'm looking forward to get full control with EMC2 :-D

Thanks
Christoph
Attachments:
Last edit: 15 Dec 2010 11:08 by gatonero.

Please Log in or Create an account to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum