I thought it would be neat to do some investigation and research on how each part operates as it arrives in the mail. So the first item is this 2-channel 5V DC relay. You would typically use these units to power higher voltage circuits with a lower voltage. In the project, this relay will be used to open and close my garage through a NodeMCU controller.
Relays have a built-in switch essentially, when a voltage change the electromagnet is charged or not, thus causing the common terminal armature to move between NO or NC.
Relays have a built-in switch essentially, when a voltage change the electromagnet is charged or not, thus causing the common terminal armature to move between NO or NC.
The Front section of the Relay focuses on connectivity to the External device.
NC1(Normally Connected Channel 1) COM (Common Pin) NO1(Normally Open Channel 1)
|
If you're using a electrical outlet for example, you'd splice the positive the wire to COM and another to NO or NC. Then depending on the configuration of the relay, you would do directly to AC current or be controlled through a Microprocessor.
On the back are the connections to either the micro controller or to AC:
Right:
Left:
|
The reason I'd be using a 2-Channel Relay, in the event of a power failure a reboot of the micro controller would typically cause the circuit to activate upon restart. By placing a jumper wire between the two common pins, this operation is prevented.
Full Disclaimer, this is my first time really delving into electronics. If you find any of my data incorrect, please inform me. I want my audience and myself educated the correct way.
Further details can be obtained from Wiki or from this Source and this great source.
Have you tried these out yet? They look like the same ones I ordered, and which are 5V. Since the NodeMCU is 3.3V, they're not going to work out, unless you know some magic that I don't. I'm deciding whether to order 3.3V relays or if I should just order some transistors. I think the latter might be a better design.
ReplyDeleteSometime I realized after the fact, and I'll just be using a 5V power brick for now. So one Power brick for the Relay and another for the NodeMCU.
Delete