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:
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.