Thus, we will use this low power signal only to turn the transistor / field effect transistor on and off. The transistor we are using for this tutorial is P2N2222A and is rated at 40V and 200mA, it just perfect for one toy dc motor. A DC motor; The L293D H-Bridge; A breadboard; A suitable power supply to drive your motor (I have used a 9v battery) If you are not familiar with Arduino, then you can click here to go to my tutorial on getting started with Arduino. The motor driver chip is externally powered by a 5V DC supply and the chip is connected to a magnetic torque rod as a load ( Just think of it as a solenoid with coils around it, with a resistance of 30 ohms) The In A and In B pins are connected to my arduino PWM pins 9 and 10. Hi, I want to power an Arduino Uno board and a DC motor connected to the Arduino with the same custom-built power supply. In this way, we can control the speed of the DC motor using the Arduino. Arduino cannot control the motor directly, because the signal has low power, in addition, Arduino will burn out due to excessive current consumption of the motor. Speaking of the motor power supply it needs to be a bit higher voltage than the actual motor requirements. You can use both the 5V pin and the 3.3V pin to provide power to modules that are connected to the Arduino. The circuit connections are as follows, The power terminal that is VSS is connected to the positive terminal of the breadboard which is further connected to the 5v of the Arduino board.The input 4 (IN4) is connected to the 4th pin of the Arduino chip, while the output 4 (OUT4) pin is connected to the DC motor. It can be a wall adapter that gives out constant 5V or a DC-DC converter that is connected to a battery or a set of batteries. In this picture the power supply, 6 x AA batteries are connected to the bard (7.2V). In both circuits shown above the arduino is supposed to be powered through the 9V external power input jack. This is due to the internal voltage drop in the transistors that form the H-Bridge circuit. For that reason you must use a transistor. The 2n2222 is the general purpose npn transistor which is used for power amplification. How to Use L298n to Control Dc Motor With Arduino: Hello everybody,Welcome to this tutorial, check the video first it contains a little bit of explanation, we are here using a L298n Dual H-bridge driver to control a DC motor using Arduino, you can … Even you can use 9V battery and control the speed of dc motor using PWM. To drive a DC motor you need a larger amount of current than Arduino board can give. +5V supply for the potentiometer can be taken from the 5V regulator output on the arduino board. This includes the positive and negative pins. Most Arduino pins can handle 5VDC, and according to the official Arduino store URL, 20ma of continuous current. Then the Arduino connects to the board and draws power. The DC motor I used while testing was rated 9V/100mA. The arduino board can not provide large current at output pins to drive motors directly having a current rating more than 250mA. Transistors have limits and maximum specs, just be sure those values are enough for your use. First connect the pins of your power supply to the L293D. Tutorial:Controlling High Power With an Arduino : When using an Arduino we often need to control more voltage and/or current than can be handled directly from the Arduino pins. Alternatively, you can power your Arduino through the 5V pin with an external regulated 5V power supply. The LED I used while testing was a general purpose 4mm bright green LED. you use the following schematic both will work fine. However, o… Buy jumper wires:- https://amzn.to/3jGvoBm Circuit Diagram for dc motor.