Menu Close
Spread the love

Arduino motor control

arduino tip120 dc motor

Arduino tip120 Motor: The current provided by Arduino nano digital pin is not sufficient to run a motor,
That is why we use the Tip120 transistor.

Parts Required:

  1. Arduino Nano
  2. Tip120 transistor
  3. 1N4004 Diode
  4. 9V Battery
  5. Wire to connect it all together

TIP122 Transistor Pinout:

1N4004 Diod Pinout:

Diod-pinout

the 1n4004 Diod protect from reverse voltage and it’s a good idea to use it in our circuits.

  1. connect all  Parts together
Wiring Tip120 and Dc Motor

Arduino Code:

Arduino Menu up

//Test Code

int Motor = 2; // the number of the Motor pin

void setup() {
//setup code:
pinMode (Motor,OUTPUT);
}

void loop() {
digitalWrite(Motor, HIGH);   // turn the Motor on
delay(1000);                       // wait for a second
digitalWrite(Motor, LOW);    // turn the Motor
delay(1000);
}

Arduino Menu Down

Download: Tip120 code

Thank you for visiting. If you found this information helpful, please consider subscribing to the Officialhrm YouTube channel and liking their Facebook Page for more updates and helpful content. Don’t forget to share this website with your friends.

Download

File Description Date added File size Downloads
zip tip120 September 8, 2018 7:16 pm 298 KB 6617
Posted in Arduino

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *