How to change the direction of rotation of a stepper motor with the help of Uno

I am new to the Arduino. I am trying to write the programming for a simple stepper motor (28BYJ48) by using Arduino Uno board. I want to rotate the motor in both clockwise and anti clockwise directions through the programming. If any one knows how to deal with this please reply me back. Thank You

There must be hundreds of Threads on the Forum about those stepper motors. Ask Google to find them for you.

...R

Make things easy for yourself and use a stepper library such as https://www.arduino.cc/en/Reference/Stepper or http://www.airspayce.com/mikem/arduino/AccelStepper/

Both include examples.

First 3 links on Google (Searched "Arduino Stepper Motor Control"):

http://www.instructables.com/id/Control-DC-and-stepper-motors-with-L298N-Dual-Moto/

twirap: First 3 links on Google (Searched "Arduino Stepper Motor Control"): http://www.instructables.com/id/Control-DC-and-stepper-motors-with-L298N-Dual-Moto/

Instructables has a bad reputation here.

Constrain your Google search to this Forum with site:arduino.cc

...R