Go Down

Topic: Safely using a relay (Read 1 time) previous topic - next topic

robert4

I am new to using relays and am getting mixed answers when I search on YouTube on online tutorials.  I have an Arduino UNO and I bought this:

https://www.amazon.com/gp/product/B00VRUAHLE/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

I want to switch off a power strip when the temperature gets too high in an enclosure.

I have seen people power the relay directly from the Arduino by using the 5V output pin on the Arduino and the GND pin.

Then I see that you should NEVER power a relay through the Arduino and that you should always use a separate 5V supply for the relay.

And yet another option I have seen is to use some type of diode in the circuit, but then you can power the relay off the Arduino...

All this has done is make me nervous.  I am learning as fast as I can and reading as many books as I can, but this has really confused me.  It seemed like such as easy idea but the contrasting thoughts on the subject has me lost.

What is the best solution for safely using a relay with my Arduino?  Any help would be greatly appreciated.

Thanks,
robert

larryd

#1
Aug 07, 2017, 02:41 am Last Edit: Aug 07, 2017, 02:41 am by larryd
If you are only driving this one relay and nothing else, you probably are okay using the Arduino 5 volts to power this board.
You will pull ~90ma from the arduino.

Something like this could work to pick the relay.





.
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

larryd

#2
Aug 07, 2017, 02:48 am Last Edit: Aug 07, 2017, 03:04 am by larryd
It seems like that board has a transistor driver.

Ignore the connections on the right side of the image going to the terminal block.


Edit:
Potential problem.
I only see one resistor on the board where there should be two.
One to set the transistor base current, one to set the LED current.


.
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

edgemoron

How much current will the relay contacts be switching? 5 Amps or less I hope.  :)

robert4

Thank you very much for the help.  Time to see what happens.  And in response to edgemoron, It will be less than 3 amps.

jpsabo


Paul_KD7HB

Please power the Arduino from somewhere other than your power strip!

Paul

dougp

Merely curious, what are you using to sense temperature?
I don't trust atoms.  They make up everything.

No private consultations undertaken!

spacefolder

#8
Aug 13, 2017, 01:39 am Last Edit: Aug 13, 2017, 01:54 am by spacefolder
Something like this could work to pick the relay.




Hi guys,

I´m working on something similar..
What does the "+ 0.8" on the diagram mean?

Cheers!
Marc


larryd

#9
Aug 13, 2017, 01:42 am Last Edit: Aug 13, 2017, 01:43 am by larryd
Vbe = .8 volts. 
Voltage measured, base to emitter.

Probably closer to .6 to .7 volts
.

No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

spacefolder


jimakoskx

#11
Aug 24, 2020, 05:55 pm Last Edit: Aug 24, 2020, 06:47 pm by jimakoskx
Hello all.
I dont know to answer but because i have a question about relays and relays modules
i choosed to post here to be easier for someone in future to solve his issues.

First of all ,,,i am very beginner in arduino and microchip programming
and ....i have almost no idea about electronics !!!

Lets try my 1st and main question.

--------

1.Ok...i ve managed to finish my 1st arduino project that is
A load scale (10 kg) sending sms 1 per day ....from gms in some phone number.

And i bought a relay MODULE that already has transistor,resitors and diode...(and 2 leds)

You can see on attached image


Now the problem is that i DONT want to use the hole MODULE
because
a)i need to shrink the things
b)I dont want the led of the module
c)i want to learn

As so,,,The question is.

-Can i use a SINGLE relay (not module) with
ONLY one DIODE
(just before the wire coming from the pin that i am controlling
with digitalWrite(Pin, LOW or HIGH) the relay ?
...avoiding the TRANSISTOR and RESISTORs ??????

If yes,,,,is there (on the market) RELAYS (not modules) that can be triggered with
the few amperes 20mA of arduino?

-------------------------------------
2nd question ....maybe stupid but forgive me.
In the above module...that i installed fine and working fine

-WHY i must use 3 (Vcc,Grnd, Controlling Pin)
and not 2  ( Grnd ,Controlling Pin) [avoiding Vcc]
wirings from arduino ?

I just want to give HIGH (if digital) or 255 (if analogue) to the controlling PIn
so that when has voltage will give it to the RELAY
in order for the COIL  to function and have the results on the OTHER side
( on the other non relative CIRCUIT... Normally open or normally close depends etc)
PS...I ve tried also with analogueWrite (2 wires)but not succesfully)



...I dont know...if this question is understandable...

Also the strange thing is that i must give LOW to trigger the coil ..
but i was expecting ....that i am suppose to give High to trigger and low to rest
...in order ..also ..to avoid baterry-energy consumption...


Thank you in advance anyway ..


To know Java does not mean you know Transistors
and electronics !

pmagowan

You need to start your own thread.  Anyone trying to help now has to wade through an old conversation before they even see your post.  They may try and assist the OP who is long since forgotten this problem.  Try reading the forum guidelines

Go Up