• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Arduino 3V DC Motor Control : Transistor, IC & More

By Abhishek Ghosh August 15, 2015 10:50 am Updated on July 25, 2017

Arduino 3V DC Motor Control : Transistor, IC & More

Advertisement

Here is a Detailed Guide on Arduino 3V DC Motor Control To Have a Basic Idea On Control With Transistor, IC etc. This is Basic of Robotics. There are lot of things to know and we are assuming that the reader knows nothing. What we expect? we will code via Arduino IDE and control the rotation per minute or even can reverse it.

If you more nice but easy guide, you can follow our guide on Arduino 3V Motor Speed Variation Control with one transistor, two resistors and one diode. That guide also has video and easy for a beginner.

 

Arduino 3V DC Motor Control : Basics

 

If you start with a 3V DC Motor, it becomes easy as previously described external power for breadboard is not required. A 3V DC Motor is brush motor which has two legs. It basically works like a resister. You should use a multimeter to check both – resistance of the motor and the points where the motor will be added. Obviously, if the voltage goes below 1 volt or closer, motor is unlikely to start. There is a concept of controlling the voltage to drive the motor slower – it is basically like “when car runs faster more wind flows inwards” theory. That type of control is too basic & we are not discussing here. That has one usage – on drone like stuffs, other Laws of aerodynamics work. So, “when car runs faster more wind flows inwards” theory might be useful there. But basically we need “signal based control”.

Advertisement

---

We can control with transistor or IC. A diode needed for direction and resisters are needed for precise voltage control. All DC motors have specs. Voltage and Amperage are most important parameters. When we say use 1N4001 diode, that means, use any diode from 1N400x series. The series we said actually not hugely great, it is general purpose, the series as a whole can withstand a higher reverse voltage (Vr) :

1N4001: 50V
1N4002: 100V
1N4003: 200V
1N4004: 400V
1N4005: 600V
1N4006: 800V
1N4007: 1000V

Coming towards IC and transistor, IC are better choice but may be difficult to construct by a newbie. That is why we provided diagrams of both IC and transistor circuits. Let us assume that we connect a 3V, 600 RPM rated motor to digital pins of Arduino UNO board, the maximum voltage that can be supplied by a digital pin of Arduino is 5V as the maximum output of the board is 5V. RPM is rotation per minute. If we drop the voltage to 3V with resister or some other way, that becomes 100% right, taking the amperage, frequency are right.

If we drop the voltage to 1.5V, the speed should drop to 300 RPM. But, what range the motor works is very important to know. It might not rotate at all.

Arduino board has voltage supply system to external components, that is written as POWER on the board. Theoretically, after 5V, we need an external supply of power. Motor works in the same way like register. So, if you add the motor to blink program, a very small motor might start-stop-start-stop- like blinking! But if the need of voltage is 12V, then the digital pin can not supply so much power. The digital pin’s output voltage is becoming signal. Using that signal, if we control the external voltage supply to the motor, it will nicely work. IC and transistors do that work.

Additional danger of adding a motor directly to Arduino like with Blink program is damage of the board. The motor will try to run. Electricity is like flow of water. Virtually a 3V motor will create a “vacuum” when we are adding the 3V motor to the board with Blink program. This is why we need a circuit precise control of the “electricity water” incoming towards the circuit of motor as signal. In the same way, we need a precise control of the “electricity water” incoming towards the Arduino GND – that is why we added a 10K resister on the (-)ve pole just before attaching to the board in mini christmas light.

So how does a driver works? Driver is that IC or Transistor. Think an IC as a matchbox. One side 3V is incoming, on box’s opening side, 12V external supply is coming inside, the matchbox has such a magic that it can use the “pattern” of incoming 3V to the incoming 12V and output 10V to the motor. As what is incoming is like “water”, if we do not add choking system (=resister), flow direction valve (=diode), the Arduino board or IC will get destroyed. 12V is more water. That water can back flow towards 3V “pipe” to “Arduino tank”. The computer’s motherboard can get destroyed in extreme case.

 

Arduino 3V DC Motor Control : Basic Circuit With Transistor

 

A PN2222 Transistor is a general purpose transistor. Search to get the data sheet of PN2222 Transistor. There is Wikipedia article on PN2222 Transistor. Second we have a breadboard, external power supply or Arduino’s power supply. Third the motor. Forth is a 1N400x series diode. Fifth are resistors which you should put by measuring with multimeter. We have given a diagram as Option 1 and here is sample code :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
Adafruit Arduino - Lesson 13. DC Motor
*/
 
 
int motorPin = 3;
void setup()
{
  pinMode(motorPin, OUTPUT);
  Serial.begin(9600);
  while (! Serial);
  Serial.println("Speed 0 to 255");
}
void loop()
{
  if (Serial.available())
  {
    int speed = Serial.parseInt();
    if (speed >= 0 && speed <= 255)
    {
      analogWrite(motorPin, speed);
    }
  }
}

You will add a 10K Ohm resister on (-)ve pole going to GND of Arduino. Pull down resistor.

Arduino 3V DC Motor Control-Transistor, IC & More

Now let us think about IC circuit. Instead of the Transistor, we are using LM293D IC. Circuit is given and here is the code with credit :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// code written by by Vijayenthiran Subramaniam
// Adapted from http://www.erfssn.org
// code starts from next line
int motor_forward = 7;
int motor_reverse = 6;
 
// the setup routine runs once when you press reset:
void setup()
{
// initialize the digital pin as an output.
pinMode(motor_forward, OUTPUT);
pinMode(motor_reverse, OUTPUT);
}
 
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(motor_forward,1); //terminal D1 will be HIGH
digitalWrite(motor_reverse,0); //terminal D2 will be LOW
delay(5000); //creates a 5 seconds delay
//Motor will rotate in forward direction for 5 seconds
  digitalWrite(motor_forward,0); //terminal D1 will be LOW
digitalWrite(motor_reverse,1); //terminal D2 will be HIGH
delay(5000); //creates a 5 seconds delay
//Motor will rotate in reverse direction for 5 seconds
  digitalWrite(motor_forward,0); //terminal D1 will be LOW
digitalWrite(motor_reverse,0); //terminal D2 will be LOW
delay(5000); //creates a 5 seconds delay
//Motor will stop rotating for 5 seconds
  //again the loop() will run from the begining until the board is turned OFF
}

Properly measure the output with a multimeter, you’ll not die. Do not burn 3V motor by supplying 12V by wrong circuit, if “water leaks”, it will pass via the wire “pipes” and blast the coil. $2-$3 multimeter if blows away, you will buy another but be careful about “backflow”.

If you can customize the parts and just follow our principle, from newbie you will become one step higher. Controlling motor is very important.

Last option is used for bigger works – there are ready to use boards on the market.

Tagged With how to drive 3v dc motor arduino , arduino 3v motor , 3v motors arduino , arduino motor 3v , 3v dc motor arduino , 3v dc motor , 3v-6v fan motor arduino wiring , 3v dc motor and control , 1pc fan blade and 3-6v motor , what is fan blade abd 3V DC motor

This Article Has Been Shared 771 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Arduino 3V DC Motor Control : Transistor, IC & More

  • Tools Needed For Arduino : Beginner’s Guide

    Who has no idea about electronics but want to test Arduino & develop something, this guide Tools Needed For Arduino is good to read for long term.

  • Arduino C Programming Tutorial + OS X CrossPack-AVR IDE

    We Can Easily Start Arduino C Programming Tutorial With OS X CrossPack-AVR IDE. With Plain Homebrew We Can Install the IDE & Upload Code.

  • Convert Arduino Like Electronics Projects to PCB At Home

    Here is Detailed, Step By Step Guide To Convert Arduino Like Electronics Projects to PCB At Home At Cheap Cost With Theory, Infographics.

  • Nokia 5110 Arduino Wiring, Technical Details : Basic Arduino LCD

    If You Need A Basic Arduino LCD At Cheap Rate Then Nokia 5110 Is The Best Choice. Here Is Nokia 5110 Arduino Wiring, Technical Details, Code.

  • Securing Jumper Wire Connections : Prototyping Daugterboard

    Securing Jumper Wire Connections Is An Important Part Of Breadboard Wiring. Prototyping Daugterboard (Prototyping Shield) Can Help Securing.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Arduino 3V DC Motor Control : Transistor, IC & More," in The Customize Windows, August 15, 2015, January 31, 2023, https://thecustomizewindows.com/2015/08/arduino-3v-dc-motor-control-transistor-ic-more/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT