Posted in

how to connect a 20mm DC gear motor to a battery

Hey there, if you’re here, chances are you’ve got a project that needs a little oomph—something small, precise, and reliable to get it moving. And let’s be real, if you’re working with a 20mm DC gear motor, odds are you’re either prototyping a wearable robot, a mini automated feeder, a small IoT actuator, or maybe a tiny DIY robot for a school science fair. We’ve been supplying 20mm DC gear motors for years, and one of the most common questions we get from makers, engineers, and hobbyists alike is: “How do I actually connect this thing to a battery without frying it?” 20mm DC Gear Motor

Don’t worry, it’s not rocket science—but there are a few little details that trip people up all the time. I’ve seen folks grab any old battery, wire it up wrong, and kill a perfectly good motor before their project even gets off the ground. Let’s walk through this step by step, from picking the right battery to double-checking your connections, and even a few pro tips from our side that we’ve picked up working with hundreds of customers.

First things first: you can’t just grab a random battery and hook it up. The 20mm DC gear motors we supply are compact, but they have specific voltage and current needs that’ll make or break your setup. Let’s start with the basics: most 20mm DC gear motors we stock run on 3V to 12V DC, but wait—don’t just guess. Check the motor’s datasheet! Yeah, I know, datasheets can look intimidating, but there’s a line that says “nominal voltage” or “rated voltage.” That’s the sweet spot. For example, if you’ve got a 6V 20mm gear motor, plugging in a 9V battery will make it spin faster than it should (and might overheat it), while a 3V battery will leave it limping along with no torque.

Next, current. DC motors, even tiny 20mm ones, draw current when they’re running. Your battery needs to be able to supply enough of that current, otherwise the motor won’t perform at all. What’s the right current? Again, check the datasheet for “rated current” or “stall current.” Stall current is the big one— that’s the current the motor draws when it’s fully stopped, like if it’s pushing against a heavy load. For most 20mm gear motors, stall current is between 0.5A and 2A. So if your motor has a stall current of 1A, don’t use a battery that can only supply 0.5A— that’ll drain the battery super fast and might even damage the motor’s windings over time.

What kind of battery should you pick, anyway? Let’s break down common options for small projects:

  • AA or AAA alkaline batteries: These are great for low-torque, intermittent use. A pair of AA’s is 3V, which works for our 3V and 6V 20mm motors. They’re cheap, easy to find, and safe for beginners. The downside? They don’t last super long if your motor is running a lot, and their current output is limited.
  • LiPo batteries: LiPos are the go-to for most maker projects these days— they’re lightweight, high capacity, and can supply lots of current if you need it. For 20mm gear motors, a 3.7V LiPo (like the small 1000mAh ones you get for mini drones) works for 3V motors, and a 7.4V LiPo works for 6V motors. Just be careful with LiPos— they can get hot or even swell if you hook them up wrong, so you’ll want to add a fuse or a low-voltage cutoff (we even stock those for our customers who need them).
  • Coin cell batteries: These are tiny, perfect for super small projects like wearables, but they only work for low-power, low-torque 20mm motors. A CR2032 is 3V, but its maximum current is only like 20mA— so if your motor has a rated current of 100mA, a coin cell won’t cut it. It’ll drain in 5 minutes flat.

Okay, you’ve got your motor and your battery. Now let’s talk about wiring. This is where so many people mess up. First, DC motors have two wires: positive (+) and negative (-). You need to connect the motor’s + wire to the battery’s + terminal, and the motor’s – wire to the battery’s – terminal. That’s it, right? Wait, almost— but there’s a catch: if you reverse the wires, the motor will spin backward, which is fine if you want reverse, but it won’t break anything (most of the time). The problem comes from loose connections. Don’t just twist two wires together and call it a day— tiny 20mm gear motors vibrate a lot when they run, and loose wires will come undone, causing your project to die mid-operation.

What’s the best way to connect them? For beginners, using breadboards is a great option. You can stick the motor’s wires into the breadboard’s holes, match up the + and – rows, and then connect the battery to the right slots. No soldering needed, which is perfect for prototyping. If you’re making a permanent setup, soldering is way more reliable. Use heat-shrink tubing over the soldered joints to prevent short circuits— that’s a simple step that saves a lot of headaches.

Wait, what’s a short circuit? Oh right— that’s when a positive wire touches a negative wire, or the motor’s metal casing touches a battery terminal. That creates a super high current flow, which can blow up the battery, melt the wires, or even ruin your motor. For small projects, adding a fuse (like a 1A or 2A blade fuse, depending on your motor’s stall current) between the motor and battery is a cheap way to prevent this. If there’s a short, the fuse will blow instead of your whole setup. We always recommend fuses for anyone who’s new to working with DC motors, because they’re a small investment to avoid big mistakes.

Let’s walk through a quick example to make this concrete. Say you’ve got a 6V 20mm DC gear motor that you’re using for a mini robot arm. The datasheet says it has a rated current of 0.8A and stall current of 1.2A. What do you use? A 6V alkaline battery pack (four AA’s, that’s 6V total) is a great start, or a small 6V Li-ion battery if you want it lighter. Wire the motor’s red (+) wire to the battery’s red terminal, and the motor’s black (-) wire to the battery’s black terminal. Add a 1.5A fuse between the positive wire and the battery’s positive terminal. Test it first: hold the motor lightly, turn it on, make sure it spins smoothly. If it’s grinding or smelling like hot plastic, you’ve got the wrong voltage— double-check your datasheet.

A few pro tips from our team, since we work with these motors every day:

  1. Don’t run your motor at full voltage all the time. If your motor is rated for 6V, running it at 5V will extend its life a lot— DC motors wear out faster when they’re constantly running at their maximum voltage. If you need to adjust speed, use a potentiometer (a small variable resistor) instead of just reducing the battery voltage. Potentiometers let you control speed smoothly without straining the motor.
  2. For long-term projects, don’t use alkaline batteries. They leak over time, and that leak can corrode the motor’s wires and terminals. LiPos or NiMH rechargeable batteries are way more reliable, and you’ll save money in the long run on battery replacements.
  3. If your motor isn’t spinning at all, check the connections first. Loose wires are way more common than a dead motor. Also, make sure the battery isn’t dead— test it with a multimeter if you have one. We’ve had customers send us back “broken” motors that just had a dead battery!
  4. Gear motors have more torque than a regular DC motor, but that torque comes from the gearbox. If your project needs more torque, a 20mm gear motor is perfect, but don’t overload it. Pushing a load that’s heavier than the motor’s rated torque will make it draw way more current, overheat, and burn out. Check the torque rating in the datasheet— most 20mm gear motors we supply have torque between 1 kg-cm and 5 kg-cm, so don’t try to lift a 10kg load with a 2 kg-cm motor.

Wait, what about when you want to control the motor with a switch? That’s super easy— just add a small toggle switch between the motor and the battery. Wire the switch in series with the positive wire: so battery + → switch → motor +, and battery – → motor -. When you flip the switch, it connects or disconnects the power. Just make sure the switch is rated for enough current— a small 2A toggle switch works for almost all 20mm gear motors.

I know it’s easy to overcomplicate this, especially if you’re new to working with electronics. The key takeaway is: match your battery voltage to your motor’s rated voltage, pick a battery that can supply enough current, secure your connections so they don’t come loose, and add a fuse if you’re worried about shorts. We’ve tested hundreds of 20mm DC gear motors in-house, and following these steps will get your project running smoothly every time.

If you’re in the market for a reliable 20mm DC gear motor for your next project, we’ve got a range of options— from low-voltage 3V models for wearables to high-torque 12V models for small robotics. Our team knows these motors inside and out, and we’re always here to help you pick the right one for your setup, plus answer any questions about wiring, batteries, or anything else. Whether you’re a hobbyist with a one-off project or a company needing bulk motors for a product line, feel free to reach out to us to discuss your needs. We’d love to help you get your project up and running.

Planetary Gearbox References

  1. DC Motor Basics: Voltage, Current, and Torque. Electronics Hub.
  2. LiPo Battery Safety Guidelines. Adafruit Industries.
  3. 20mm DC Gear Motor Datasheet Standards. Manufacturer Association for Small Motors.
  4. Wiring DC Motors for Beginners. SparkFun Electronics.

I.CH Motion Co., Ltd.
I.CH Motion Co., Ltd. is one of the most professional 20mm dc gear motor manufacturers and suppliers in China, featured by quality products and good price. Please rest assured to buy cheap 20mm dc gear motor from our factory. Contact us for customized service.
Address: D2-1704, Vanke Duhui Tiandi, 28 Jiangnan Road,Dongshan Street, Jiangning District, Nanjing City, Jiangsu Province
E-mail: info@ichmo.com
WebSite: https://www.ichgearmotor.com/