cd motor runs a cd disk

how i can run it wit arduino mega 2560?

i trying that

int pinA = 2;
int pinB = 3;
int pinC = 4;
int steppingDelay = 100;

void setup() {
pinMode(pinA, OUTPUT);
pinMode(pinB, OUTPUT);
pinMode(pinC, OUTPUT);

digitalWrite(pinA, HIGH);
digitalWrite(pinB, HIGH);
digitalWrite(pinC, HIGH);
}

void loop() {
stepping(1);
delay(steppingDelay);
stepping(2);
delay(steppingDelay);
stepping(3);
delay(steppingDelay);
stepping(4);
delay(steppingDelay);
stepping(5);
delay(steppingDelay);
stepping(6);
delay(steppingDelay);
if(steppingDelay > 10)
{
steppingDelay--;
}
}

void stepping(int stage)
{
switch(stage)
{
case 1:
digitalWrite(pinA, LOW);
digitalWrite(pinC, HIGH);
digitalWrite(pinB, HIGH);

break;
case 2:
digitalWrite(pinA, HIGH);
digitalWrite(pinB, HIGH);
digitalWrite(pinC, LOW);
break;
case 3:
digitalWrite(pinA, HIGH);
digitalWrite(pinB, LOW);
digitalWrite(pinC, HIGH);
break;
case 4:
digitalWrite(pinA, LOW);
digitalWrite(pinB, HIGH);
digitalWrite(pinC, HIGH);
break;

case 5:
digitalWrite(pinB, HIGH);
digitalWrite(pinA, HIGH);
digitalWrite(pinC, LOW);
break;

case 6:
digitalWrite(pinC, HIGH);
digitalWrite(pinA, HIGH);
digitalWrite(pinB, LOW);
break;
}
}

but notor only vibrates
tryinhg with uln2003 5v and arduino without driver 5v

cant find a pinwire of this motor . is shis unipolar 2 phase motor or it is a 3 phase motor?

in this sketch i want to run it as a 3 phase unipolar motor

CD - motors are usually BLDC motors:

You will need an ESC like this to control it

1- i know
2 - i cant use another drivers

What is doing this driver? is he generate dc output 3 phase voltage only

why i cant do it from my ic with ino?

power amplifier i can do same. and run any phase on 12 volts or more

im speak ru

Post a datasheet or link for the motor.
Post a link for your motor controller.
If as suggested , the motor is 3-phase, you MUST have an RC ESC to control it. You CANNOT control it any other way.
(I am not saying it cannot be done, only that it cannot be done by YOU)

You do not underestimate my ability as a programmer and an electronics toak

what wrong i in code of or value of Vcc
you all think that all must use control drivers
to driver a brushless motors

all schemas are amplifiers

You do not underestimate my ability as a programmer

Well that code in not very good.
Your whole loop could be changed to just:-

void loop() {
int d =0
 for(int i = 1; i<7 ; i++){
  stepping(i);
  delay(steppingDelay);
  d++;
  if(steppingDelay > 10 &&  d>=6 )
  {
    steppingDelay--;
   d = 0;
  }
}

Likewise the stepping function is very long for what it does and can be condensed into about 6 lines.

Is it a stepper motor or 3-phase brushless motor ?

We have had numerous people post trying to make a 3-phase motor controller using an arduino but nothing has ever come out of it.
There is one guy who claimed to have done it but said there were several problems with it.
http://forum.arduino.cc/index.php/topic,8642.0.html

AFAIK, NOBODY has succeeded in making one that works as well as any ordinary RC ESC you can buy cheap.
I HEARD that one guy succeeded but could never find the link to his work.

The DESIGN CRITERIA are as follows:

1- is an INVERTER, meaning it takes single rail DC and converts it to 3-phase AC. (Preferred (DEFAULT) power supply is +12V because it is
most common and readily available and allows use of 3S, Lipo battery. (charged voltage = 12.54Vdc)
2- allows selection of different switching frequencies as is common in the RC ESC Programming setup.
3- Will run any RC BRUSHLESS motor that isn't too large.
4- uses PPM , like the type generated by the Servo library, meaning it will work just as well from a signal coming from an RC receiver
sent by an RC transmitter. An arduino (or any other uC) is not allowed for this test. It must work with just a receiver or servo tester.
5- Uses six Mosfets (hexfets) (3 high side, 3 low side). Transistors can be used for software testing since the only difference is heat
dissipation and current carrying capability.. (obviously you can use as many devices in parallel as you like. Most RC ESCs have dozens
or hundreds of devices in parallel, usually they have an internal resistance of approx 2 mohm. (or less)
6- No restrictions on size. You can use any size devices you like. We are not going to put it in an airplane model. We just want to see if
it can be done with an arduino. There is no reason it cannot , but then if so, why is it impossible to find any links to workable code ?
Why isn't there a 3-phase Brushless Motor Controller Playground ?

7- Must work with any small off the shelf RC brushless motor without modification of the motor or addition of hall sensors.
(when you buy an RC ESC does it require you to add hall sensors ? (no, of course not)

Needless to say, I have googled it many times and only once found a link to a video of a guy who supposedly did it but there was no code.
or schematic. If you have a link to a working sketch with a schematic, PLEASE post it.
I did find this link, but this project requires adding hall effect sensors.

You could try this. It uses a SN754410 as driver

I'd use millis() or micros(), not delay(), unless you don't plan on your program doing anything else.

You could try this. It uses a SN754410 as driver

That's a 2-phase driver.. (one phase is not used) I am looking for an arduino true 3-phase BLDC controller.

 int pinA = 2;
int pinB = 3;
int pinC = 4;
int steppingDelay = 100;

void setup() {
  pinMode(pinA, OUTPUT);
  pinMode(pinB, OUTPUT);
  pinMode(pinC, OUTPUT);

  digitalWrite(pinA, HIGH);
  digitalWrite(pinB, HIGH);
  digitalWrite(pinC, HIGH);   
}

void loop() {
  stepping(1);
  delay(steppingDelay);
  stepping(2);
  delay(steppingDelay);   
  stepping(3);
  delay(steppingDelay);
  stepping(4);
  delay(steppingDelay);
  stepping(5);
  delay(steppingDelay);   
  stepping(6);
  delay(steppingDelay);
  if(steppingDelay > 10)
  {
    steppingDelay--;
  }
}

void stepping(int stage)
{
  switch(stage)
  {
  case 1:
    digitalWrite(pinA, LOW);
    digitalWrite(pinC, HIGH);
    digitalWrite(pinB, HIGH);
    
    break;
  case 2:
    digitalWrite(pinA, HIGH);
    digitalWrite(pinB, HIGH);
    digitalWrite(pinC, LOW);
    break;
  case 3:
    digitalWrite(pinA, HIGH);
    digitalWrite(pinB, LOW);
    digitalWrite(pinC, HIGH);
    break;
   case 4:
     digitalWrite(pinA, LOW);
     digitalWrite(pinB, HIGH);    
     digitalWrite(pinC, HIGH);
    break; 

      case 5:
    digitalWrite(pinB, HIGH);
    digitalWrite(pinA, HIGH);
    digitalWrite(pinC, LOW);    
    break;
    
     case 6:
    digitalWrite(pinC, HIGH);
    digitalWrite(pinA, HIGH);
    digitalWrite(pinB, LOW);    
    break;
  }  
}

In the future, please use the "#" CODE TAGS toolbutton when you post code.

First measure the resistances of the windings to find out what the motor
topology is and the impedance of the windings and report back...

what wrong i in code of or value of Vcc
you all think that all must use control drivers
to driver a brushless motors

all schemas are amplifiers

Can you use your native language on Google translate for the above ?
I have no idea what you are trying to say.

what wrong i in code of or value of Vcc
you all think that all must use control drivers
to driver a brushless motors

all schemas are amplifiers

Can you use your native language on Google translate for the above ?
I have no idea what you are trying to say.