Show Posts
Pages: 1 ... 3 4 [5]
61  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 10, 2013, 02:45:18 am
Code:
#define fadePin 9

void setup(){
  pinMode(fadePin, OUTPUT);
}

void loop(){

  for(int i = 0; i<360; i++){
    //convert 0-360 angle to radian (needed for sin function)
    float rad = DEG_TO_RAD * i;

    //calculate sin of angle as number between 0 and 255
    int sinOut = constrain((sin(rad) * 128) + 128, 0, 255);

   
    analogWrite(fadePin,sinOut);
if(sinOut==0)
delay(200);
    delay(15);
  }

}


im 100% sure that the code is not wrong(its too basic to go any wrong !)
62  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 10, 2013, 02:17:26 am
ok
everything is working fine with the 3904 !

(i burned up 3 of those, , but got one running in the SAME breadboard)

63  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 09, 2013, 11:27:07 pm
i cant tell you the motor ratings because im using an rc car(the chasis and the motors, after ripping the circuitry apart )

but i guess the TIP122 is rated much more than my motor.
64  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 09, 2013, 09:45:35 am
ok, i used a 3904

the transistor got too hot and burnt my finger .
is it because im not using a resistor?

it was even smoking

and the funny thing is, the motor stopped with TIP122(that means everything worked), for sometime, but i dunno what happened; after a while, it was back to the same problem .
65  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 09, 2013, 07:53:00 am
thank you smiley will try that

btw , can you tell me why the diode is placed parallel to the motor?
i mean, wouldnt it be better if it had been placed, on the outout pin?
66  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 09, 2013, 07:06:53 am
i have the 2N3904

will that do?
67  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 09, 2013, 03:52:09 am
i dont think theres any prob with the transistor (the motor SLOWS down and speeds up)

but the motor doesnt STOP
even if i take the base pin out, the motor continues to run , but slowly

i think i means there is little current still going through the transistor
i tried using 3 TIP122 transistors, same results.
68  Using Arduino / Motors, Mechanics, and Power / Re: Tansistor help to power motors on: January 08, 2013, 10:17:47 am
http://bildr.org/2011/03/high-power-control-with-arduino-and-tip120/

its the same schematic and same code

but i have not used any resistor, nor the dioide(in the motor)

instead of TIP120 , i used TIP122

also, can u tell me why it doesnt even slow down with the TIP127?
i'm running a 9 v motor , with aprroz 9.6 v batteries
69  Using Arduino / Motors, Mechanics, and Power / Tansistor help to power motors on: January 08, 2013, 05:36:32 am
i connected an rc car which runs on 9.6 v batteries to just ONE of the motors(back wheels)

the problem is, when the battery is fully charged , the transistor passes too much current, and the motor coninues to run even at analogWrite(pin,0)

how can i understand what type of transistor to use to power a 9 volt motor with the 5v arduino ?
Pages: 1 ... 3 4 [5]