This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
oak:tutorials:relay [2016/02/21 20:27] wminarik created |
oak:tutorials:relay [2016/03/10 22:47] digistump |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | =====THIS TUTORIAL HAS NOT YET BEEN REVIEWED, PLEASE DO NOT USE UNTIL IT HAS====== | ||
| - | |||
| ====== 3.3V Relay Shield Tutorial ====== | ====== 3.3V Relay Shield Tutorial ====== | ||
| Line 9: | Line 6: | ||
| [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-9.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-9.jpg}}]] | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-9.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-9.jpg}}]] | ||
| - | The 3.3V Relay Shield Kit allows you to build a shield that controls a relay with the Oak. Switch up to 24V DC or 120/240V AC wirelessly. The version for Oak uses a compatible 3.3 volt coil. The screw terminal has positions for both NC (normally closed) and NO (normally open). | + | The 3.3V Relay Shield Kit allows you to build a shield that controls a relay with the Oak. Switch up to 24V DC or 120/240V AC wirelessly. The version for Oak uses a compatible 3 volt coil (max 3.9 V, 110mA coil current). The screw terminal has positions for both NC (normally closed) and NO (normally open). |
| This is an unassembled kit and requires basic soldering. This is designed for use with the Digistump Oak development board, which is not included. | This is an unassembled kit and requires basic soldering. This is designed for use with the Digistump Oak development board, which is not included. | ||
| Line 18: | Line 15: | ||
| ^ Part ^ Quantity ^Identification^ | ^ Part ^ Quantity ^Identification^ | ||
| | Oak Relay Shield PCB|1| | | | Oak Relay Shield PCB|1| | | ||
| - | | Relay with 3VDC coil|1| | + | | Relay with 3VDC coil|1| JQC-3F (T73) | |
| | 1K ohm 1/4 W resistor 5%|1| Brown - Black - Red| | | 1K ohm 1/4 W resistor 5%|1| Brown - Black - Red| | ||
| | 1N001 diode|1| | | | 1N001 diode|1| | | ||
| - | | 2N3904 transistor |1| NPN TO-92 package| | + | | 2N3904 NPN transistor |1| TO-92 package| |
| | 3-pin screw terminal |1| | | | 3-pin screw terminal |1| | | ||
| | 1x40 pin male 0.1" pitch header| 9 pins worth| | | | 1x40 pin male 0.1" pitch header| 9 pins worth| | | ||
| Line 44: | Line 41: | ||
| [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-1.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-1.jpg}}]] | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-1.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-1.jpg}}]] | ||
| - | Solder the leads of the resistor. Place the diode in the orientation indicated (silver band over band silkscreen) and solder. Clip off the excess as pictured (also shown are solder pads on the reverse for changing the controlling digital pin). | + | Place and solder the leads of the resistor. Place the diode in the orientation indicated (silver band over band silkscreen) and solder. Clip off the excess as pictured (also shown are solder pads on the reverse for changing the controlling digital pin). |
| - | [[https://s3.amazonaws.com/digispark/images/m/oak-tft-shield-2.jpg|{{https://s3.amazonaws.com/digispark/images/t/oak-tft-shield-2.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-2.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-2.jpg}}]] |
| - | [[https://s3.amazonaws.com/digispark/images/m/oak-tft-shield-3.jpg|{{https://s3.amazonaws.com/digispark/images/t/oak-tft-shield-3.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-3.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-3.jpg}}]] |
| - | Then solder and clip the leads of the NPN transistor. Make sure that it doesn't overhang the spot reserved for the relay. | + | Insert the NPN transistor, matching the shape with the printing on the board and solder and clip the leads. Make sure that it doesn't overhang the spot reserved for the relay. |
| - | [[https://s3.amazonaws.com/digispark/images/m/oak-tft-shield-4.jpg|{{https://s3.amazonaws.com/digispark/images/t/oak-tft-shield-4.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-4.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-4.jpg}}]] |
| Next place and solder the 3-pin screw jack, with the wire terminals facing out from the board. | Next place and solder the 3-pin screw jack, with the wire terminals facing out from the board. | ||
| - | **Tip:** A small breadboard is about the right hight to support the board upside down while soldering. | + | **Tip:** A small breadboard is about the right height to support the board upside down while soldering. |
| - | [[https://s3.amazonaws.com/digispark/images/m/oak-tft-shield-6.jpg|{{https://s3.amazonaws.com/digispark/images/t/oak-tft-shield-6.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/o3v3-relay-shield-6.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-6.jpg}}]] |
| - | [[https://s3.amazonaws.com/digispark/images/m/oak-tft-shield-5.jpg|{{https://s3.amazonaws.com/digispark/images/t/oak-tft-shield-5.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-5.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-5.jpg}}]] |
| Next, place the relay's five pins in the holes indicated. The pins may have to be be straightened. Solder and clip. | Next, place the relay's five pins in the holes indicated. The pins may have to be be straightened. Solder and clip. | ||
| Line 66: | Line 63: | ||
| **Tip:** Inserting the headers into a breadboard and then placing the board on top can make this process easier. Unfortunately, most breadboards are one column too narrow for this to work for both the 6-pin and 3-pin headers. What works is to insert the 6-pin header in the edge column, then an extra 2-pin or or 1-pin header in the end row as shown; these are temporarily used to support the board, as is the 3-pin header placed at the diagonal corner. After soldering the 6-pin header (do not solder the 2-pin header!), remove the shield from the breadboard, then partially insert the pins with the third pin of the 3-pin header resting on the center slot. Solder the 3-pin header. | **Tip:** Inserting the headers into a breadboard and then placing the board on top can make this process easier. Unfortunately, most breadboards are one column too narrow for this to work for both the 6-pin and 3-pin headers. What works is to insert the 6-pin header in the edge column, then an extra 2-pin or or 1-pin header in the end row as shown; these are temporarily used to support the board, as is the 3-pin header placed at the diagonal corner. After soldering the 6-pin header (do not solder the 2-pin header!), remove the shield from the breadboard, then partially insert the pins with the third pin of the 3-pin header resting on the center slot. Solder the 3-pin header. | ||
| - | [[https://s3.amazonaws.com/digispark/images/m/oak-tft-shield-7.jpg|{{https://s3.amazonaws.com/digispark/images/t/oak-tft-shield-7.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-7.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-7.jpg}}]] |
| - | [[https://s3.amazonaws.com/digispark/images/m/oak-tft-shield-8.jpg|{{https://s3.amazonaws.com/digispark/images/t/oak-tft-shield-8.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/3v3-relay-shield-8.jpg|{{https://s3.amazonaws.com/digispark/images/t/3v3-relay-shield-8.jpg}}]] |
| Your 3.3V Relay shield is complete! | Your 3.3V Relay shield is complete! | ||