Stepper controller and clock signal

I've been trying to get this working for a day or two now :'(, mostly want to explore steppers and general control in a quest for knowledge on a potential bigger project. I have a little background in discrete electronics, this is really my first venture into ICs, and I have done a fair amount of programming in Basic (TI Calculators) and some C++ but that was a while ago. Here's my issue...

I'm trying to use an MC3479 stepper controller to control a small stepper, which as far as I can tell may be a little too much voltage for the motor, but otherwise meets the requirements. I've setup Figure 12 (See next post) following the calculations for pin 6 as best I understood them. I have pins 6,7,8,9,10,11 of the MC3479 connected to digital pins on the Arduino with the following code:

int set = 8; //Bias and set pin
int clock = 10; //Clock pin
int OIC = 9; //no idea
int Full = 2; //half or full step
int cwccw = 3; //direction
int Phase = 4; //location?
int ledPin = 13; //used for testing

void setup () {
  pinMode(set, OUTPUT); //set pin types
  pinMode(clock, OUTPUT);
  pinMode(OIC, OUTPUT);
  pinMode(Full, OUTPUT);
  pinMode(cwccw, OUTPUT);
  pinMode(Phase, INPUT);
digitalWrite(set, LOW); //set low voltage on the bias pin
delay(10);
digitalWrite(set, HIGH); //set high voltage to initiate "set" command
delay(10);
digitalWrite(set, LOW); //return to low for normal operation
digitalWrite(Full, LOW); //Full step not half
digitalWrite(cwccw, HIGH); //Rotate counterclockwise
digitalWrite(clock, HIGH); //step pin
}

void loop()
{
  digitalWrite(clock, LOW); //switch voltage to low on clock pin
  delay(100);
  digitalWrite(clock, HIGH); //switch voltage to high on clock pin
  delay(100);
}

In this current configuration, I can hit the reset button with on the arduino and the motor will make a single step in the direction following my "cwccw" setting or make half steps per the "Full" setting then return to the starting point and not move after that. This happens about 1 second after pressing reset, so I don't think it is caused by the reset itself.

I've tried changing delays, "set" voltage starting at high and changing to low only, 2 different motors (both do the same thing), and countless variations of polarity (however given the successful twitch control I have, I'm fairly positive that is correct), and I've verified that the two poles of the motor are properly connected to their own output pairs per the schematic. I have one coil connecting to pins 2 and 3 and the other connecting to pins 14 and 15. Currently the Arduino gets it's power via USB on my computer, and the circuit has an external 7.5V source.

Per another post, I attempted connecting ground from Arduino to ground on the circuit but just made the motor make a high pitch noise without twitching at reset. If I can just get this motor to spin on direction while being controlled from the arduino I'll be happy. I've found others using this MC3479 chip with a Pic, but I was overwhelmed with their code as it was doing other things additionally. Should this code work, or have I wired something incorrectly?

Thanks in advance for any help I can get, my friend said I would never be able to get it to work and I wanna prove him wrong! ;D

Edit-
Here are the datasheets:
onsemi Product Portfolio (figure 12 is on page 10)
http://www.portescap.com/product-113-15M020.html

Can you post a picture of the wiring? The twitching motor makes me think you are trying to drive it back and forth, unintentionally. We'd need to see how it's actually wired up, though, to be sure.

PaulS thanks for the quick reply, I had to get the photos uploaded to link them and of course couldn't find my camera, cable, or card reader >:( but I found them eventually.

Attached are two angles, the blue connector goes out to the motor, the two green wires next to the motor connector go to the red and white pole, while the two yellow connectors right next to the connector go to blue and brown. They get connected down to 2,3 and 14,15 respectively.

Like I said the Jitter is happening once, and will follow my settings for direction and step, but I can't get it to continue...


Nice, neat wiring. Need a couple more pictures, though. The stepper motor and the Arduino.

Here is the whole setup, you can ignore the chips on the right as they are obviously not connected to anything, followed by the motor and arduino. The power is coming from a 7.5V wall wart.



I'm trying to match the wiring/pin layout on the data sheet to your wiring.

I'm doing good for pins 1 to 5 on the IC. Then, pin 6, has a two resistors connected to it. One goes to ground. The other goes straight to pin 8 on the Arduino. The data sheet show that the signal from the Arduino (or whatever is driving it) should go through a MC14049UB. Google shows that that IC is an inverter.

The rest of the wiring seems to be correct, except that I don't see a connection between Gnd on the breadboard and Gnd on the Arduino. Am I just missing it?

The rest of the wiring seems to be correct, except that I don't see a connection between Gnd on the breadboard and Gnd on the Arduino. Am I just missing it?

That's a good point. I think I read somewhere that non-connected grounds can lead to strange and unexpected results. No idea if it could cause this, but it could lead to other problems I believe.

PaulS, you my friend are a genius. ;D I'm kicking myself now for not doing that as it had been mentioned before. I connected GND from the to the Arduino to the negative rail and it started working. It didn't do that before, it just made awful noises.

With regards to the MC14049UB. My friend told me it wasn't necessary and I didn't see one used in the only other video I found of this controller online, but it didn't show much. Do you think it is necessary? I was under the impression that if pin 6 were to be left open, it would assume a high impedance condition and just set the bias accordingly as per the datasheet.

and it started working

I'd guess, then, that you don't need the MC14049UB.