I am working on a custom school project where I want to control a coffee machine's power using a micro-controller.
I have never worked with interfacing to external appliances like this before so please bear with me as I describe my question.
My idea for this problem is to replace the switch with some sort of relay configuration, in order to control the power flow with my micro-controller's output. I've done some research and believe I am working with an SPDT switch. It has 3 pins, the first pin connected directly to the power line, the second pin connected to a heating element, and the third pin connected to the heating element and ground.
I've also found a relay at my local store that I believe should work (please tell me if I'm wrong). It can be found here: http://www.alliedelec.com/search/productdetail.aspx?SKU=70133525.
I am able to produce a 5V output from my micro-controller which I plan to use as the control signal for the relay.
This being the first time I've worked on this type of application, I want to make sure I understand how to transfer the wires from the switch to the relay correctly before I go about testing my configuration.
Here's the coffee machine's switch and wires:
and here is the relay's schematic:
From what I understand the wiring should be as such:
- Single black wire (top pin of switch)
- Black and blue wire (bottom pin of switch)
- Control signal from micro-controller (providing 5V)
- Red wire (middle pin of switch)
- Ground (provided by micro-controller)
Would this configuration be correct? Please let me know if I should try anything else or if any additional information is needed.