Min menu


Project 33 : Stepper Motor

 Stepper Motor

Picture result for stepper engine nema 17 

One of the least demanding and cheap approach to control stepper engines is to interface L298N Motor Driver with Arduino. It can control both speed and turning course of any Bipolar stepper engine like NEMA 17. 

On the off chance that you are anticipating building your own 3D printer or a CNC machine, you should control a lot of stepper engines. What's more, having one Arduino control every one of them is definitely not a decent alternative. All things being equal, it is prescribed to utilize a committed stepper engine driver like A4988. 

Controlling a Stepper Motor With a H-Bridge 

As L298N module has two H-Bridges, every H-Bridge will drive one of the electromagnetic loops of a stepper engine. 

By empowering these electromagnetic curls in a particular grouping, the shaft of a stepper can be pushed ahead or in reverse unequivocally in little advances. 

Nonetheless, the speed of an engine is controlled by the how as often as possible these curls are empowered. 

Beneath picture delineates driving stepper with H-Bridge. 

Controlling a Stepper Motor With a H-Bridge 

Driving Bipolar Stepper Motor (NEMA 17) 

In our trial, we are utilizing NEMA 17 bipolar stepper appraised at 12V. It offers 200 stages for every insurgency, and can work at 60 RPM. On the off chance that you don't as of now have these details, discover now as you will require them for the sketch. 

Before we fire connecting the engine with the module, you should decide the A+, A-, B+ and B-wires on the engine you intend to utilize. The most ideal approach to do this is to check the datasheet of the engine. For our engine these are red, green, blue and yellow. 

NEMA 17 Bipolar Stepper Motor Coil Pinout Color Code 

The associations are genuinely basic. Start by associating outside 12V force supply to the VCC terminal. Furthermore, keep the 5V-EN jumper set up. 

You likewise need to keep both the ENA and ENB jumpers set up so the engine is constantly empowered. 

Presently, interface the info pins(IN1, IN2, IN3 and IN4) of the L298N module to four Arduino advanced yield pins(8, 9, 10 and 11). 

At last, interface the A+, A-, B+ and B-wires from the stepper engine to the module as appeared in the delineation beneath. 

Wiring NEMA 17 Stepper Motor with L298N and Arduino 

Arduino Code – Controlling NEMA 17 Stepper Motor 

The accompanying representation will give you complete comprehension on the most proficient method to control a bipolar stepper engine like NEMA 17 with L298N engine driver and can fill in as the reason for more pragmatic examinations and undertakings.