# Using Logic Gates to Power a Motor

I want to design a circuit that powers a motor on under certain criteria, and off under other criteria. I built my circuit using switches and a 74ls04 (Inverter) and a 74ls08 (AND) gates. The circuit is quite simple, and works properly when I hook the output up to an LED. My circuit runs properly off of an input of 5v, 9v, or 12v.

However, I encounter problems when I hook the output to a motor rather than an LED. The motor that I am using is a Fishertechnik component which accepts 6v-9v. When I replace the wire to the LED with the wire to the motor, nothing happens.

I used a digital logic probe to try to pinpoint the problem. When the wire connecting the motor is connected to the breadboard in the output position and NOT connected to the motor it produces a digital "high". However, when that same wire is in the same output position on the breadboard and the other end IS connected to the mootor it produced a digital "low".

I hooked the motor directly up the the 9v battery and it worked. It just doesn't work when hooked up to my circuit! But my circuit works just fine when hooked up to an LED rather than the motor (for an output).

I also tried using a multimeter to try better understand what is happening. It appears that the output of the IC which is hooked up to the motor is at .75v when the motor IS connected, but at 7.6v when the motor is NOT connected (with a 9v battery hooked up to the input of the circuit).

I consider myself a beginner with electronics, so any help you may be able to provide is great! I know that it is not my circuit, but I just can't figure out why the motor is acting so weird with the circuit, but fine with a battery!!

• Also, running 74LS from 9V is not guaranteed to work...
– user16324
Jul 13, 2015 at 16:12
• If you want to use logic voltages that high then you should be using CD4k instead, but then you will need to use a separate driver. Jul 13, 2015 at 17:08

simulate this circuit – Schematic created using CircuitLab

Trying to power a DC motor from glue logic isn't the best idea. they aren't designed to sink a lot of current. Remember a LED only pulls 20mA or so a DC motor will pull quite a bit more. I would use the glue logic to drive a gate of a Mosfet that would sink the current required to run the motor, above is a rough schematic. If you search MOSFET low side switch, it will give you more ideas.