Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Switching Transistor

I'd like to control a small DC motor pulling from a 7.2V battery using a switching transistor connected to one of the EZ-B digital ports and wanted to be 100% sure I was doing this properly. I think the way it works is that I connect the base of the transistor to the PWM pin of one of the Digital Ports, the collector to the positive lead of my battery, and the emitter to the DC motor, right? Also, which transistor should I be using?


Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

I think a dc speed controller would be better as I had the same problem i choosed the speed controller instead of the transistor.
Speed controllers come with voltage controls and some more protections for the motor, battery and ez board
In case anyone is trying to use a transistor to control a small DC motor, I got it working using a TIP120 Darlington Transistor. I connected the base to a PWM pin of one of the Digital Ports, the collector to the ground from the motor, and the emitter to the ground from the battery pack.

Happy building!
Here's a wiring diagram DJ posted on a different thread. Re-posting in this thread for quick reference.

User-inserted image
I just used this today for a couple of items I wanted to turn on and it works brilliantly.