NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Hardware Driver Boards L297/L298 Bipolar stepper driver

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: L297/L298 Bipolar stepper driver

L297/L298 Bipolar stepper driver 15 Oct 2011 22:12 #13942

Has anyone gotten the stated driver to work with EMC2? I can't seem to get mine to work, what are the values you used for the driver in the stepconf wizard. Is there a way to see if the serial cable is actually outputting data because I think that that is not working. I think its mainly that I don't have the right values, but on the first page for the driver setup I used these four values (top to bottom):

5000
5000
5000
5000
and
500
4000
5000
1000 <-- I think, I can't remember

Specifically, when I try to test my axis in the wizard, I can't get the motor to move with the jog or distance move tests. The pins are correct, with the step pin inverted for the l297. I did remove pin 1 (defined as the inverted step signal for my axis) from my l297's clock pin and then just connected the l297's pin to random pins on the serial cable and the motor rotated, albeit erratically, but it will rotate in one direction for full rotations by doing this depending on the random pin. But when connected to the pin 1 which was defined as the original step pin the motor does nothing and just locks up , which is what it does on idle with no input.

I bet its just a value thing, but I think it could also mean that either EMC2 is not working correctly on my system or my LPT (I think that's what its called) port is broken or different somehow.
Last Edit: 15 Oct 2011 22:15 by unitedfollowers.
The administrator has disabled public write access.

Re:L297/L298 Bipolar stepper driver 16 Oct 2011 17:28 #13960

  • andypugh
  • andypugh's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 4136
  • Thank you received: 141
  • Karma: 129
Try driving LEDs direct from HAL with "setp" instructions.
ie, at the command line:

halrun
loadrt hal_parport cfg="0"
loadrt threads
addf parport.readall thread1
addf parport.writeall thread1
start

setp parport.0.pin-09-out 1
setp parport.0.pin-09-out 0

(and so on) checking with a multimeter. That should answer part of your question.

I like checking drivers this way as it removes a lot of extra complexity from the process.
(but you do need to remember the addf and the start)
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: PCW, jmelson
Time to create page: 0.950 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.