![]() So that's why we connect our 2 wire ends to both C and NO because we want to send a signal to our relay in order to let the current flow through these two channels and provide energy to our appliance. When a signal is sent a connection will be set between C and NO instead. This means that, when the relay is at it's normal state (no signal sent to the relay) there will be a connection between NC and C ports. The Relay has 3 ports, NC (normally closed), C (Common), NO (normally open). But where can you connect these 2 ends to the relay?. ![]() Now that you have your extension, pull out 1 of the wires extension and cut it, you will end up with 2 wire ends (shown in the 2 photos above). ![]() What I did was to buy a smaller wire and add to it both plug and socket just as it's represented in the photo of the slideshow above. Obviously you will not want to connect the relay directly to a lamp's built-in plug extension which you would purposly ruin for this project, so what is recommended is to buy a standalone plug/socket extension. The blue wires represent the wires of the plug/socket extension. (Search for Voltage Divider Calculators on Google and it will give you good explanation and quick calculations).Īs for the Relay, we also supply it with both power and ground (Red and Black wires) and a signal wire connected to Arduino's pin number 10 that will command the relay when to power ON or OFF our lamp, for example. I used these resistors because it was what I had in my equipment but if you have any other resistors maybe you can find the right set for you using this Formula and that brings the voltage down a bit: the first R1 resistor is a 560 OHMS while the second one R2 is 1K OHMS. Hence, it has been included 2 resistors that work as a "voltage divider" that go through the orange wire. If you check the back of your bluetooth module it will have a label showing how much voltage it's receiver pin can handle (In my case it's 3.3V) and since our Arduino supplies 5V, the bluetooth module would probably burn up after frequent uses, that's why we need to reduce that voltage to 3.3V. For the communication pins we will need to attach the Transmitter pin (TX) to the Arduino's receiver pin (RX) (Green Wire) and the Transmitter pin to the Arduino's Receiver pin (Orange wire). As you can see we pull out both 5V and Ground from our Arduino all the way through to the Bluetooth Module (Red and Black wires). Let's start by setting up our bluetooth module (bottom left component in the figure). Those 2 wire ends are the ones that will be pluged in the relay as shown in the other picture
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |