Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

HELP with some basic (I think) electronics

Status
Not open for further replies.

ProStreet

New Member
I am in NO way an electrician or know ANYTHING about electronics.
I am attempting to run a automotive power window motor CW and CCW.
It needs to be controlled buy an Arduino Uno programmable pc board.
The power window needs a good 12v DC supply to work.
The board only puts out very low voltage and amps.
I found a web link showing a possible fix.
It uses an automotive 12v DC relay.
But to trigger it, there is a schematic enclosed that I have absolutely no idea how it works.
I believe an auto relay is wired as such
# 30 High load input
# 85 Switch
# 86 Switch
#87 High load out
If I use this example, do I bring the load power to pin # 30
and the load output power to pin # 87
I assume you attach the 1N4002 across the switch (relay coil)
Pin # 86 and pin # 85
And I have no idea what the TPI122, the 1N40002 or the 1K Ohm does
All I'm asking is that if I wire it as shown, can I just connect my input and output leads to # 30 and # 87"
I would greatly appreciate ANY and all responses to this post
Thank You very much

118720
 
The least amount of relay components to make a DC motor go in oposite direction , is two Changeover relays (info link). You also probably would like to have an aditional relay to turn on or off the motor. Or use a power transistor for the same purpose.
 
You need to connect the -ve of the 12 V supply to the 0 V of the Arduino.

To make the circuit reverse the motor, you need to duplicate the relay, diode, resistor and transistor. The ground and +12 V of the second set are connected to the same places as the first set. The Arduino end of the resistor needs to go to a different pin of the Arduino so that it can be controlled separately.

Connect 12 V to pin 87 on both relays.
Connect 0 V to pin 87a on both relays.
Connect one end of the motor to pin 30 on one relay and the other end of the motor to pin 30 on the other relay.

Activate one output on the Arduino to make the motor go in one direction. Activate the other output to make it go in the other direction. If neither or both outputs are active, the motor will stop.

If you are interested, the transistor, the TIP122 is acting as a switch. When turned on, current flows from the 12 V supply, through the relay coil, (pins 85 & 86) through the transistor to ground. When turned off the current stops.

To make the TIP122 turn on, current has to be fed into the "base", which is the control pin on a transistor, and is the one that the resistor is connected to. You only need a current about 100 times smaller than the relay coil current to be fed into the base, so the Arduino provides that smaller current.

The voltage on the base of the TIP122 will only be around 1.5 V, so the resistor is there to limit the current and is more to protect the Arduino than the transistor. (The TIP122 is actually 2 transistors in one package, called a Darlington Pair. The base voltage is around twice what it would be for a single transistor, but the need to limit the current is much the same).

The diode is a "freewheel diode". The current in a coil, such as the relay coil, can't change very quickly. When the Arduino output turns off, the TIP122 turns off very fast, and that will try to stop the current flowing in the relay coil. That could cause a voltage surge, which could damage the TIP122. The diode lets the current continue to flow in the relay coil, removing the voltage surge. The current will stop more gradually, over maybe 50 ms rather than less than one microsecond.

The current in a coil behaves like it has inertia. If you think of it like a ball rolling, turning off the transistor is like putting a wall in the way, there is an impact. Having the diode is more like no longer pushing the ball along, and letting it run to a halt in its own time.

There is one disadvantage to a diode. It slows down how fast the current reduces in the coil, and it can cause the contact to open slowly in the relay, and the contacts get damaged more than if they open quickly. If you replace the diode with a resistor of 470 Ohms (or two 1 k Ohm resistors in parallel) the current will stop faster than if you have a diode, but not so fast that there is a big voltage surge.

Think of it as the ball rolling into syrup. It's not an impact like the wall, but the syrup stops the ball faster than it would on a smooth surface.
 
In statement 1 you said
"You need to connect the -ve of the 12 V supply to the 0 V of the Arduino "
I said i'm a dummy.
what is the -ve ? and
I don't see a O V on the UNO
Sorry !
 
In statement 1 you said
"You need to connect the -ve of the 12 V supply to the 0 V of the Arduino "

I'm not Diver300, but hopefully I can help here. Amazing detail by the way. :)

He was referring to the negative (-ve) of the 12 volt supply ... as in ... the 12 volt supply has to have 2 leads ... the black and the red ... the negative and the positive ... 0 volts and 12 volts ... -ve and +ve ...

Your Arduino has to have 2 supply leads as well ... 0 volts and 5 volts (I assume).

Joining the 0 volt leads of both (12v supply and Arduino) together provides a reference point for the combined electronics to work properly ... bit like the 'earth' (battery negative in most cases) in your car ... is the same 0 volt point for all the electronics in your car ... ecu, computers, radio, lights, alternator etc etc.
 
Status
Not open for further replies.

Latest threads

Back
Top