Jump to content






Photo

L297/298 Stepper Motor Controller

Posted by Robotics Guy, in Electronics, Completed Projects 22 July 2011 · 1,158 views

Completed Project
My first L297-298 stepper motor controller was made on prototyping board, which turned out to be a nightmare for two reasons. One, it's really hard to keep track of all the wires and where they're supposed to go when you're trying to assemble the board. Two, I meticulously made the wires all the "right" lengths because I wanted the stepper motor controller to look pretty. Even if you don't care about the board's looks and just cut and solder wires as fast as you can, it's still really time consuming and difficult. Here are some pictures of my first board and, below those, a video of a stepper motor running off it:

Posted Image

Posted Image





And here is the schematic:

Posted Image

A better way to make a stepper motor controller is to make a printed circuit board, and then simply drop the components in. After making the PCB, placing the components and soldering them hardly takes any time at all, in contrast to the proto board which took a ton of time to make. Here's a picture of the first stepper motor controller I made in PCB-form:

Posted Image

Here is the schematic for the PCB version of my stepper motor controller. Notice that some improvements were made, such as the Schmitt trigger to help filter out noise.

Posted Image

I want to thank Phil at PMinMO.com for his help when I was designing the PCB. He has a lot of experience with these stepper motor ICs and gave me a lot of advice. I also borrowed the idea of using a Schmitt trigger from him.




hi
can you tell how to control clock signal????
  • Quote
  • Report
The CLOCK pin is used to step the motor. Toggling the clock signal from low to high makes the motor step. Take a look at the bottom of page 3 in the L297 datasheet for the "official" pin description.

You can also take a look at my PIC18F4550 CNC machine firmware to see an example.

Hope that helps!
  • Quote
  • Report

or

Tags

  • Completed Project
  • Build Log
  • Electronics
  • CNC
  • Automotive
  • SMD
  • programming

Recent Comments

Sponsors