

*This information is for general informational purposes only, we will not be liable for any loss or damage caused by the above information. ON Semiconductor is dedicated to innovation and customer satisfaction, and is committed to providing its customers with the best semiconductor solutions to meet their needs. The company's products are designed to be energy efficient, reliable, and cost-effective, and are used in a variety of applications, including portable electronics, industrial automation systems, renewable energy systems, and automotive electronics. ON Semiconductor offers a broad portfolio of power management, analog, and discrete semiconductors, including power MOSFETs, diodes, rectifiers, and voltage regulators, among others. The company was founded in 1999 and is headquartered in Phoenix, Arizona. Now, you should be able to control the speed of the DC Motor using a TIP120 transistor.ON Semiconductor is a publicly traded company that designs, develops, and manufactures a wide range of semiconductor products for various applications, including automotive, computing, consumer, industrial, and communications markets. 20 ms delay (can add noticible delay if over 200ms) print out getPotValue to serial monitor set the PWM value on pin 3 for motor speed control the loop routine runs over and over again forever: below PWM value 50 use 0 to avoid rough run Int potPWMValue = map(potAnValue, 0, 1023, 0, 255) // mapping to get 0 to 255 Int potAnValue = analogRead(pot) // read the input pin declare pin 3 and A0 to be an output and input respectively: Int pot = A0 // potentiometer is connected to analog pin 0 Int motorPin = 3 // the pin that the motor is attached to

Upload the code given below to your Arduino board:ĭC Motor speed control using TIP120 with Arduino and potentiometer To know more about Arduino PWM frequency change, read this article. But you can connect it to any other PWM pin according to the Load PWM frequency OR switching frequency requirements. Base of the Transistor is connected to the Digital PWM pin 3 of the Arduino UNO here.Load can be a Motor, a lamp, solenoid etc.


Connect the Arduino to the transistor using the required components as shown in the circuit diagram above.To use TIP120 with Arduino follow these steps: Arduino takes analog input from the potentiometer and sets the voltage across the load according to it. Here is an image showing the pin diagram of this transistor. When looking at the flat side with the leads pointed downward, the three leads emerging from the transistor are, from left to right, the emitter, base, and collector leads. You can use any other load like a lamp or solenoid in place of the motor.Ī potentiometer is used to set the speed of the dc motor. The 2N3904 is manufactured in a plastic TO-92 case. In this example, a DC motor speed is controlled using TIP120 with Arduino. Circuit of DC motor speed controller using TIP120 with Arduino
