Relay and motor

I learned how to work a relay. So I set up an led and a 6v motor. Led works, motor does not. Checked everything with multimeter, motor works fine, but as soon as I hook it up to relay, led works, but not motor. So I disconnect motor, wait for led to light up, hook up motor, led goes out. Disconnect motor, led lights up...?

How to use this forum

What motor? What relay? What wiring? What sketch?

These items came in a starter kit. It's a 6v motor, a 5v relay, whatever wires came with it, and as far as sketch, don't know how to make one. I checked the relay and the arduino itself, they are spitting out the same voltage, the motor spins great by itself, but once that relay gets in the way, nothing. Put in a second led, the thing works great.

Bstanko6:
These items came in a starter kit. It's a 6v motor, a 5v relay, whatever wires came with it, and as far as sketch, don't know how to make one. I checked the relay and the arduino itself, they are spitting out the same voltage, the motor spins great by itself, but once that relay gets in the way, nothing. Put in a second led, the thing works great.

Put in what LED? In where?

*** SHOW YOUR WIRING ***

Hope this helps. Basically, one of my tests was to replace the motor with an led. Like I said, led works just fine.

I'm not surprised it's not working. I suggest you draw the motor side of the relay's circuit on paper, and you'll soon see where you have gone wrong.

I am very new at this, I don't even know what you said. Sorry. Could you explain?

one of my tests was to replace the motor with an led. Like I said, led works just fine.

Was there any manual/tutorial with your starter kit ?

Most leds need less power than most motors, so in general it's easier to kill a led than a motor, not sure you prove the opposite yet :wink:

Yes, but not for this project. I wanted to try thinking outside the box and do this on my own. The amount of power coming from the relay is very close to the voltage coming straight from the arduino hooked up to the USB. The motor works fine from the dc. The relay disables the motor.

Bstanko6:
I am very new at this, I don't even know what you said. Sorry. Could you explain?

You get a pencil, and a piece of paper. You draw little symbols representing each component, and join them together with lines representing the wires.

That's called a schematic.

You need to do that for the section of your circuit that has the motor, LED, resistor and relay.

Schematics are indeed the lifeblood of true electrical design, without them you get yourself into a world of hurt very quickly. From the picture I can't tell exactly what is going on, but there are a couple of possibilities.

  1. The motor might need more power at 5V than the Arduino can supply. The 5V pin on the Arduino is only good for a few hundred milliamps, and that motor could draw more than that on startup. I don't think this is the problem as the motor came with the kit, but it is possible.

  2. In your picture it looks like the motor isn't connected to anything on one end. I assume you knew this and you were just switching it in and out, but either way double check your wiring and make sure no wires or leads pulled out of the breadboard.

  3. When you connect in the motor there should be NO resistors in series with it. The LED needs a series resistor or it will fry, but the motor needs all the current it can get. Follow the motor power from 5V to the Relay to the Motor and to Ground and make sure it never passes through a resistor along the way.

majenko:

Bstanko6:
I am very new at this, I don't even know what you said. Sorry. Could you explain?

You get a pencil, and a piece of paper. You draw little symbols representing each component, and join them together with lines representing the wires.

That's called a schematic.

You need to do that for the section of your circuit that has the motor, LED, resistor and relay.

@majenko- If you see something in the circuit and have the answer just post it.
@Bstanko6- He may not have been friendly about it, but he's right. Drawing out how it is hooked up can help you work out how it should be hooked up. Even if you don't know the correct and proper symbols to use, have a go at a schematic and see if that helps your thinking process.

bigred1212:

majenko:

Bstanko6:
I am very new at this, I don't even know what you said. Sorry. Could you explain?

You get a pencil, and a piece of paper. You draw little symbols representing each component, and join them together with lines representing the wires.

That's called a schematic.

You need to do that for the section of your circuit that has the motor, LED, resistor and relay.

@majenko- If you see something in the circuit and have the answer just post it.

How is he supposed to learn if you just give him the answers? Nudge him in the right direction (indicate which portion of the circuit is wrong) and help him to work it out for himself - best way there is of learning.

@Bstanko6- He may not have been friendly about it, but he's right. Drawing out how it is hooked up can help you work out how it should be hooked up. Even if you don't know the correct and proper symbols to use, have a go at a schematic and see if that helps your thinking process.

majenko:
How is he supposed to learn if you just give him the answers? Nudge him in the right direction (indicate which portion of the circuit is wrong) and help him to work it out for himself - best way there is of learning.

I don't disagree with the "teach a man to fish" message, I just thought your tone was borderline hostile. You probably didn't intend it that way, but that's how it came across to me.

In any event, if OP can create a drawing that will help with diagnosing the issue. And with teaching.

bigred1212:

majenko:
How is he supposed to learn if you just give him the answers? Nudge him in the right direction (indicate which portion of the circuit is wrong) and help him to work it out for himself - best way there is of learning.

I don't disagree with the "teach a man to fish" message, I just thought your tone was borderline hostile. You probably didn't intend it that way, but that's how it came across to me.

In any event, if OP can create a drawing that will help with diagnosing the issue. And with teaching.

The hostility comes from the OP having already been asked for drawings/images/detail and completely ignoring that request.

Sorry guys, did not mean to start a fight here. I get that you want me to learn on my own, but the truth is, I am very new to this, and I do not have money to blow arduinos. So in the end, I did post this to get an answer. I drew a sketch, and took out a resistor, killed an led. So right now, I have no clue what else to try.

Have a bit of a browse of the "playground" part of this site:

http://playground.arduino.cc/

As for your problem, without a schematic it is guesswork really. You can make one with pencil and paper if you have to.

Personally I use ExpressSCH (under Windows):

http://www.expresspcb.com/expresspcbhtm/Free_schematic_software.htm

(free)

You cannot have the LED and the motor in the same part of the circuit.

At the moment you have:

+ ---[M]----o/ o------|>|---/\/\/\/\---- -

... or something similar. Power flows through the motor to the relay, then through the LED and the resistor. That won't work.

Remove the LED and the resistor and just have the motor and relay:

+ ---[M]----o/ o----- -

If you want an LED, then it, and its resistor, must go in parallel with the motor:

    .---\/\/\/\---|>|---.
+ --|                   |----o/ o----- -
    `--------[M]--------'

Hope this helps. To add, I also tried switching the motor from normally closed to normally open, and nothing. It took me awhile to figure how to sketch this, I apologize for the abscence.

It doesn't help that it's umop apisdn :wink:

Loose the resistor between NC and +5V.