stepper buzzing but not rotating

Hello.
I'm fairly new to the arduino world and electronics.
I decided to start a project which is somewhat challenging but I'm going slow with it. Just wanted to drive a stepper motor with settings I input on a 16x2 LCD with a rotary/push encoder.
So far I got the part of the LCD menus and encoder to work, but I'm stuck with the motor.
The motor is this model https://www.robotshop.com/media/files/pdf/rb-soy-02-unipolar-stepper-motor-specs.pdf
which I'm trying to operate using an A4988 driver.
However I'm not familiar with connecting the right cables to the A, A-, B, B- terminals of the stepper driver.
Right now it just buzzes when a pulse is sent from the program but no rotation. Also I hear a high pitch sound but I'm not sure what is causing it.
I've identified the two pairs of cables that I need (from the 6) using a multimeter.
That's red blue, and black green. But again not sure which is the right terminal to connect them.
Any help is appreciated!

The Pololu A4988 web page has a good wiring diagram.

For each of your motor coils there will be 3 connections, one to each end of the coil and one to the centre. You should ignore the centre connection (but make sure it can't come in contact with anything) and connect the two end-wires to the A connections The end-wires for the other coil go to the B connections.

What stepper motor power supply are you using (volts and amps) ?

...R
Stepper Motor Basics
Simple Stepper Code

To get the full rated torque out of that motor, you will need a 15-24V power supply capable of at least 1 Ampere.

Be sure to set the current limit correctly on the A4988 driver, to 0.8 A/coil.

jremington:
To get the full rated torque out of that motor, you will need a 15-24V power supply capable of at least 1 Ampere.

Be sure to set the current limit correctly on the A4988 driver, to 0.8 A/coil.

Hmm, trying to understand what you are saying. So I don't go by the rated voltage of 6v?

Robin2:
The Pololu A4988 web page has a good wiring diagram.

For each of your motor coils there will be 3 connections, one to each end of the coil and one to the centre. You should ignore the centre connection (but make sure it can't come in contact with anything) and connect the two end-wires to the A connections The end-wires for the other coil go to the B connections.

What stepper motor power supply are you using (volts and amps) ?

...R
Stepper Motor Basics
Simple Stepper Code

This is where my electronics ignorance comes to play. (your eyes will roll) I went with what I had available at this time. So I plugged a 9v battery, a 1k resistor and an LED(which I didn't measure) just hopping I wouldn't burn anything. Just rushed to see something turn. (But I shouldn't)
I also dared removing the resistor, which only made the LED brighter and the buzz louder, but still no rotation.

A 9V block battery is totally unsuitable to power any type of motor.

If you want to enjoy this hobby, you will have to sit down for a while, do some on line research and reading, and greatly improve your understanding of electrical systems and electronics.

There are no shortcuts to this. The hints and links in reply #1 are one place to start.

jremington:
A 9V block battery is totally unsuitable to power any type of motor.

If you want to enjoy this hobby, you will have to sit down for a while, do some on line research and reading, and greatly improve your understanding of electrical systems and electronics.

There are no shortcuts to this. The hints and links in reply #1 are one place to start.

Understood. Thanks.